Class LlamaEntity
java.lang.Object
org.geysermc.geyser.entity.type.Entity
org.geysermc.geyser.entity.type.LivingEntity
org.geysermc.geyser.entity.type.living.MobEntity
org.geysermc.geyser.entity.type.living.CreatureEntity
org.geysermc.geyser.entity.type.living.AgeableEntity
org.geysermc.geyser.entity.type.living.animal.AnimalEntity
org.geysermc.geyser.entity.type.living.animal.horse.AbstractHorseEntity
org.geysermc.geyser.entity.type.living.animal.horse.ChestedHorseEntity
org.geysermc.geyser.entity.type.living.animal.horse.LlamaEntity
- Direct Known Subclasses:
TraderLlamaEntity
-
Field Summary
Fields inherited from class org.geysermc.geyser.entity.type.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHandFields inherited from class org.geysermc.geyser.entity.type.Entity
boundingBoxHeight, boundingBoxWidth, definition, dirtyMetadata, entityId, flags, geyserId, headYaw, motion, nametag, onGround, passengers, pitch, position, session, uuid, valid, yaw -
Constructor Summary
ConstructorsConstructorDescriptionLlamaEntity(GeyserSession session, long entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEat(String javaIdentifierStripped, ItemMapping mapping)voidsetCarpetedColor(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)Color equipped on the llamaMethods inherited from class org.geysermc.geyser.entity.type.living.animal.horse.ChestedHorseEntity
getContainerBaseSizeMethods inherited from class org.geysermc.geyser.entity.type.living.animal.horse.AbstractHorseEntity
setHorseFlags, spawnEntityMethods inherited from class org.geysermc.geyser.entity.type.living.AgeableEntity
getAdultSize, getBabySize, isBaby, setBabyMethods inherited from class org.geysermc.geyser.entity.type.living.MobEntity
initializeMetadata, setLeashHolderBedrockId, setMobFlagsMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, createHealthAttribute, isShaking, setBedPosition, setDimensions, setFreezing, setHealth, setLivingEntityFlags, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHandMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, as, despawnEntity, getBedrockRotation, getFlag, getMaxAir, is, moveAbsolute, moveAbsolute, moveRelative, moveRelative, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setDisplayName, setDisplayNameVisible, setFlag, setFlags, setGravity, setInvisible, setPose, setRiderSeatPosition, teleport, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotation
-
Constructor Details
-
LlamaEntity
public LlamaEntity(GeyserSession session, long entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
-
-
Method Details
-
setCarpetedColor
public void setCarpetedColor(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)Color equipped on the llama -
canEat
- Overrides:
canEatin classAbstractHorseEntity- Parameters:
javaIdentifierStripped- 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.
-