public class TransformSystems
Class TransformSystems. Provides transformsystems functionality for the Hytale server.
java.lang.Object > TransformSystems
Field Summary
visibleComponent
final
EntityTrackerSystems.Visible
visibleComponent
Field visibleComponent.
transformComponent
final
TransformComponent
transformComponent
Field transformComponent.
headRotationComponent
final
HeadRotation
headRotationComponent
Field headRotationComponent.
sentTransform
final
ModelTransform
sentTransform
Field sentTransform.
position
final
Vector3d
position
Field position.
headRotation
final
Vector3f
headRotation
Field headRotation.
bodyRotation
final
Vector3f
bodyRotation
Field bodyRotation.
sentPosition
final
Position
sentPosition
Field sentPosition.
sentLookOrientation
final
Direction
sentLookOrientation
Field sentLookOrientation.
sentBodyOrientation
final
Direction
sentBodyOrientation
Field sentBodyOrientation.
update
final
ComponentUpdate
update
Field update.
Method Detail
EntityTrackerUpdate
public
public
EntityTrackerUpdate
()
Method EntityTrackerUpdate.
isParallel
public
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
tick
public
void
tick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
if
public
else
if
(!visibleComponent.newlyVisibleTo.isEmpty()
Method if.
- Parameters:
!visibleComponent.newlyVisibleTo.isEmpty(!visibleComponent.newlyVisibleTo.isEmpty(
queueUpdatesFor
static
void
queueUpdatesFor
(@Nonnull final Ref ref, @Nonnull final ModelTransform sentTransform, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo, final boolean newlyVisible)
Method queueUpdatesFor.
- Parameters:
@Nonnull final Refref@Nonnull final ModelTransformsentTransform@Nonnull final Map, EntityTrackerSystems.EntityViewer>visibleTofinal booleannewlyVisible
OnRemove
public
public
OnRemove
()
Method OnRemove.
onEntityAdd
public
void
onEntityAdd
(@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)
Method onEntityAdd.
- Parameters:
@Nonnull final Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
onEntityRemoved
public
void
onEntityRemoved
(@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)
Method onEntityRemoved.
- Parameters:
@Nonnull final Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore