Class DamageBlockEvent
java.lang.Object
com.hypixel.hytale.component.system.EcsEvent
com.hypixel.hytale.component.system.CancellableEcsEvent
com.hypixel.hytale.server.core.event.events.ecs.DamageBlockEvent
- All Implemented Interfaces:
ICancellableEcsEvent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDamageBlockEvent(ItemStack itemInHand, Vector3i targetBlock, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, float currentDamage, float damage) -
Method Summary
Modifier and TypeMethodDescriptioncom.hypixel.hytale.server.core.asset.type.blocktype.config.BlockTypefloatfloatvoidsetDamage(float damage) voidsetTargetBlock(Vector3i targetBlock) Methods inherited from class com.hypixel.hytale.component.system.CancellableEcsEvent
isCancelled, setCancelled
-
Field Details
-
itemInHand
-
targetBlock
-
blockType
@Nonnull private final com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType -
currentDamage
private final float currentDamage -
damage
private float damage
-
-
Constructor Details
-
DamageBlockEvent
-
-
Method Details
-
getItemInHand
-
getTargetBlock
-
setTargetBlock
-
getBlockType
@Nonnull public com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType getBlockType() -
getCurrentDamage
public float getCurrentDamage() -
getDamage
public float getDamage() -
setDamage
public void setDamage(float damage)
-