Class LivingEntityMeta
java.lang.Object
net.minestom.server.entity.metadata.EntityMeta
net.minestom.server.entity.metadata.LivingEntityMeta
- Direct Known Subclasses:
ArmorStandMeta
,MobMeta
,PlayerMeta
-
Field Summary
Fields inherited from class net.minestom.server.entity.metadata.EntityMeta
metadata
-
Constructor Summary
ModifierConstructorDescriptionprotected
LivingEntityMeta
(@NotNull Entity entity, @NotNull MetadataHolder metadata) -
Method Summary
Modifier and TypeMethodDescriptionint
@Nullable Point
int
Gets the amount of bee stingers in this entityfloat
boolean
boolean
boolean
void
setActiveHand
(Player.Hand hand) void
setArrowCount
(int value) void
setBedInWhichSleepingPosition
(@Nullable Point value) void
setBeeStingerCount
(int value) Sets the amount of bee stingers in this entityvoid
setEffectParticles
(@NotNull List<Particle> value) void
setHandActive
(boolean value) void
setHealth
(float value) void
setInRiptideSpinAttack
(boolean value) void
setPotionEffectAmbient
(boolean value) 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
-
LivingEntityMeta
protected LivingEntityMeta(@NotNull @NotNull Entity entity, @NotNull @NotNull MetadataHolder metadata)
-
-
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
-