- All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity, Tickable
- Direct Known Subclasses:
GlowSquidEntity
-
Field Summary
Fields inherited from class org.geysermc.geyser.entity.type.Entity
definition, dirtyMetadata, entityId, flags, geyserId, headYaw, motion, nametag, onGround, passengers, pitch, position, propertyManager, session, silent, uuid, valid, vehicle, yaw
-
Constructor Summary
Constructors
SquidEntity(GeyserSession session,
int entityId,
long geyserId,
UUID uuid,
EntityDefinition<?> definition,
org.cloudburstmc.math.vector.Vector3f position,
org.cloudburstmc.math.vector.Vector3f motion,
float yaw,
float pitch,
float headYaw)
-
Method Summary
protected boolean
org.cloudburstmc.math.vector.Vector3f
x = Pitch, y = Yaw, z = HeadYaw
void
moveAbsolute(org.cloudburstmc.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(org.cloudburstmc.math.vector.Vector3f motion)
void
void
x = Yaw, y = Pitch, z = HeadYaw
void
Methods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, checkInteractWithNameTag, createHealthAttribute, getBoots, getChestplate, getHand, getHelmet, getLeggings, getOffhand, hasShield, isAlive, isMaxFrozenState, isShaking, setBedPosition, setBoots, setChestplate, setDimensions, setFreezing, setHand, setHealth, setHelmet, setLeggings, setLivingEntityFlags, setMaxFrozenState, setMaxHealth, setOffhand, setParticles, setScale, switchHands, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHand, useArmSwingAttack
Methods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, as, despawnEntity, getBoundingBoxHeight, getBoundingBoxWidth, getDefinition, getDirtyMetadata, getEntityId, getFlag, getGeyserId, getHeadYaw, getMaxAir, getMotion, getNametag, getPassengers, getPitch, getPosition, getPropertyManager, getSession, getUuid, getVehicle, getYaw, interactAt, isOnGround, isSilent, isValid, javaId, moveAbsolute, moveRelative, playEntityEvent, playEntityEvent, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setClientSideSilent, setDefinition, setDisplayName, setDisplayNameVisible, setEntityId, setFlag, setFlags, setFlagsDirty, setGravity, setInvisible, setOnGround, setPassengers, setPose, setPosition, setRiderSeatPosition, setSilent, setUuid, setValid, setVehicle, spawnEntity, teleport, updateBedrockEntityProperties, 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,
org.cloudburstmc.math.vector.Vector3f position,
org.cloudburstmc.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(org.cloudburstmc.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)
Description copied from class: Entity
x = Yaw, y = Pitch, z = HeadYaw
- Overrides:
setYaw in class Entity
-
setPitch
public void setPitch(float pitch)
- Overrides:
setPitch in class Entity
-
setHeadYaw
public void setHeadYaw(float headYaw)
- Overrides:
setHeadYaw in class Entity
-
setMotion
public void setMotion(org.cloudburstmc.math.vector.Vector3f motion)
- Overrides:
setMotion in class Entity
-
getBedrockRotation
public org.cloudburstmc.math.vector.Vector3f getBedrockRotation()
Description copied from class: Entity
x = Pitch, y = Yaw, z = HeadYaw
- Overrides:
getBedrockRotation in class Entity
- Returns:
- the bedrock rotation
-