Package org.geysermc.connector.entity
Class WitherSkullEntity
java.lang.Object
org.geysermc.connector.entity.Entity
org.geysermc.connector.entity.ThrowableEntity
org.geysermc.connector.entity.ItemedFireballEntity
org.geysermc.connector.entity.WitherSkullEntity
- All Implemented Interfaces:
Tickable
-
Field Summary
Fields inherited from class org.geysermc.connector.entity.ItemedFireballEntity
futureTicksFields inherited from class org.geysermc.connector.entity.ThrowableEntity
lastJavaPosition -
Constructor Summary
ConstructorsConstructorDescriptionWitherSkullEntity(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
Modifier and TypeMethodDescriptionprotected floatgetDrag(GeyserSession session)voidupdateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata, GeyserSession session)Applies the Java metadata to the local Bedrock metadata copyMethods inherited from class org.geysermc.connector.entity.ItemedFireballEntity
moveAbsoluteImmediate, tickMethods inherited from class org.geysermc.connector.entity.ThrowableEntity
despawnEntity, getGravity, isInWater, moveAbsolute, moveRelativeMethods inherited from class org.geysermc.connector.entity.Entity
addAdditionalSpawnData, as, getBedrockRotation, getMaxAir, is, isShaking, moveAbsolute, moveRelative, setAir, setDimensions, setDisplayName, setFreezing, setInvisible, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotation
-
Constructor Details
-
WitherSkullEntity
public WitherSkullEntity(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
-
getDrag
- Overrides:
getDragin classThrowableEntity- Parameters:
session- the session of the Bedrock client.- Returns:
- the drag that should be multiplied to the entity's motion
-
updateBedrockMetadata
public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata, GeyserSession session)Description copied from class:EntityApplies the Java metadata to the local Bedrock metadata copy- Overrides:
updateBedrockMetadatain classEntity- Parameters:
entityMetadata- the Java entity metadatasession- GeyserSession
-