Skip to content

Commit

Permalink
cute
Browse files Browse the repository at this point in the history
  • Loading branch information
Francy-chan committed Jun 10, 2023
1 parent 2299aab commit 5bd0c50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/moon/figura/lua/api/entity/EntityAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ public boolean isHamburger() {
return entityUUID.equals(hambrgr);
}

@LuaWhitelist
@LuaMethodDoc("entity.is_cute")
public boolean isCute() {
return true;
}

@LuaWhitelist
@LuaMethodDoc("entity.get_velocity")
public FiguraVec3 getVelocity() {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/figura/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,7 @@
"figura.docs.entity.get_uuid": "Gets the UUID of the proxied entity",
"figura.docs.entity.get_type": "Gets the Minecraft identifier of this entity\nFor instance, \"minecraft:pig\"",
"figura.docs.entity.is_hamburger": "\"Refused to elaborate\"",
"figura.docs.entity.is_cute": "Checks if this entity is cute",
"figura.docs.entity.get_velocity": "Gets the current velocity of this entity in world coordinates, calculated as its position this tick minus its position last tick",
"figura.docs.entity.get_look_dir": "Returns a unit vector pointing in the direction that this entity is looking\nSee the blue line in the F3+B screen for an example",
"figura.docs.entity.get_frozen_ticks": "Gets the number of ticks this entity has been freezing in powder snow for",
Expand Down

0 comments on commit 5bd0c50

Please sign in to comment.