public interface ImmutableInvulnerabilityData extends ImmutableDataManipulator<ImmutableInvulnerabilityData,InvulnerabilityData>
ImmutableDataManipulator
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 |
---|---|
ImmutableValue<Boolean> |
invulnerable()
Gets the boolean
ImmutableValue 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. |
ImmutableBoundedValue<Integer> |
invulnerableTicks()
Gets the
ImmutableBoundedValue for the amount of "ticks" of
"invulnerability". |
asMutable, copy, with, with
getContentVersion, toContainer
ImmutableBoundedValue<Integer> invulnerableTicks()
ImmutableBoundedValue
for the amount of "ticks" of
"invulnerability".ImmutableValue<Boolean> invulnerable()
ImmutableValue
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.