Class CatEntity
java.lang.Object
org.geysermc.connector.entity.Entity
org.geysermc.connector.entity.LivingEntity
org.geysermc.connector.entity.living.InsentientEntity
org.geysermc.connector.entity.living.CreatureEntity
org.geysermc.connector.entity.living.AgeableEntity
org.geysermc.connector.entity.living.animal.AnimalEntity
org.geysermc.connector.entity.living.animal.tameable.TameableEntity
org.geysermc.connector.entity.living.animal.tameable.CatEntity
-
Field Summary
Fields inherited from class org.geysermc.connector.entity.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand -
Constructor Summary
ConstructorsConstructorDescriptionCatEntity(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 TypeMethodDescriptionbooleancanEat(GeyserSession session, String javaIdentifierStripped, ItemMapping mapping)voidupdateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata, GeyserSession session)Applies the Java metadata to the local Bedrock metadata copyvoidupdateRotation(GeyserSession session, float yaw, float pitch, boolean isOnGround)Updates an entity's rotation.Methods 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
addAdditionalSpawnData, as, despawnEntity, getBedrockRotation, getMaxAir, is, moveAbsolute, moveAbsolute, moveRelative, moveRelative, setAir, setDisplayName, setInvisible, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation
-
Constructor Details
-
CatEntity
public CatEntity(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
-
updateRotation
Description copied from class:EntityUpdates an entity's rotation. Used in JavaEntityRotationTranslator.- Overrides:
updateRotationin classEntity- Parameters:
session- GeyserSession.yaw- The new yaw of the entity.pitch- The new pitch of the entity.isOnGround- Whether the entity is currently on the ground.
-
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 classTameableEntity- Parameters:
entityMetadata- the Java entity metadatasession- GeyserSession
-
canEat
- Overrides:
canEatin classAnimalEntityjavaIdentifierStripped- the stripped Java identifier of the item that is potential breeding food. For example,wheat.- Returns:
- true if this is a valid item to breed with for this animal.
-