public class PlayerSystems
Class PlayerSystems. Provides playersystems functionality for the Hytale server.
java.lang.Object > PlayerSystems
Field Summary
world
Field world.
playerComponent
Field playerComponent.
playerRefComponent
Field playerRefComponent.
movementManagerComponent
Field movementManagerComponent.
displayName
Field displayName.
playerConnection
Field playerConnection.
perWorldData
Field perWorldData.
playerInventory
Field playerInventory.
deathComponent
Field deathComponent.
respawnPage
Field respawnPage.
transform
Field transform.
gameplayConfig
Field gameplayConfig.
spawnConfig
Field spawnConfig.
position
Field position.
spawnParticles
Field spawnParticles.
playerInputComponent
Field playerInputComponent.
movementUpdateQueue
Field movementUpdateQueue.
transformComponent
Field transformComponent.
headRotationComponent
Field headRotationComponent.
headRotation
Field headRotation.
entry
Field entry.
setHead
Field setHead.
abs
Field abs.
rel
Field rel.
head
Field head.
handle
Field handle.
displayNameComponent
Field displayNameComponent.
worldConfig
Field worldConfig.
nameplateComponent
Field nameplateComponent.
Method Detail
onEntityAdded
void
onEntityAdded
(@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityAdded.
- Parameters:
@Nonnull final Refref@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onEntityRemove
void
onEntityRemove
(@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityRemove.
- Parameters:
@Nonnull final Refref@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
PlayerAddedSystem
Method PlayerAddedSystem.
- Parameters:
@Nonnull final ComponentTypemovementManagerComponentType
SystemDependency
new
SystemDependency
(Order.AFTER, PlayerSpawnedSystem.class)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERPlayerSpawnedSystem.classPlayerSpawnedSystem.class
getDependencies
Set>
getDependencies
()
Method getDependencies.
DisplayNameComponent
new
DisplayNameComponent
(displayName)
Method DisplayNameComponent.
- Parameters:
displayNamedisplayName
BuilderToolsSetSoundSet
new
BuilderToolsSetSoundSet
(world.getGameplayConfig()
Method BuilderToolsSetSoundSet.
- Parameters:
world.getGameplayConfig(world.getGameplayConfig(
SetActiveSlot
new
SetActiveSlot
(-1, playerInventory.getActiveHotbarSlot()
Method SetActiveSlot.
- Parameters:
-1-1playerInventory.getActiveHotbarSlot(playerInventory.getActiveHotbarSlot(
SetBlockPlacementOverride
new
SetBlockPlacementOverride
(playerComponent.isOverrideBlockPlacementRestrictions()
Method SetBlockPlacementOverride.
- Parameters:
playerComponent.isOverrideBlockPlacementRestrictions(playerComponent.isOverrideBlockPlacementRestrictions(
Throwable
new
Throwable
()
Method Throwable.
RespawnPage
new
RespawnPage
(playerRefComponent, pendingDeathMessage, deathComponent.displayDataOnDeathScreen()
Method RespawnPage.
- Parameters:
playerRefComponentplayerRefComponentpendingDeathMessagependingDeathMessagedeathComponent.displayDataOnDeathScreen(deathComponent.displayDataOnDeathScreen(
ProcessPlayerInput
public
ProcessPlayerInput
()
Method ProcessPlayerInput.
tick
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
UpdatePlayerRef
public
UpdatePlayerRef
()
Method UpdatePlayerRef.
BlockPausedMovementSystem
public
BlockPausedMovementSystem
()
Method BlockPausedMovementSystem.
onTick
void
onTick
(@Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final CommandBuffer commandBuffer)
Method onTick.
- Parameters:
@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final CommandBuffercommandBuffer
Teleport
new
Teleport
(transformComponent.getPosition()
Method Teleport.
- Parameters:
transformComponent.getPosition(transformComponent.getPosition(
handle
MethodHandle
handle
()
Method handle.
ensureHandle
MethodHandle
ensureHandle
()
Method ensureHandle.
invoke
int
invoke
(Object p0, int p1)
Method invoke.
- Parameters:
Objectp0intp1
onEntityAdd
void
onEntityAdd
(@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)
Method onEntityAdd.
- Parameters:
@Nonnull final Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
onEntityRemoved
void
onEntityRemoved
(@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)
Method onEntityRemoved.
- Parameters:
@Nonnull final Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore
Transform
new
Transform
(transformComponent.getPosition()
Method Transform.
- Parameters:
transformComponent.getPosition(transformComponent.getPosition(
componentType
DisplayNameComponent>
componentType
()
Method componentType.
onComponentAdded
void
onComponentAdded
(@Nonnull final Ref ref, @Nonnull final DisplayNameComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentAdded.
- Parameters:
@Nonnull final Refref@Nonnull final DisplayNameComponentcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentSet
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 Refreffinal DisplayNameComponentoldComponent@Nonnull final DisplayNameComponentnewComponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentRemoved
void
onComponentRemoved
(@Nonnull final Ref ref, @Nonnull final DisplayNameComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentRemoved.
- Parameters:
@Nonnull final Refref@Nonnull final DisplayNameComponentcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
KillFeedKillerEventSystem
public
KillFeedKillerEventSystem
()
Method KillFeedKillerEventSystem.
KillFeedDecedentEventSystem
public
KillFeedDecedentEventSystem
()
Method KillFeedDecedentEventSystem.