DeathSystems

public class DeathSystems

Class DeathSystems. Provides deathsystems functionality for the Hytale server.

java.lang.Object > DeathSystems

Field Summary

model

final Model model

Field model.

animationIds

final String[] animationIds

Field animationIds.

selectedAnimationId

final String selectedAnimationId

Field selectedAnimationId.

entityStatMapComponent

final EntityStatMap entityStatMapComponent

Field entityStatMapComponent.

interactionManagerComponent

final InteractionManager interactionManagerComponent

Field interactionManagerComponent.

effectControllerComponent

final EffectControllerComponent effectControllerComponent

Field effectControllerComponent.

nameplateComponent

final Nameplate nameplateComponent

Field nameplateComponent.

deathInfo

final Damage deathInfo

Field deathInfo.

deathCause

final DamageCause deathCause

Field deathCause.

source

final Damage.Source source

Field source.

sourceRef

final Ref sourceRef

Field sourceRef.

attacker

final Player attacker

Field attacker.

playerComponent

final Player playerComponent

Field playerComponent.

combinedItemContainer

final CombinedItemContainer combinedItemContainer

Field combinedItemContainer.

durabilityLossRatio

final double durabilityLossRatio

Field durabilityLossRatio.

itemStack

final ItemStack itemStack

Field itemStack.

durabilityLoss

final double durabilityLoss

Field durabilityLoss.

updatedItemStack

final ItemStack updatedItemStack

Field updatedItemStack.

transaction

final ItemStackSlotTransaction transaction

Field transaction.

itemsAmountLossPercentage

final double itemsAmountLossPercentage

Field itemsAmountLossPercentage.

itemAmountLossRatio

final double itemAmountLossRatio

Field itemAmountLossRatio.

itemStack2

final ItemStack itemStack2

Field itemStack2.

quantityToLose

final int quantityToLose

Field quantityToLose.

newQuantity

final int newQuantity

Field newQuantity.

updatedItemStack2

final ItemStack updatedItemStack2

Field updatedItemStack2.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

position

final Vector3d position

Field position.

headRotationComponent

final HeadRotation headRotationComponent

Field headRotationComponent.

headRotation

final Vector3f headRotation

Field headRotation.

drops

final Holder[] drops

Field drops.

deathConfig

final DeathConfig deathConfig

Field deathConfig.

interactionsComponent

final Interactions interactionsComponent

Field interactionsComponent.

unarmed

final UnarmedInteractions unarmed

Field unarmed.

rootInteraction

final RootInteraction rootInteraction

Field rootInteraction.

context

final InteractionContext context

Field context.

chain

final InteractionChain chain

Field chain.

world

final World world

Field world.

broadcastTargets

final ObjectArrayList broadcastTargets

Field broadcastTargets.

killerMessageEvent

final KillFeedEvent.KillerMessage killerMessageEvent

Field killerMessageEvent.

decedentMessageEvent

final KillFeedEvent.DecedentMessage decedentMessageEvent

Field decedentMessageEvent.

decedentMessage

final Message decedentMessage

Field decedentMessage.

killFeedEvent

final KillFeedEvent.Display killFeedEvent

Field killFeedEvent.

killFeedMessage

final KillFeedMessage killFeedMessage

Field killFeedMessage.

deathMessage

final Message deathMessage

Field deathMessage.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

pageManager

final PageManager pageManager

Field pageManager.

gameplayConfig

final GameplayConfig gameplayConfig

Field gameplayConfig.

worldMapConfigGameplayConfig

final WorldMapConfig worldMapConfigGameplayConfig

Field worldMapConfigGameplayConfig.

transform

final Transform transform

Field transform.

worldTimeResource

final WorldTimeResource worldTimeResource

Field worldTimeResource.

gameTime

final Instant gameTime

Field gameTime.

daysSinceWorldStart

final int daysSinceWorldStart

Field daysSinceWorldStart.

deathMarkerId

final String deathMarkerId

Field deathMarkerId.

perWorldData

final PlayerWorldData perWorldData

Field perWorldData.

modelComponent

final ModelComponent modelComponent

Field modelComponent.

movementStatesComponent

final MovementStatesComponent movementStatesComponent

Field movementStatesComponent.

deathComponent

final DeathComponent deathComponent

Field deathComponent.

deathInteractionChain

final InteractionChain deathInteractionChain

Field deathInteractionChain.

corpseRemoval

final DeferredCorpseRemoval corpseRemoval

Field corpseRemoval.

Method Detail

playDeathAnimation

static 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 Ref ref
@Nonnull final DeathComponent deathComponent
@Nullable final ModelComponent modelComponent
@Nonnull final MovementStatesComponent movementStatesComponent
@Nonnull final ComponentAccessor componentAccessor

componentType

public DeathComponent> componentType ()

Method componentType.

onComponentSet

public 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 Ref ref
final DeathComponent oldComponent
@Nonnull final DeathComponent newComponent
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentRemoved

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

Method onComponentRemoved.

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

getDependencies

public Set> getDependencies ()

Method getDependencies.

getQuery

public Query getQuery ()

Method getQuery.

onComponentAdded

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

Method onComponentAdded.

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

SystemDependency

public new SystemDependency (Order.BEFORE, DropPlayerDeathItems.class)

Method SystemDependency.

Parameters:
Order.BEFORE Order.BEFORE
DropPlayerDeathItems.class DropPlayerDeathItems.class

KillFeedMessage

public new KillFeedMessage ((killerMessage != null)

Method KillFeedMessage.

Parameters:
(killerMessage != null

RespawnPage

public new RespawnPage (playerRefComponent, deathMessage, component.displayDataOnDeathScreen()

Method RespawnPage.

Parameters:
playerRefComponent playerRefComponent
deathMessage deathMessage
component.displayDataOnDeathScreen( component.displayDataOnDeathScreen(

Transform

public new Transform (position.getX()

Method Transform.

Parameters:
position.getX( position.getX(

DeathAnimation

public public DeathAnimation ()

Method DeathAnimation.

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

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