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.
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 ComponentTypeitemComponentComponentType@Nonnull final ComponentTypeinteractableComponentType@Nonnull final ResourceTypeitemSpatialComponent, EntityStore>>
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
DynamicLight
public
new
DynamicLight
(otherItemDynamicLight)
Method DynamicLight.
- Parameters:
otherItemDynamicLightotherItemDynamicLight