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
Nested ClassesModifier and TypeClassDescriptionstatic enumThe enum contains all variants from a frog which are currently implemented in the game. -
Field Summary
FieldsFields inherited from class net.minestom.server.entity.metadata.EntityMeta
metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the current tongue target value.@NotNull FrogMeta.VariantGet the currentFrogMeta.Variantfrom a frog.voidSet's the current tongue target back to the default value from the protocol.voidsetTongueTarget(int value) Set the target value for a tongue.voidsetVariant(@NotNull FrogMeta.Variant value) Set the variant for a frog.Methods inherited from class net.minestom.server.entity.metadata.AgeableMobMeta
isBaby, setBabyMethods inherited from class net.minestom.server.entity.metadata.MobMeta
isAggressive, isLeftHanded, isNoAi, setAggressive, setLeftHanded, setNoAiMethods 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, setPotionEffectColorMethods 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.Variantfrom 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
-