Class RabbitEntity
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.RabbitEntity
-
Field Summary
Fields inherited from class org.geysermc.geyser.entity.type.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand -
Constructor Summary
ConstructorsConstructorDescriptionRabbitEntity(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)protected floatThe scale that should be used when this entity is not a baby.protected floatThe scale that should be used when this entity is a baby.voidsetBaby(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)voidsetRabbitVariant(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)Methods inherited from class org.geysermc.geyser.entity.type.living.AgeableEntity
isBabyMethods 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, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, updateMountOffset, updatePassengerOffsets, updatePositionAndRotation, updateRotation
-
Constructor Details
-
RabbitEntity
public RabbitEntity(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
-
setBaby
public void setBaby(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)- Overrides:
setBabyin classAgeableEntity
-
setRabbitVariant
public void setRabbitVariant(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata) -
getAdultSize
protected float getAdultSize()Description copied from class:AgeableEntityThe scale that should be used when this entity is not a baby.- Overrides:
getAdultSizein classAgeableEntity
-
getBabySize
protected float getBabySize()Description copied from class:AgeableEntityThe scale that should be used when this entity is a baby.- Overrides:
getBabySizein classAgeableEntity
-
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.
-