EntitySystems

public class EntitySystems

Class EntitySystems. Provides entitysystems functionality for the Hytale server.

java.lang.Object > EntitySystems

Field Summary

transformComponent

final TransformComponent transformComponent

Field transformComponent.

chunkRef

final Ref chunkRef

Field chunkRef.

world

final World world

Field world.

chunkStore

final ChunkStore chunkStore

Field chunkStore.

chunkComponentStore

final Store chunkComponentStore

Field chunkComponentStore.

entityChunkComponent

final EntityChunk entityChunkComponent

Field entityChunkComponent.

visibleComponent

final EntityTrackerSystems.Visible visibleComponent

Field visibleComponent.

dynamicLightComponent

final DynamicLight dynamicLightComponent

Field dynamicLightComponent.

dynamicLight

final ColorLight dynamicLight

Field dynamicLight.

update

final ComponentUpdate update

Field update.

newSpawnComponent

final NewSpawnComponent newSpawnComponent

Field newSpawnComponent.

ref

final Ref ref

Field ref.

Method Detail

ClearMarker

public public ClearMarker (@Nonnull final ComponentType componentType, @Nonnull final SystemGroup preGroup)

Method ClearMarker.

Parameters:
@Nonnull final ComponentType componentType
@Nonnull final SystemGroup preGroup

SystemGroupDependency

public new SystemGroupDependency (Order.AFTER, preGroup)

Method SystemGroupDependency.

Parameters:
Order.AFTER Order.AFTER
preGroup preGroup

onEntityAdded

public void onEntityAdded (@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final AddReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onEntityRemove

public void onEntityRemove (@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityRemove.

Parameters:
@Nonnull final Ref ref
@Nonnull final RemoveReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

getQuery

public Query getQuery ()

Method getQuery.

getDependencies

public Set> getDependencies ()

Method getDependencies.

ClearFromPrefabMarker

public public ClearFromPrefabMarker (@Nonnull final ComponentType componentType, @Nonnull final SystemGroup preGroup)

Method ClearFromPrefabMarker.

Parameters:
@Nonnull final ComponentType componentType
@Nonnull final SystemGroup preGroup

ClearFromWorldGenMarker

public public ClearFromWorldGenMarker (@Nonnull final ComponentType componentType, @Nonnull final SystemGroup preGroup)

Method ClearFromWorldGenMarker.

Parameters:
@Nonnull final ComponentType componentType
@Nonnull final SystemGroup preGroup

OnLoadFromExternal

public public OnLoadFromExternal (@Nonnull final ComponentType fromPrefab, @Nonnull final ComponentType fromWorldGen, @Nonnull final SystemGroup group)

Method OnLoadFromExternal.

Parameters:
@Nonnull final ComponentType fromPrefab
@Nonnull final ComponentType fromWorldGen
@Nonnull final SystemGroup group

SystemDependency

public new SystemDependency (Order.BEFORE, EntityStore.UUIDSystem.class)

Method SystemDependency.

Parameters:
Order.BEFORE Order.BEFORE
EntityStore.UUIDSystem.class EntityStore.UUIDSystem.class

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store

getGroup

public SystemGroup getGroup ()

Method getGroup.

DynamicLightTracker

public public DynamicLightTracker (@Nonnull final ComponentType componentType)

Method DynamicLightTracker.

Parameters:
@Nonnull final ComponentType componentType

isParallel

public boolean isParallel (final int archetypeChunkSize, final int taskCount)

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

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 float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

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 ColorLight dynamicLight, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo)

Method queueUpdatesFor.

Parameters:
@Nonnull final Ref ref
@Nonnull final ColorLight dynamicLight
@Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo

queueRemoveFor

static void queueRemoveFor (@Nonnull final Ref ref, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo)

Method queueRemoveFor.

Parameters:
@Nonnull final Ref ref
@Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo

NewSpawnEntityTrackerUpdate

public public NewSpawnEntityTrackerUpdate ()

Method NewSpawnEntityTrackerUpdate.

NewSpawnTick

public public NewSpawnTick ()

Method NewSpawnTick.