-
-
Constructor Summary
Constructors
SquidEntity(long entityId,
long geyserId,
EntityType entityType,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f motion,
com.nukkitx.math.vector.Vector3f rotation)
-
Method Summary
com.nukkitx.math.vector.Vector3f
x = Pitch, y = HeadYaw, z = Yaw
void
moveAbsolute(GeyserSession session,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround,
boolean teleported)
void
moveRelative(GeyserSession session,
double relX,
double relY,
double relZ,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround)
void
setMotion(com.nukkitx.math.vector.Vector3f motion)
void
setRotation(com.nukkitx.math.vector.Vector3f rotation)
void
Methods inherited from class org.geysermc.connector.entity.Entity
addAdditionalSpawnData, as, despawnEntity, getMaxAir, is, moveAbsolute, moveRelative, setAir, setDisplayName, setDisplayNameVisible, setInvisible, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, 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
(long entityId,
long geyserId,
EntityType entityType,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f motion,
com.nukkitx.math.vector.Vector3f rotation)
-
Method Details
-
-
moveRelative
public void moveRelative
(GeyserSession session,
double relX,
double relY,
double relZ,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround)
- Overrides:
moveRelative in class Entity
-
moveAbsolute
public void moveAbsolute
(GeyserSession session,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround,
boolean teleported)
- Overrides:
moveAbsolute in class Entity
-
setRotation
public void setRotation(com.nukkitx.math.vector.Vector3f rotation)
-
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