public class DeathSystems
Class DeathSystems. Provides deathsystems functionality for the Hytale server.
java.lang.Object > DeathSystems
Field Summary
model
Field model.
animationIds
Field animationIds.
selectedAnimationId
Field selectedAnimationId.
entityStatMapComponent
Field entityStatMapComponent.
interactionManagerComponent
Field interactionManagerComponent.
effectControllerComponent
Field effectControllerComponent.
nameplateComponent
Field nameplateComponent.
deathInfo
Field deathInfo.
deathCause
Field deathCause.
source
Field source.
sourceRef
Field sourceRef.
attacker
Field attacker.
playerComponent
Field playerComponent.
combinedItemContainer
Field combinedItemContainer.
durabilityLossRatio
Field durabilityLossRatio.
itemStack
Field itemStack.
durabilityLoss
Field durabilityLoss.
updatedItemStack
Field updatedItemStack.
transaction
Field transaction.
itemsAmountLossPercentage
Field itemsAmountLossPercentage.
itemAmountLossRatio
Field itemAmountLossRatio.
itemStack2
Field itemStack2.
quantityToLose
Field quantityToLose.
newQuantity
Field newQuantity.
updatedItemStack2
Field updatedItemStack2.
transformComponent
Field transformComponent.
position
Field position.
headRotationComponent
Field headRotationComponent.
headRotation
Field headRotation.
drops
Field drops.
deathConfig
Field deathConfig.
interactionsComponent
Field interactionsComponent.
unarmed
Field unarmed.
rootInteraction
Field rootInteraction.
context
Field context.
chain
Field chain.
world
Field world.
broadcastTargets
Field broadcastTargets.
killerMessageEvent
Field killerMessageEvent.
decedentMessageEvent
Field decedentMessageEvent.
decedentMessage
Field decedentMessage.
killFeedEvent
Field killFeedEvent.
killFeedMessage
Field killFeedMessage.
deathMessage
Field deathMessage.
playerRefComponent
Field playerRefComponent.
pageManager
Field pageManager.
gameplayConfig
Field gameplayConfig.
worldMapConfigGameplayConfig
Field worldMapConfigGameplayConfig.
transform
Field transform.
worldTimeResource
Field worldTimeResource.
gameTime
Field gameTime.
daysSinceWorldStart
Field daysSinceWorldStart.
deathMarkerId
Field deathMarkerId.
perWorldData
Field perWorldData.
modelComponent
Field modelComponent.
movementStatesComponent
Field movementStatesComponent.
deathComponent
Field deathComponent.
deathInteractionChain
Field deathInteractionChain.
corpseRemoval
Field corpseRemoval.
Method Detail
playDeathAnimation
void
playDeathAnimation
(@Nonnull final Ref ref, @Nonnull final DeathComponent deathComponent, @Nullable final ModelComponent modelComponent, @Nonnull final MovementStatesComponent movementStatesComponent, @Nonnull final ComponentAccessor componentAccessor)
Method playDeathAnimation.
- Parameters:
@Nonnull final Refref@Nonnull final DeathComponentdeathComponent@Nullable final ModelComponentmodelComponent@Nonnull final MovementStatesComponentmovementStatesComponent@Nonnull final ComponentAccessorcomponentAccessor
componentType
DeathComponent>
componentType
()
Method componentType.
onComponentSet
void
onComponentSet
(@Nonnull final Ref ref, final DeathComponent oldComponent, @Nonnull final DeathComponent newComponent, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentSet.
- Parameters:
@Nonnull final Refreffinal DeathComponentoldComponent@Nonnull final DeathComponentnewComponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentRemoved
void
onComponentRemoved
(@Nonnull final Ref ref, @Nonnull final DeathComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentRemoved.
- Parameters:
@Nonnull final Refref@Nonnull final DeathComponentcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
getDependencies
Set>
getDependencies
()
Method getDependencies.
onComponentAdded
void
onComponentAdded
(@Nonnull final Ref ref, @Nonnull final DeathComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentAdded.
- Parameters:
@Nonnull final Refref@Nonnull final DeathComponentcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
SystemDependency
new
SystemDependency
(Order.BEFORE, DropPlayerDeathItems.class)
Method SystemDependency.
- Parameters:
Order.BEFOREOrder.BEFOREDropPlayerDeathItems.classDropPlayerDeathItems.class
KillFeedMessage
new
KillFeedMessage
((killerMessage != null)
Method KillFeedMessage.
- Parameters:
(killerMessage !=null
RespawnPage
new
RespawnPage
(playerRefComponent, deathMessage, component.displayDataOnDeathScreen()
Method RespawnPage.
- Parameters:
playerRefComponentplayerRefComponentdeathMessagedeathMessagecomponent.displayDataOnDeathScreen(component.displayDataOnDeathScreen(
Transform
new
Transform
(position.getX()
Method Transform.
- Parameters:
position.getX(position.getX(
DeathAnimation
public
DeathAnimation
()
Method DeathAnimation.
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
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