PlayerProcessMovementSystem

public class PlayerProcessMovementSystem extends EntityTickingSystem

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

java.lang.Object > EntityTickingSystem > PlayerProcessMovementSystem

Field Summary

world

final World world

Field world.

ref

final Ref ref

Field ref.

playerComponent

final Player playerComponent

Field playerComponent.

velocityComponent

final Velocity velocityComponent

Field velocityComponent.

collisionResultComponent

final CollisionResultComponent collisionResultComponent

Field collisionResultComponent.

interactionManagerComponent

final InteractionManager interactionManagerComponent

Field interactionManagerComponent.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

pendingCollisionCheck

final boolean pendingCollisionCheck

Field pendingCollisionCheck.

boundingBoxComponent

final BoundingBox boundingBoxComponent

Field boundingBoxComponent.

boundingBox

final Box boundingBox

Field boundingBox.

chunkRef

final Ref chunkRef

Field chunkRef.

chunkStore

final Store chunkStore

Field chunkStore.

worldChunkComponent

final WorldChunk worldChunkComponent

Field worldChunkComponent.

positionDataComponent

final PositionDataComponent positionDataComponent

Field positionDataComponent.

blockPosition

final Vector3i blockPosition

Field blockPosition.

damageToEntity

final int damageToEntity

Field damageToEntity.

damage

final Damage damage

Field damage.

Method Detail

PlayerProcessMovementSystem

public public PlayerProcessMovementSystem (@Nonnull final ComponentType playerComponentType, @Nonnull final ComponentType velocityComponentType, @Nonnull final ComponentType collisionResultComponentType)

Method PlayerProcessMovementSystem.

Parameters:
@Nonnull final ComponentType playerComponentType
@Nonnull final ComponentType velocityComponentType
@Nonnull final ComponentType collisionResultComponentType

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

Damage

public new Damage (Damage.NULL_SOURCE, DamageCause.ENVIRONMENT, (float)

Method Damage.

Parameters:
Damage.NULL_SOURCE Damage.NULL_SOURCE
DamageCause.ENVIRONMENT DamageCause.ENVIRONMENT
(float (float