public interface EntitySnapshotBuilder extends ImmutableDataBuilder<EntitySnapshot,EntitySnapshotBuilder>
ImmutableDataBuilder
for building EntitySnapshot
s. The
requirementsModifier and Type | Method and Description |
---|---|
EntitySnapshotBuilder |
from(Entity entity)
Copies over data from an
Entity . |
EntitySnapshotBuilder |
position(com.flowpowered.math.vector.Vector3d position)
Sets the coordinates of this
EntitySnapshot from a Vector3i . |
EntitySnapshotBuilder |
type(EntityType entityType)
Sets the
EntityType for this EntitySnapshot . |
EntitySnapshotBuilder |
world(WorldProperties worldProperties)
Sets the
WorldProperties for this EntitySnapshot . |
add, add, build, from, reset
build
EntitySnapshotBuilder world(WorldProperties worldProperties)
WorldProperties
for this EntitySnapshot
.
This is used to grab the UUID
of the World for this snapshot.
worldProperties
- The WorldPropertiesEntitySnapshotBuilder type(EntityType entityType)
EntityType
for this EntitySnapshot
.entityType
- The EntityTypeEntitySnapshotBuilder position(com.flowpowered.math.vector.Vector3d position)
EntitySnapshot
from a Vector3i
.position
- The Vector3i representing the coordinatesEntitySnapshotBuilder from(Entity entity)
Entity
.entity
- The Entity