PlayerSystems

public class PlayerSystems

Class PlayerSystems. Provides playersystems functionality for the Hytale server.

java.lang.Object > PlayerSystems

Field Summary

world

final World world

Field world.

playerComponent

final Player playerComponent

Field playerComponent.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

movementManagerComponent

final MovementManager movementManagerComponent

Field movementManagerComponent.

displayName

final Message displayName

Field displayName.

playerConnection

final PacketHandler playerConnection

Field playerConnection.

perWorldData

final PlayerWorldData perWorldData

Field perWorldData.

playerInventory

final Inventory playerInventory

Field playerInventory.

deathComponent

final DeathComponent deathComponent

Field deathComponent.

respawnPage

final RespawnPage respawnPage

Field respawnPage.

transform

final TransformComponent transform

Field transform.

gameplayConfig

final GameplayConfig gameplayConfig

Field gameplayConfig.

spawnConfig

final SpawnConfig spawnConfig

Field spawnConfig.

position

final Vector3d position

Field position.

results

final ObjectList> results

Field results.

spawnParticles

final WorldParticle[] spawnParticles

Field spawnParticles.

playerInputComponent

final PlayerInput playerInputComponent

Field playerInputComponent.

movementUpdateQueue

final List movementUpdateQueue

Field movementUpdateQueue.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

headRotationComponent

final HeadRotation headRotationComponent

Field headRotationComponent.

headRotation

final Vector3f headRotation

Field headRotation.

entry

final PlayerInput.InputUpdate entry

Field entry.

setHead

final PlayerInput.SetHead setHead

Field setHead.

abs

final PlayerInput.AbsoluteMovement abs

Field abs.

rel

final PlayerInput.RelativeMovement rel

Field rel.

head

final PlayerInput.SetHead head

Field head.

handle

final MethodHandle handle

Field handle.

displayNameComponent

final DisplayNameComponent displayNameComponent

Field displayNameComponent.

worldConfig

final WorldConfig worldConfig

Field worldConfig.

nameplateComponent

final Nameplate nameplateComponent

Field nameplateComponent.

Method Detail

getQuery

public Query getQuery ()

Method getQuery.

onEntityAdded

public void onEntityAdded (@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final AddReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onEntityRemove

public void onEntityRemove (@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityRemove.

Parameters:
@Nonnull final Ref ref
@Nonnull final RemoveReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

PlayerAddedSystem

public public PlayerAddedSystem (@Nonnull final ComponentType movementManagerComponentType)

Method PlayerAddedSystem.

Parameters:
@Nonnull final ComponentType movementManagerComponentType

SystemDependency

public new SystemDependency (Order.AFTER, PlayerSpawnedSystem.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
PlayerSpawnedSystem.class PlayerSpawnedSystem.class

getDependencies

public Set> getDependencies ()

Method getDependencies.

DisplayNameComponent

public new DisplayNameComponent (displayName)

Method DisplayNameComponent.

Parameters:
displayName displayName

BuilderToolsSetSoundSet

public new BuilderToolsSetSoundSet (world.getGameplayConfig()

Method BuilderToolsSetSoundSet.

Parameters:
world.getGameplayConfig( world.getGameplayConfig(

SetActiveSlot

public new SetActiveSlot (-1, playerInventory.getActiveHotbarSlot()

Method SetActiveSlot.

Parameters:
-1 -1
playerInventory.getActiveHotbarSlot( playerInventory.getActiveHotbarSlot(

SetBlockPlacementOverride

public new SetBlockPlacementOverride (playerComponent.isOverrideBlockPlacementRestrictions()

Method SetBlockPlacementOverride.

Parameters:
playerComponent.isOverrideBlockPlacementRestrictions( playerComponent.isOverrideBlockPlacementRestrictions(

Throwable

public new Throwable ()

Method Throwable.

RespawnPage

public new RespawnPage (playerRefComponent, pendingDeathMessage, deathComponent.displayDataOnDeathScreen()

Method RespawnPage.

Parameters:
playerRefComponent playerRefComponent
pendingDeathMessage pendingDeathMessage
deathComponent.displayDataOnDeathScreen( deathComponent.displayDataOnDeathScreen(

ProcessPlayerInput

public public ProcessPlayerInput ()

Method ProcessPlayerInput.

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

UpdatePlayerRef

public public UpdatePlayerRef ()

Method UpdatePlayerRef.

BlockPausedMovementSystem

public public BlockPausedMovementSystem ()

Method BlockPausedMovementSystem.

onTick

static void onTick (@Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final CommandBuffer commandBuffer)

Method onTick.

Parameters:
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final CommandBuffer commandBuffer

Teleport

public new Teleport (transformComponent.getPosition()

Method Teleport.

Parameters:
transformComponent.getPosition( transformComponent.getPosition(

handle

static MethodHandle handle ()

Method handle.

ensureHandle

static MethodHandle ensureHandle ()

Method ensureHandle.

invoke

static int invoke (Object p0, int p1)

Method invoke.

Parameters:
Object p0
int p1

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store

Transform

public new Transform (transformComponent.getPosition()

Method Transform.

Parameters:
transformComponent.getPosition( transformComponent.getPosition(

componentType

public DisplayNameComponent> componentType ()

Method componentType.

onComponentAdded

public void onComponentAdded (@Nonnull final Ref ref, @Nonnull final DisplayNameComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final DisplayNameComponent component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentSet

public void onComponentSet (@Nonnull final Ref ref, final DisplayNameComponent oldComponent, @Nonnull final DisplayNameComponent newComponent, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentSet.

Parameters:
@Nonnull final Ref ref
final DisplayNameComponent oldComponent
@Nonnull final DisplayNameComponent newComponent
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentRemoved

public void onComponentRemoved (@Nonnull final Ref ref, @Nonnull final DisplayNameComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentRemoved.

Parameters:
@Nonnull final Ref ref
@Nonnull final DisplayNameComponent component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

KillFeedKillerEventSystem

public public KillFeedKillerEventSystem ()

Method KillFeedKillerEventSystem.

KillFeedDecedentEventSystem

public public KillFeedDecedentEventSystem ()

Method KillFeedDecedentEventSystem.