Class LivingEntityMeta
java.lang.Object
net.minestom.server.entity.metadata.EntityMeta
net.minestom.server.entity.metadata.LivingEntityMeta
- Direct Known Subclasses:
- ArmorStandMeta,- MobMeta,- PlayerMeta
- 
Field SummaryFieldsFields inherited from class net.minestom.server.entity.metadata.EntityMetametadata
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedLivingEntityMeta(@NotNull Entity entity, @NotNull Metadata metadata) 
- 
Method SummaryModifier and TypeMethodDescriptionint@Nullable PointintGets the amount of bee stingers in this entityfloatintDeprecated.intbooleanbooleanbooleanvoidsetActiveHand(Player.Hand hand) voidsetArrowCount(int value) voidsetBedInWhichSleepingPosition(@Nullable Point value) voidsetBeeStingerCount(int value) Sets the amount of bee stingers in this entityvoidsetHandActive(boolean value) voidsetHealth(float value) voidsetHealthAddedByAbsorption(int value) Deprecated.This sets the bee stinger count, not the absorption heart count UsesetBeeStingerCount(int)insteadvoidsetInRiptideSpinAttack(boolean value) voidsetPotionEffectAmbient(boolean value) voidsetPotionEffectColor(int value) Methods inherited from class net.minestom.server.entity.metadata.EntityMetaconsumeEntity, 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- 
OFFSETpublic static final byte OFFSET- See Also:
 
- 
MAX_OFFSETpublic static final byte MAX_OFFSET- See Also:
 
 
- 
- 
Constructor Details- 
LivingEntityMeta
 
- 
- 
Method Details- 
isHandActivepublic boolean isHandActive()
- 
setHandActivepublic void setHandActive(boolean value) 
- 
getActiveHand
- 
setActiveHand
- 
isInRiptideSpinAttackpublic boolean isInRiptideSpinAttack()
- 
setInRiptideSpinAttackpublic void setInRiptideSpinAttack(boolean value) 
- 
getHealthpublic float getHealth()
- 
setHealthpublic void setHealth(float value) 
- 
getPotionEffectColorpublic int getPotionEffectColor()
- 
setPotionEffectColorpublic void setPotionEffectColor(int value) 
- 
isPotionEffectAmbientpublic boolean isPotionEffectAmbient()
- 
setPotionEffectAmbientpublic void setPotionEffectAmbient(boolean value) 
- 
getArrowCountpublic int getArrowCount()
- 
setArrowCountpublic void setArrowCount(int value) 
- 
getHealthAddedByAbsorptionDeprecated.This returns the bee stinger count, not the absorption heart count UsegetBeeStingerCount()instead- Returns:
- The number of bee stingers in this entity
 
- 
setHealthAddedByAbsorptionDeprecated.This sets the bee stinger count, not the absorption heart count UsesetBeeStingerCount(int)instead- Parameters:
- value- The number of bee stingers for this entity to have
 
- 
getBeeStingerCountpublic int getBeeStingerCount()Gets the amount of bee stingers in this entity- Returns:
- The amount of bee stingers
 
- 
setBeeStingerCountpublic void setBeeStingerCount(int value) Sets the amount of bee stingers in this entity- Parameters:
- value- The amount of bee stingers to set, use 0 to clear all stingers
 
- 
getBedInWhichSleepingPosition
- 
setBedInWhichSleepingPosition
 
- 
getBeeStingerCount()instead