-
Field Summary
Fields inherited from class org.geysermc.geyser.entity.type.Entity
definition, dirtyMetadata, entityId, flags, geyserId, headYaw, motion, nametag, onGround, passengers, pitch, position, session, uuid, valid, vehicle, yaw
-
Constructor Summary
Constructors
SquidEntity(GeyserSession session,
int entityId,
long geyserId,
UUID uuid,
EntityDefinition<?> definition,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f motion,
float yaw,
float pitch,
float headYaw)
-
Method Summary
protected boolean
com.nukkitx.math.vector.Vector3f
x = Pitch, y = HeadYaw, z = Yaw
void
moveAbsolute(com.nukkitx.math.vector.Vector3f position,
float yaw,
float pitch,
float headYaw,
boolean isOnGround,
boolean teleported)
void
moveRelative(double relX,
double relY,
double relZ,
float yaw,
float pitch,
float headYaw,
boolean isOnGround)
void
void
setMotion(com.nukkitx.math.vector.Vector3f motion)
void
void
void
Methods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, checkInteractWithNameTag, createHealthAttribute, hasShield, isAlive, isShaking, setBedPosition, setDimensions, setFreezing, setHealth, setLivingEntityFlags, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHand
Methods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, as, despawnEntity, getFlag, getMaxAir, interactAt, moveAbsolute, moveRelative, playEntityEvent, playEntityEvent, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setDisplayName, setDisplayNameVisible, setFlag, setFlags, setGravity, setInvisible, setPose, setRiderSeatPosition, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updatePassengerOffsets, updatePositionAndRotation, updateRotation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SquidEntity
public SquidEntity
(GeyserSession session,
int entityId,
long geyserId,
UUID uuid,
EntityDefinition<?> definition,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f motion,
float yaw,
float pitch,
float headYaw)
-
Method Details
-
tick
public void tick()
- Specified by:
tick in interface Tickable
-
moveRelative
public void moveRelative(double relX,
double relY,
double relZ,
float yaw,
float pitch,
float headYaw,
boolean isOnGround)
- Overrides:
moveRelative in class Entity
-
moveAbsolute
public void moveAbsolute(com.nukkitx.math.vector.Vector3f position,
float yaw,
float pitch,
float headYaw,
boolean isOnGround,
boolean teleported)
- Overrides:
moveAbsolute in class Entity
-
setYaw
public void setYaw(float yaw)
-
setPitch
public void setPitch(float pitch)
-
setHeadYaw
public void setHeadYaw(float headYaw)
-
setMotion
public void setMotion(com.nukkitx.math.vector.Vector3f motion)
-
getBedrockRotation
public com.nukkitx.math.vector.Vector3f getBedrockRotation()
Description copied from class: Entity
x = Pitch, y = HeadYaw, z = Yaw
- Overrides:
getBedrockRotation in class Entity
- Returns:
- the bedrock rotation
-