Package org.core.entity
Interface EntitySnapshot.NoneDestructibleSnapshot<E extends LiveEntity>
- All Superinterfaces:
Entity<EntitySnapshot<? extends LiveEntity>>
,EntitySnapshot<E>
,Positionable<SyncExactPosition>
- All Known Subinterfaces:
PlayerSnapshot
- Enclosing interface:
- EntitySnapshot<E extends LiveEntity>
public static interface EntitySnapshot.NoneDestructibleSnapshot<E extends LiveEntity>
extends EntitySnapshot<E>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.core.entity.EntitySnapshot
EntitySnapshot.NoneDestructibleSnapshot<E extends LiveEntity>
-
Method Summary
Modifier and TypeMethodDescriptiondefault E
Gets the entity to teleportteleportEntity(boolean)
teleportEntity(boolean keepInventory)
Teleports the entity from its current position into the state of the snapshotMethods inherited from interface org.core.entity.Entity
addPassengers, addPassengers, clearPassengers, getAttachedTo, getCustomNameComponent, getFacingDirection, getPassengers, getPitch, getPosition, getRoll, getType, getVelocity, getYaw, hasGravity, hasPassengers, isCustomNameVisible, isOnGround, isRemoved, removePassengers, removePassengers, setCustomName, setCustomName, setCustomNameVisible, setGravity, setPitch, setPosition, setPosition, setPosition, setPosition, setRoll, setVelocity, setVelocity, setYaw
Methods inherited from interface org.core.entity.EntitySnapshot
createSnapshot, getCreatedFrom, spawnEntity
-
Method Details
-
teleportEntity
Teleports the entity from its current position into the state of the snapshot- Parameters:
keepInventory
- If the entity should keep its current inventory or apply the snapshot inventory- Returns:
- The teleported entity
-
getEntity
Gets the entity to teleportteleportEntity(boolean)
- Returns:
- The entity of the snapshot
-