Class WardenMeta
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.monster.MonsterMeta
net.minestom.server.entity.metadata.monster.WardenMeta
This metadata implementation can be used for a warden entity.
- Since:
- 1.0.0
-
Field Summary
Fields inherited from class net.minestom.server.entity.metadata.EntityMeta
metadata
-
Constructor Summary
ConstructorDescriptionWardenMeta
(@NotNull Entity entity, @NotNull Metadata metadata) Creates a new metadata which can be set to a warden entity. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the given anger level from the meta or zero as default value if no value is set.void
setAngerLevel
(int value) Set the anger level for a warden.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
-
WardenMeta
Creates a new metadata which can be set to a warden entity.- Parameters:
entity
- the warden entity referencemetadata
- the reference to aMetadata
-
-
Method Details
-
setAngerLevel
public void setAngerLevel(int value) Set the anger level for a warden.- Parameters:
value
- the level to set
-
getAngerLevel
public int getAngerLevel()Returns the given anger level from the meta or zero as default value if no value is set.- Returns:
- the given level
-