Class DeathComponent
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.damage.DeathComponent
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<DeathComponent> private Stringprivate Damageprivate Messageprivate booleanprivate InteractionChainprivate doubleprivate doubleprivate DeathConfig.ItemsLossModeprivate ItemStack[]private booleanFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanstatic ComponentType<EntityStore, DeathComponent> doubledoublebooleanvoidsetDeathMessage(Message deathMessage) voidsetDisplayDataOnDeathScreen(boolean displayDataOnDeathScreen) voidsetInteractionChain(InteractionChain interactionChain) voidsetItemsAmountLossPercentage(double itemsAmountLossPercentage) voidsetItemsDurabilityLossPercentage(double itemsDurabilityLossPercentage) voidsetItemsLossMode(DeathConfig.ItemsLossMode itemsLossMode) voidsetItemsLostOnDeath(List<ItemStack> itemsLostOnDeath) voidsetShowDeathMenu(boolean showDeathMenu) static voidtryAddComponent(CommandBuffer<EntityStore> commandBuffer, Ref<EntityStore> ref, Damage damage) static voidtryAddComponent(Store<EntityStore> store, Ref<EntityStore> ref, Damage damage) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
CODEC
-
deathCause
-
deathMessage
-
showDeathMenu
private boolean showDeathMenu -
itemsLostOnDeath
-
itemsAmountLossPercentage
private double itemsAmountLossPercentage -
itemsDurabilityLossPercentage
private double itemsDurabilityLossPercentage -
displayDataOnDeathScreen
private boolean displayDataOnDeathScreen -
deathInfo
-
itemsLossMode
-
interactionChain
-
-
Constructor Details
-
DeathComponent
-
DeathComponent
protected DeathComponent()
-
-
Method Details
-
getComponentType
-
getDeathCause
-
getDeathMessage
-
setDeathMessage
-
isShowDeathMenu
public boolean isShowDeathMenu() -
setShowDeathMenu
public void setShowDeathMenu(boolean showDeathMenu) -
getItemsLostOnDeath
-
setItemsLostOnDeath
-
getItemsAmountLossPercentage
public double getItemsAmountLossPercentage() -
setItemsAmountLossPercentage
public void setItemsAmountLossPercentage(double itemsAmountLossPercentage) -
getItemsDurabilityLossPercentage
public double getItemsDurabilityLossPercentage() -
setItemsDurabilityLossPercentage
public void setItemsDurabilityLossPercentage(double itemsDurabilityLossPercentage) -
displayDataOnDeathScreen
public boolean displayDataOnDeathScreen() -
setDisplayDataOnDeathScreen
public void setDisplayDataOnDeathScreen(boolean displayDataOnDeathScreen) -
getDeathInfo
-
getItemsLossMode
-
setItemsLossMode
-
getDeathItemLoss
-
getInteractionChain
-
setInteractionChain
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-
tryAddComponent
public static void tryAddComponent(@Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Ref<EntityStore> ref, @Nonnull Damage damage) -
tryAddComponent
public static void tryAddComponent(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull Damage damage)
-