public interface InvisibilityData extends DataManipulator<InvisibilityData,ImmutableInvisibilityData>
DataManipulator for the "vanish" state. If the value is true,
the Entity is rendered "vanish".| Modifier and Type | Method and Description |
|---|---|
Value<Boolean> |
ignoresCollisionDetection()
|
Value<Boolean> |
invisible()
|
Value<Boolean> |
untargetable()
|
Value<Boolean> |
vanish()
|
asImmutable, copy, fill, fill, from, set, set, set, set, transformgetContentVersion, toContainerValue<Boolean> invisible()
Value of the "invisible" state of an Entity.
Note that this is different from the vanish() state as when an
Entity is "invisible", update packets are still sent to all clients
and the server.
Keys.INVISIBLEValue<Boolean> vanish()
Value of the "vanish" state of an Entity.
The presence of a vanished entity will not be made known to a client; no packets pertaining to this entity are sent. Client-side, this entity will cease to exist. Server-side it may still be targeted by hostile entities or collide with other entities.
Vanishing an Entity ridden by other entities (see
PassengerData) will cause problems.
Keys.VANISHValue<Boolean> ignoresCollisionDetection()
Value of whether an Entity that is "vanished" will
be ignored for collision detection. The collision detection can affect
collisions with other entities, blocks, etc.Keys.VANISH_IGNORES_COLLISION