Class FrogEntity
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.FrogEntity
-
Field Summary
Fields inherited from class org.geysermc.geyser.entity.type.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand -
Constructor Summary
ConstructorsConstructorDescriptionFrogEntity(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 TypeMethodDescriptionbooleancanEat(String javaIdentifierStripped, ItemMapping mapping)voidsetFrogVariant(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)voidsetPose(com.github.steveice10.mc.protocol.data.game.entity.metadata.Pose pose)Usually used for bounding box and not animation.voidsetTongueTarget(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.ObjectEntityMetadata<OptionalInt> entityMetadata)Methods inherited from class org.geysermc.geyser.entity.type.living.animal.AnimalEntity
canEat, mobInteract, testMobInteractionMethods 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, setClientSideSilent, setDisplayName, setDisplayNameVisible, setFlag, setFlags, setGravity, setInvisible, setRiderSeatPosition, setSilent, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updatePassengerOffsets, updatePositionAndRotation, updateRotation
-
Constructor Details
-
FrogEntity
public FrogEntity(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
-
setPose
public void setPose(com.github.steveice10.mc.protocol.data.game.entity.metadata.Pose pose)Description copied from class:EntityUsually used for bounding box and not animation. -
setFrogVariant
public void setFrogVariant(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata) -
setTongueTarget
public void setTongueTarget(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.ObjectEntityMetadata<OptionalInt> 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.
-