LivingEntityEffectSystem

public class LivingEntityEffectSystem extends EntityTickingSystem

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

java.lang.Object > EntityTickingSystem > LivingEntityEffectSystem

Field Summary

effectControllerComponent

final EffectControllerComponent effectControllerComponent

Field effectControllerComponent.

activeEffects

final Int2ObjectMap activeEffects

Field activeEffects.

entityRef

final Ref entityRef

Field entityRef.

iterator

final ObjectIterator iterator

Field iterator.

entityStatMapComponent

final EntityStatMap entityStatMapComponent

Field entityStatMapComponent.

activeEntityEffect

final ActiveEntityEffect activeEntityEffect

Field activeEntityEffect.

entityEffectIndex

final int entityEffectIndex

Field entityEffectIndex.

entityEffect

final EntityEffect entityEffect

Field entityEffect.

tickDelta

final float tickDelta

Field tickDelta.

entity

final Entity entity

Field entity.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

boundingBoxComponent

final BoundingBox boundingBoxComponent

Field boundingBoxComponent.

position

final Vector3d position

Field position.

boundingBox

final Box boundingBox

Field boundingBox.

world

final World world

Field world.

chunkRef

final Ref chunkRef

Field chunkRef.

chunkComponentStore

final Store chunkComponentStore

Field chunkComponentStore.

worldChunkComponent

final WorldChunk worldChunkComponent

Field worldChunkComponent.

chunkAccessor

final LocalCachedChunkAccessor chunkAccessor

Field chunkAccessor.

localChunk

final WorldChunk localChunk

Field localChunk.

Method Detail

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 (!canApplyEffect(entityRef, entityEffect, commandBuffer)

Method if.

Parameters:
!canApplyEffect(entityRef !canApplyEffect(entityRef
entityEffect entityEffect
commandBuffer commandBuffer

getGroup

public SystemGroup getGroup ()

Method getGroup.

canApplyEffect

static boolean canApplyEffect (@Nonnull final Ref ownerRef, @Nonnull final EntityEffect entityEffect, @Nonnull final ComponentAccessor componentAccessor)

Method canApplyEffect.

Parameters:
@Nonnull final Ref ownerRef
@Nonnull final EntityEffect entityEffect
@Nonnull final ComponentAccessor componentAccessor