Class LivingEntityMeta
java.lang.Object
net.minestom.server.entity.metadata.EntityMeta
net.minestom.server.entity.metadata.LivingEntityMeta
- Direct Known Subclasses:
ArmorStandMeta, AvatarMeta, MobMeta
-
Field Summary
Fields inherited from class EntityMeta
metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintGets the amount of bee stingers in this entityfloatbooleanbooleanbooleanvoidsetActiveHand(PlayerHand hand) voidsetArrowCount(int value) voidvoidsetBeeStingerCount(int value) Sets the amount of bee stingers in this entityvoidsetEffectParticles(List<Particle> value) voidsetHandActive(boolean value) voidsetHealth(float value) voidsetInRiptideSpinAttack(boolean value) voidsetPotionEffectAmbient(boolean value) Methods inherited from class EntityMeta
consumeEntity, get, getAirTicks, getComponent, getCustomName, getPose, getTickFrozen, isCustomNameVisible, isFlyingWithElytra, isHasGlowingEffect, isHasNoGravity, isInvisible, isOnFire, isSilent, isSneaking, isSprinting, isSwimming, set, setAirTicks, setComponent, setCustomName, setCustomNameVisible, setFlyingWithElytra, setHasGlowingEffect, setHasNoGravity, setInvisible, setNotifyAboutChanges, setOnFire, setPose, setSilent, setSneaking, setSprinting, setSwimming, setTickFrozen
-
Constructor Details
-
LivingEntityMeta
-
-
Method Details
-
isHandActive
public boolean isHandActive() -
setHandActive
public void setHandActive(boolean value) -
getActiveHand
-
setActiveHand
-
isInRiptideSpinAttack
public boolean isInRiptideSpinAttack() -
setInRiptideSpinAttack
public void setInRiptideSpinAttack(boolean value) -
getHealth
public float getHealth() -
setHealth
public void setHealth(float value) -
getEffectParticles
-
setEffectParticles
-
isPotionEffectAmbient
public boolean isPotionEffectAmbient() -
setPotionEffectAmbient
public void setPotionEffectAmbient(boolean value) -
getArrowCount
public int getArrowCount() -
setArrowCount
public void setArrowCount(int value) -
getBeeStingerCount
public int getBeeStingerCount()Gets the amount of bee stingers in this entity- Returns:
- The amount of bee stingers
-
setBeeStingerCount
public 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
-