NameplateSystems

public class NameplateSystems

Class NameplateSystems. Provides nameplatesystems functionality for the Hytale server.

java.lang.Object > NameplateSystems

Field Summary

visibleComponent

final EntityTrackerSystems.Visible visibleComponent

Field visibleComponent.

nameplateComponent

final Nameplate nameplateComponent

Field nameplateComponent.

update

final ComponentUpdate update

Field update.

Method Detail

EntityTrackerUpdate

public public EntityTrackerUpdate (@Nonnull final ComponentType visibleComponentType, @Nonnull final ComponentType componentType)

Method EntityTrackerUpdate.

Parameters:
@Nonnull final ComponentType visibleComponentType
@Nonnull final ComponentType componentType

getGroup

public SystemGroup getGroup ()

Method getGroup.

getQuery

public Query getQuery ()

Method getQuery.

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

Method queueUpdatesFor.

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

EntityTrackerRemove

public public EntityTrackerRemove (@Nonnull final ComponentType visibleComponentType, @Nonnull final ComponentType componentType)

Method EntityTrackerRemove.

Parameters:
@Nonnull final ComponentType visibleComponentType
@Nonnull final ComponentType componentType

componentType

public Nameplate> componentType ()

Method componentType.

onComponentAdded

public void onComponentAdded (@Nonnull final Ref ref, @Nonnull final Nameplate component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final Nameplate component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentSet

public void onComponentSet (@Nonnull final Ref ref, final Nameplate oldComponent, @Nonnull final Nameplate newComponent, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentSet.

Parameters:
@Nonnull final Ref ref
final Nameplate oldComponent
@Nonnull final Nameplate newComponent
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentRemoved

public void onComponentRemoved (@Nonnull final Ref ref, @Nonnull final Nameplate component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentRemoved.

Parameters:
@Nonnull final Ref ref
@Nonnull final Nameplate component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer