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 ComponentTypeplayerComponentType@Nonnull final ComponentTypevelocityComponentType@Nonnull final ComponentTypecollisionResultComponentType
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
Damage
public
new
Damage
(Damage.NULL_SOURCE, DamageCause.ENVIRONMENT, (float)
Method Damage.
- Parameters:
Damage.NULL_SOURCEDamage.NULL_SOURCEDamageCause.ENVIRONMENTDamageCause.ENVIRONMENT(float(float