Skip to content

DeathComponent

Package: com.hypixel.hytale.server.core.modules.entity.damage

Type: class

Implements: Component

Constructors

java
protected DeathComponent(@Nonnull Damage deathInfo)
java
protected DeathComponent()

Static Fields

NameType
CODECBuilderCodec

Fields

NameType
deathCauseString
deathMessageMessage
showDeathMenuboolean
itemsLostOnDeathItemStack[]
itemsAmountLossPercentagedouble
itemsDurabilityLossPercentagedouble
displayDataOnDeathScreenboolean
deathInfoDamage
interactionChainInteractionChain

Static Methods

MethodReturns
getComponentType()ComponentType
tryAddComponent(@Nonnull CommandBuffer commandBuffer, @Nonnull Ref ref, @Nonnull Damage damage)void
tryAddComponent(@Nonnull Store store, @Nonnull Ref ref, @Nonnull Damage damage)void

Methods

MethodReturns
getDeathCause()DamageCause
getDeathMessage()Message
setDeathMessage(@Nullable Message deathMessage)void
isShowDeathMenu()boolean
setShowDeathMenu(boolean showDeathMenu)void
getItemsLostOnDeath()ItemStack[]
setItemsLostOnDeath(List itemsLostOnDeath)void
getItemsAmountLossPercentage()double
setItemsAmountLossPercentage(double itemsAmountLossPercentage)void
getItemsDurabilityLossPercentage()double
setItemsDurabilityLossPercentage(double itemsDurabilityLossPercentage)void
displayDataOnDeathScreen()boolean
setDisplayDataOnDeathScreen(boolean displayDataOnDeathScreen)void
getDeathInfo()Damage
setItemsLossMode(DeathConfig.ItemsLossMode itemsLossMode)void
getDeathItemLoss()DeathItemLoss
DeathItemLoss(this.itemsLossMode, this.itemsLostOnDeath, this.itemsAmountLossPercentage, this.itemsDurabilityLossPercentage)return new
getInteractionChain()InteractionChain
setInteractionChain(@Nullable InteractionChain interactionChain)void
clone()Component

Unofficial documentation · Any questions? Found a mistake? Have something you want documented? Join the Discord server at the top and let us know in #hytale!