Class CamelEntity
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.CamelEntity
- All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity,Leashable,ClientVehicle
-
Field Summary
FieldsFields inherited from class org.geysermc.geyser.entity.type.LivingEntity
body, boots, chestplate, hand, health, helmet, leggings, maxHealth, offhandFields inherited from class org.geysermc.geyser.entity.type.Entity
definition, dirtyMetadata, entityId, flags, geyserId, headYaw, motion, nametag, onGround, passengers, pitch, position, propertyManager, session, silent, uuid, valid, vehicle, yaw -
Constructor Summary
ConstructorsConstructorDescriptionCamelEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, org.cloudburstmc.math.vector.Vector3f position, org.cloudburstmc.math.vector.Vector3f motion, float yaw, float pitch, float headYaw) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.cloudburstmc.protocol.bedrock.data.AttributeDatacalculateAttribute(org.geysermc.mcprotocollib.protocol.data.game.entity.attribute.Attribute javaAttribute, GeyserAttributeType type) Calculates the complete attribute value to send to Bedrock.booleancanClimb()org.cloudburstmc.math.vector.Vector2fgetAdjustedInput(org.cloudburstmc.math.vector.Vector2f input) floatbooleanvoidsetDashing(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata) protected voidsetDimensions(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.Pose pose) Set the height and width of the entity's bounding boxvoidsetHorseFlags(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata) voidsetLastPoseTick(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.LongEntityMetadata entityMetadata) voidsetPose(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.Pose pose) Usually used for bounding box and not animation.Methods inherited from class org.geysermc.geyser.entity.type.living.animal.horse.AbstractHorseEntity
additionalTestForInventoryOpen, getContainerBaseSize, mobHorseInteract, mobInteract, spawnEntity, testForChest, testHorseInteraction, testMobInteraction, testSaddle, testUndeadHorseInteraction, undeadHorseInteractMethods inherited from class org.geysermc.geyser.entity.type.living.animal.AnimalEntity
canEatMethods inherited from class org.geysermc.geyser.entity.type.living.AgeableEntity
getAdultSize, getBabySize, initializeMetadata, isBaby, setBabyMethods inherited from class org.geysermc.geyser.entity.type.living.MobEntity
canBeLeashed, interact, isEnemy, leashHolderBedrockId, setLeashHolderBedrockId, setMobFlags, testInteractionMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
checkInteractWithNameTag, createHealthAttribute, getBody, getBoots, getChestplate, getHand, getHelmet, getLeggings, getOffhand, hasShield, isAlive, isMaxFrozenState, isShaking, moveRelative, setBedPosition, setBody, setBoots, setBoundingBoxHeight, setBoundingBoxWidth, setChestplate, setFreezing, setHand, setHealth, setHelmet, setLeggings, setLivingEntityFlags, setMaxFrozenState, setMaxHealth, setOffhand, setParticles, setScale, switchHands, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateNametag, updateOffHand, useArmSwingAttackMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, despawnEntity, getBedrockRotation, getBoundingBoxHeight, getBoundingBoxWidth, getDefinition, getDirtyMetadata, getDisplayName, getEntityId, getFlag, getGeyserId, getHeadYaw, getMaxAir, getMotion, getNametag, getPassengers, getPitch, getPosition, getPropertyManager, getSession, getUuid, getVehicle, getYaw, interactAt, isOnGround, isSilent, isValid, javaId, moveAbsolute, moveAbsolute, moveRelative, playEntityEvent, playEntityEvent, scoreVisibility, setAir, setAirSupply, setClientSideSilent, setDefinition, setDisplayName, setDisplayNameVisible, setEntityId, setFlag, setFlags, setFlagsDirty, setGravity, setHeadYaw, setInvisible, setMotion, setNametag, setOnGround, setPassengers, setPitch, setPosition, setRiderSeatPosition, setSilent, setUuid, setValid, setVehicle, setYaw, standardDisplayName, teamIdentifier, teleport, updateBedrockEntityProperties, updateBedrockMetadata, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updateNametag, updatePassengerOffsets, updatePositionAndRotation, updateRotationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.entity.vehicle.ClientVehicle
canWalkOnLavaMethods inherited from interface org.geysermc.geyser.entity.type.Leashable
isNotLeashed
-
Field Details
-
SITTING_HEIGHT_DIFFERENCE
public static final float SITTING_HEIGHT_DIFFERENCE- See Also:
-
-
Constructor Details
-
CamelEntity
public CamelEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, org.cloudburstmc.math.vector.Vector3f position, org.cloudburstmc.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
-
-
Method Details
-
setHorseFlags
public void setHorseFlags(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata) - Overrides:
setHorseFlagsin classAbstractHorseEntity
-
getFoodTag
- Overrides:
getFoodTagin classAbstractHorseEntity- Returns:
- the tag associated with this animal for eating food. Null for nothing or different behavior.
-
setPose
public void setPose(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.Pose pose) Description copied from class:EntityUsually used for bounding box and not animation. -
setDimensions
protected void setDimensions(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.Pose pose) Description copied from class:EntitySet the height and width of the entity's bounding box- Overrides:
setDimensionsin classLivingEntity
-
setDashing
public void setDashing(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata) -
setLastPoseTick
public void setLastPoseTick(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.LongEntityMetadata entityMetadata) -
calculateAttribute
protected org.cloudburstmc.protocol.bedrock.data.AttributeData calculateAttribute(org.geysermc.mcprotocollib.protocol.data.game.entity.attribute.Attribute javaAttribute, GeyserAttributeType type) Description copied from class:LivingEntityCalculates the complete attribute value to send to Bedrock. Will be overriden if attributes need to be cached.- Overrides:
calculateAttributein classLivingEntity
-
getVehicleComponent
- Specified by:
getVehicleComponentin interfaceClientVehicle
-
getAdjustedInput
public org.cloudburstmc.math.vector.Vector2f getAdjustedInput(org.cloudburstmc.math.vector.Vector2f input) - Specified by:
getAdjustedInputin interfaceClientVehicle
-
isClientControlled
public boolean isClientControlled()- Specified by:
isClientControlledin interfaceClientVehicle
-
getVehicleSpeed
public float getVehicleSpeed()- Specified by:
getVehicleSpeedin interfaceClientVehicle
-
canClimb
public boolean canClimb()- Specified by:
canClimbin interfaceClientVehicle
-