Class EnderDragonEntity
java.lang.Object
org.geysermc.connector.entity.Entity
org.geysermc.connector.entity.LivingEntity
org.geysermc.connector.entity.living.InsentientEntity
org.geysermc.connector.entity.living.monster.EnderDragonEntity
- All Implemented Interfaces:
Tickable
-
Field Summary
Fields inherited from class org.geysermc.connector.entity.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand -
Constructor Summary
ConstructorsConstructorDescriptionEnderDragonEntity(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 TypeMethodDescriptionvoidaddAdditionalSpawnData(com.nukkitx.protocol.bedrock.packet.AddEntityPacket addEntityPacket)To be overridden in other entity classes, if additional things need to be done to the spawn entity packet.booleandespawnEntity(GeyserSession session)Despawns the entityvoidspawnEntity(GeyserSession session)voidtick(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.LivingEntity
calculateAttribute, createHealthAttribute, isShaking, setDimensions, setFreezing, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHandMethods inherited from class org.geysermc.connector.entity.Entity
as, getBedrockRotation, getMaxAir, is, moveAbsolute, moveAbsolute, moveRelative, moveRelative, setAir, setDisplayName, setInvisible, teleport, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotation
-
Constructor Details
-
EnderDragonEntity
public EnderDragonEntity(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
-
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 classInsentientEntity- Parameters:
entityMetadata- the Java entity metadatasession- GeyserSession
-
spawnEntity
- Overrides:
spawnEntityin classEntity
-
addAdditionalSpawnData
public void addAdditionalSpawnData(com.nukkitx.protocol.bedrock.packet.AddEntityPacket addEntityPacket)Description copied from class:EntityTo be overridden in other entity classes, if additional things need to be done to the spawn entity packet.- Overrides:
addAdditionalSpawnDatain classEntity
-
despawnEntity
Description copied from class:EntityDespawns the entity- Overrides:
despawnEntityin classEntity- Parameters:
session- The GeyserSession- Returns:
- can be deleted
-
tick
-