public class TransformComponent implements Component
Component for tracking transform state. Attach this component to entities that need to track transform data.
java.lang.Object > TransformComponent
Field Summary
chunk
private
WorldChunk
chunk
Field chunk.
chunkRef
private
Ref
chunkRef
Field chunkRef.
x
final
double
x
Field x.
y
final
double
y
Field y.
z
final
double
z
Field z.
yaw
final
float
yaw
Field yaw.
pitch
final
float
pitch
Field pitch.
roll
final
float
roll
Field roll.
world
final
World
world
Field world.
chunkStore
final
Store
chunkStore
Field chunkStore.
worldChunkComponent
final
WorldChunk
worldChunkComponent
Field worldChunkComponent.
transformComponent
final
TransformComponent
transformComponent
Field transformComponent.
transform
final
ModelTransform
transform
Field transform.
Method Detail
getComponentType
public
TransformComponent>
getComponentType
()
Method getComponentType.
TransformComponent
public
public
TransformComponent
()
Method TransformComponent.
ModelTransform
public
new
ModelTransform
(new Position()
Method ModelTransform.
- Parameters:
newPosition(
Direction
public
new
Direction
()
Method Direction.
markChunkDirty
Method markChunkDirty.
- Parameters:
@Nonnull final ComponentAccessorcomponentAccessor
setChunkLocation
Method setChunkLocation.
- Parameters:
@Nullable final RefchunkRef@Nullable final WorldChunkchunk
KeyedCodec
public
new
KeyedCodec
("Rotation", Vector3f.ROTATION)
Method KeyedCodec.
- Parameters:
"Rotation""Rotation"Vector3f.ROTATIONVector3f.ROTATION