Class FrogMeta
java.lang.Object
net.minestom.server.entity.metadata.EntityMeta
net.minestom.server.entity.metadata.LivingEntityMeta
net.minestom.server.entity.metadata.MobMeta
net.minestom.server.entity.metadata.PathfinderMobMeta
net.minestom.server.entity.metadata.AgeableMobMeta
net.minestom.server.entity.metadata.animal.AnimalMeta
net.minestom.server.entity.metadata.animal.FrogMeta
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The enum contains all variants from a frog which are currently implemented in the game. -
Field Summary
Fields inherited from class net.minestom.server.entity.metadata.EntityMeta
metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the current tongue target value.@NotNull FrogMeta.Variant
Get the currentFrogMeta.Variant
from a frog.void
Set's the current tongue target back to the default value from the protocol.void
setTongueTarget
(int value) Set the target value for a tongue.void
setVariant
(@NotNull FrogMeta.Variant value) Set the variant for a frog.Methods inherited from class net.minestom.server.entity.metadata.AgeableMobMeta
isBaby, setBaby
Methods inherited from class net.minestom.server.entity.metadata.MobMeta
isAggressive, isLeftHanded, isNoAi, setAggressive, setLeftHanded, setNoAi
Methods inherited from class net.minestom.server.entity.metadata.LivingEntityMeta
getActiveHand, getArrowCount, getBedInWhichSleepingPosition, getBeeStingerCount, getHealth, getHealthAddedByAbsorption, getPotionEffectColor, isHandActive, isInRiptideSpinAttack, isPotionEffectAmbient, setActiveHand, setArrowCount, setBedInWhichSleepingPosition, setBeeStingerCount, setHandActive, setHealth, setHealthAddedByAbsorption, setInRiptideSpinAttack, setPotionEffectAmbient, setPotionEffectColor
Methods inherited from class net.minestom.server.entity.metadata.EntityMeta
consumeEntity, getAirTicks, getCustomName, getMask, getMaskBit, getPose, getTickFrozen, isCustomNameVisible, isFlyingWithElytra, isHasGlowingEffect, isHasNoGravity, isInvisible, isOnFire, isSilent, isSneaking, isSprinting, isSwimming, setAirTicks, setCustomName, setCustomNameVisible, setFlyingWithElytra, setHasGlowingEffect, setHasNoGravity, setInvisible, setMask, setMaskBit, setNotifyAboutChanges, setOnFire, setPose, setSilent, setSneaking, setSprinting, setSwimming, setTickFrozen
-
Field Details
-
OFFSET
public static final byte OFFSET- See Also:
-
MAX_OFFSET
public static final byte MAX_OFFSET- See Also:
-
-
Constructor Details
-
FrogMeta
-
-
Method Details
-
getVariant
Get the currentFrogMeta.Variant
from a frog.- Returns:
- the given variant entry
-
setVariant
Set the variant for a frog.- Parameters:
value
- the value to set
-
getTongueTarget
public int getTongueTarget()Get the current tongue target value.- Returns:
- the given value
-
resetTongueTarget
public void resetTongueTarget()Set's the current tongue target back to the default value from the protocol. -
setTongueTarget
public void setTongueTarget(int value) Set the target value for a tongue.- Parameters:
value
- the target to set
-