public static interface EntitySnapshot.Builder extends ImmutableDataBuilder<EntitySnapshot,EntitySnapshot.Builder>
ImmutableDataBuilder for building EntitySnapshots. The
requirements| Modifier and Type | Method and Description |
|---|---|
EntitySnapshot.Builder |
from(Entity entity)
Copies over data from an
Entity. |
EntitySnapshot.Builder |
position(com.flowpowered.math.vector.Vector3d position)
Sets the coordinates of this
EntitySnapshot from a
Vector3i. |
EntitySnapshot.Builder |
type(EntityType entityType)
Sets the
EntityType for this EntitySnapshot. |
EntitySnapshot.Builder |
world(WorldProperties worldProperties)
Sets the
WorldProperties for this EntitySnapshot. |
add, add, add, build, from, resetbuildEntitySnapshot.Builder world(WorldProperties worldProperties)
WorldProperties for this EntitySnapshot.
This is used to grab the UUID of the World for this
snapshot.
worldProperties - The WorldPropertiesEntitySnapshot.Builder type(EntityType entityType)
EntityType for this EntitySnapshot.entityType - The EntityTypeEntitySnapshot.Builder position(com.flowpowered.math.vector.Vector3d position)
EntitySnapshot from a
Vector3i.position - The Vector3i representing the coordinatesEntitySnapshot.Builder from(Entity entity)
Entity.entity - The Entity