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
- Direct Known Subclasses:
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, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanadditionalTestForInventoryOpen(GeyserItemStack itemInHand)booleancanEat(String javaIdentifierStripped, ItemMapping mapping)protected intprotected InteractionResultmobHorseInteract(GeyserItemStack itemInHand)protected InteractionResultmobInteract(GeyserItemStack itemInHand)voidsetHorseFlags(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata)voidprotected booleantestForChest(GeyserItemStack itemInHand)protected InteractiveTagtestHorseInteraction(GeyserItemStack itemInHand)protected InteractiveTagtestMobInteraction(GeyserItemStack itemInHand)protected booleantestSaddle(GeyserItemStack itemInHand)protected InteractiveTagtestUndeadHorseInteraction(GeyserItemStack itemInHand)protected InteractionResultundeadHorseInteract(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, isBaby, setBabyMethods inherited from class org.geysermc.geyser.entity.type.living.MobEntity
canBeLeashed, initializeMetadata, interact, isEnemy, isNotLeashed, setLeashHolderBedrockId, setMobFlags, testInteractionMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, checkInteractWithNameTag, createHealthAttribute, hasShield, isAlive, 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, interactAt, moveAbsolute, moveAbsolute, moveRelative, moveRelative, playEntityEvent, playEntityEvent, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setDisplayName, setDisplayNameVisible, setFlag, setFlags, setGravity, setInvisible, setPose, setRiderSeatPosition, teleport, updateBedrockMetadata, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updatePassengerOffsets, updatePositionAndRotation, updateRotation
-
Constructor Details
-
AbstractHorseEntity
public AbstractHorseEntity(GeyserSession session, int 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
-
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- 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.
-
testMobInteraction
- Overrides:
testMobInteractionin classAnimalEntity
-
testHorseInteraction
-
mobInteract
- Overrides:
mobInteractin classAnimalEntity
-
mobHorseInteract
-
testSaddle
-
testForChest
-
additionalTestForInventoryOpen
-
testUndeadHorseInteraction
-
undeadHorseInteract
-