Class AbstractHorseEntity
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
- All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity
- Direct Known Subclasses:
CamelEntity,ChestedHorseEntity,HorseEntity,SkeletonHorseEntity,ZombieHorseEntity
-
Field Summary
Fields inherited from class org.geysermc.geyser.entity.type.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand -
Constructor Summary
ConstructorsConstructorDescriptionAbstractHorseEntity(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 booleanadditionalTestForInventoryOpen(@NonNull GeyserItemStack itemInHand)booleanprotected intprotected @NonNull InteractionResultmobHorseInteract(@NonNull com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)protected @NonNull InteractionResultmobInteract(@NonNull com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)voidsetHorseFlags(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata)voidprotected booleantestForChest(@NonNull GeyserItemStack itemInHand)protected @NonNull InteractiveTagtestHorseInteraction(@NonNull com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)protected @NonNull InteractiveTagtestMobInteraction(@NonNull com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)protected booleantestSaddle(@NonNull GeyserItemStack itemInHand)protected InteractiveTagtestUndeadHorseInteraction(@NonNull com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)protected InteractionResultundeadHorseInteract(@NonNull com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)Methods 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, getLeashHolderBedrockId, interact, isEnemy, isNotLeashed, setLeashHolderBedrockId, setMobFlags, testInteractionMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, checkInteractWithNameTag, createHealthAttribute, getBoots, getChestplate, getHand, getHelmet, getLeggings, getOffHand, hasShield, isAlive, isMaxFrozenState, isShaking, setBedPosition, setBoots, setChestplate, setDimensions, setFreezing, setHand, setHealth, setHelmet, setLeggings, setLivingEntityFlags, setMaxFrozenState, setMaxHealth, setOffHand, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHandMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, as, despawnEntity, getBedrockRotation, getBoundingBoxHeight, getBoundingBoxWidth, getDefinition, getDirtyMetadata, getEntityId, getFlag, getGeyserId, getHeadYaw, getMaxAir, getMotion, getNametag, getPassengers, getPitch, getPosition, getSession, getUuid, getVehicle, getYaw, interactAt, isOnGround, isSilent, isValid, javaId, moveAbsolute, moveAbsolute, moveRelative, moveRelative, playEntityEvent, playEntityEvent, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setClientSideSilent, setDefinition, setDisplayName, setDisplayNameVisible, setEntityId, setFlag, setFlags, setFlagsDirty, setGravity, setHeadYaw, setInvisible, setMotion, setOnGround, setPassengers, setPitch, setPose, setPosition, setRiderSeatPosition, setSilent, setUuid, setValid, setVehicle, setYaw, teleport, updateBedrockMetadata, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updatePassengerOffsets, updatePositionAndRotation, updateRotation
-
Constructor Details
-
AbstractHorseEntity
public AbstractHorseEntity(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
-
getContainerBaseSize
protected int getContainerBaseSize() -
spawnEntity
public void spawnEntity()- Overrides:
spawnEntityin classEntity
-
setHorseFlags
public void setHorseFlags(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata) -
canEat
- Overrides:
canEatin classAnimalEntity- Returns:
- true if this is a valid item to breed with for this animal.
-
testMobInteraction
protected @NonNull InteractiveTag testMobInteraction(@NonNull com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)- Overrides:
testMobInteractionin classAnimalEntity
-
testHorseInteraction
protected final @NonNull InteractiveTag testHorseInteraction(@NonNull com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand) -
mobInteract
protected @NonNull InteractionResult mobInteract(@NonNull com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)- Overrides:
mobInteractin classAnimalEntity
-
mobHorseInteract
protected final @NonNull InteractionResult mobHorseInteract(@NonNull com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand) -
testSaddle
-
testForChest
-
additionalTestForInventoryOpen
-
testUndeadHorseInteraction
protected final InteractiveTag testUndeadHorseInteraction(@NonNull com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand) -
undeadHorseInteract
protected final InteractionResult undeadHorseInteract(@NonNull com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)
-