ItemMergeSystem

public class ItemMergeSystem extends EntityTickingSystem

System for handling itemmerge mechanics. Systems contain game logic that operates on entities with specific component types.

java.lang.Object > EntityTickingSystem > ItemMergeSystem

Field Summary

itemComponent

final ItemComponent itemComponent

Field itemComponent.

itemAsset

final Item itemAsset

Field itemAsset.

maxStack

final int maxStack

Field maxStack.

timeResource

final TimeResource timeResource

Field timeResource.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

position

final Vector3d position

Field position.

results

final ObjectList> results

Field results.

reference

final Ref reference

Field reference.

otherItemComponent

final ItemComponent otherItemComponent

Field otherItemComponent.

otherItemStack

final ItemStack otherItemStack

Field otherItemStack.

otherQuantity

final int otherQuantity

Field otherQuantity.

combinedTotal

final int combinedTotal

Field combinedTotal.

newLifetime

final float newLifetime

Field newLifetime.

otherItemDynamicLight

final ColorLight otherItemDynamicLight

Field otherItemDynamicLight.

otherDynamicLightComponent

final DynamicLight otherDynamicLightComponent

Field otherDynamicLightComponent.

Method Detail

ItemMergeSystem

public public ItemMergeSystem (@Nonnull final ComponentType itemComponentComponentType, @Nonnull final ComponentType interactableComponentType, @Nonnull final ResourceType, EntityStore>> itemSpatialComponent)

Method ItemMergeSystem.

Parameters:
@Nonnull final ComponentType itemComponentComponentType
@Nonnull final ComponentType interactableComponentType
@Nonnull final ResourceType, EntityStore>> itemSpatialComponent

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

DynamicLight

public new DynamicLight (otherItemDynamicLight)

Method DynamicLight.

Parameters:
otherItemDynamicLight otherItemDynamicLight