public class CatEntity extends TameableEntity
boots, chestplate, hand, helmet, leggings, offHandattributes, entityId, entityType, geyserId, metadata, motion, onGround, passengers, position, rotation, scale, valid| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEat(String javaIdentifierStripped) |
void |
updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
Applies the Java metadata to the local Bedrock metadata copy
|
void |
updateRotation(GeyserSession session,
float yaw,
float pitch,
boolean isOnGround)
Updates an entity's rotation.
|
getDefaultMaxHealth, updateAllEquipment, updateArmor, updateBedrockAttributes, updateMainHand, updateOffHandas, despawnEntity, getBedrockRotation, is, moveAbsolute, moveAbsolute, moveRelative, moveRelative, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotationpublic 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)
public void updateRotation(GeyserSession session, float yaw, float pitch, boolean isOnGround)
EntityupdateRotation in class Entitysession - GeyserSession.yaw - The new yaw of the entity.pitch - The new pitch of the entity.isOnGround - Whether the entity is currently on the ground.public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
EntityupdateBedrockMetadata in class TameableEntityentityMetadata - the Java entity metadatasession - GeyserSessionpublic boolean canEat(String javaIdentifierStripped)
canEat in class AnimalEntityjavaIdentifierStripped - the stripped Java identifier of the item that is potential breeding food. For example,
wheat.Copyright © 2021 GeyserMC. All rights reserved.