ItemSystems

public class ItemSystems

Class ItemSystems. Provides itemsystems functionality for the Hytale server.

java.lang.Object > ItemSystems

Field Summary

itemComponent

final ItemComponent itemComponent

Field itemComponent.

itemDynamicLight

final ColorLight itemDynamicLight

Field itemDynamicLight.

visibleComponent

final EntityTrackerSystems.Visible visibleComponent

Field visibleComponent.

entityScaleComponent

final EntityScaleComponent entityScaleComponent

Field entityScaleComponent.

update

final ComponentUpdate update

Field update.

itemStack

final ItemStack itemStack

Field itemStack.

Method Detail

getQuery

public Query getQuery ()

Method getQuery.

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

NetworkId

public new NetworkId (store.getExternalData()

Method NetworkId.

Parameters:
store.getExternalData( store.getExternalData(

BoundingBox

public new BoundingBox (Box.horizontallyCentered(0.5, 0.5, 0.5)

Method BoundingBox.

Parameters:
Box.horizontallyCentered(0.5 Box.horizontallyCentered(0.5
0.5 0.5

DynamicLight

public new DynamicLight (itemDynamicLight)

Method DynamicLight.

Parameters:
itemDynamicLight itemDynamicLight

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

TrackerSystem

public public TrackerSystem (@Nonnull final ComponentType visibleComponentType)

Method TrackerSystem.

Parameters:
@Nonnull final ComponentType visibleComponentType

getGroup

public SystemGroup getGroup ()

Method getGroup.

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 ItemComponent item, final float entityScale, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo)

Method queueUpdatesFor.

Parameters:
@Nonnull final Ref ref
@Nonnull final ItemComponent item
final float entityScale
@Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo