public interface InvulnerabilityData extends DataManipulator<InvulnerabilityData,ImmutableInvulnerabilityData>
DataManipulator for the invulnerability an Entity can have
such that any "damage" occurring while the Entity is "invulnerable"
will not actually "damage" the Entity.| Modifier and Type | Method and Description |
|---|---|
Value<Boolean> |
invulnerable()
Gets the boolean
Value which represents if an entity is
invulnerable from most damage sources besides besides the void,
players in creative mode, and manual killing like the /kill command. |
MutableBoundedValue<Integer> |
invulnerableTicks()
Gets the
MutableBoundedValue for the amount of "ticks" of
"invulnerability" an entity has because of being hurt recently. |
asImmutable, copy, fill, fill, from, set, set, set, set, transformgetContentVersion, toContainerMutableBoundedValue<Integer> invulnerableTicks()
MutableBoundedValue for the amount of "ticks" of
"invulnerability" an entity has because of being hurt recently.Keys.INVULNERABILITY_TICKSValue<Boolean> invulnerable()
Value which represents if an entity is
invulnerable from most damage sources besides besides the void,
players in creative mode, and manual killing like the /kill command.
This does not cover creative mode, where players can also be invulnerable.
Keys.INVULNERABLE