DamageBlockEvent class
Пакет: com.hypixel.hytale.server.core.event.events.ecs
Файл: com/hypixel/hytale/server/core/event/events/ecs/DamageBlockEvent.java
extends: CancellableEcsEvent
Методы (4)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
public |
float |
getCurrentDamagefloat getCurrentDamage() |
public |
float |
getDamagefloat getDamage() |
public |
void |
setDamagevoid setDamage(float var1) |
public |
void |
setTargetBlockvoid setTargetBlock(@Nonnull Vector3i var1) |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.event.events.ecs;
class="kw">import com.hypixel.hytale.component.system.CancellableEcsEvent;
class="kw">import com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType;
class="kw">import com.hypixel.hytale.server.core.inventory.ItemStack;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;
class="kw">import org.joml.Vector3i;
class="kw">public class DamageBlockEvent class="kw">extends CancellableEcsEvent {
@Nullable
class="kw">private class="kw">final ItemStack itemInHand;
@Nonnull
class="kw">private Vector3i targetBlock;
@Nonnull
class="kw">private class="kw">final BlockType blockType;
class="kw">private class="kw">final float currentDamage;
class="kw">private float damage;
class="kw">public DamageBlockEvent(@Nullable ItemStack var1, @Nonnull Vector3i var2, @Nonnull BlockType var3, float var4, float var5) {
this.itemInHand = var1;
this.targetBlock = var2;
this.blockType = var3;
this.currentDamage = var4;
this.damage = var5;
}
@Nullable
class="kw">public ItemStack getItemInHand() {
class="kw">return this.itemInHand;
}
@Nonnull
class="kw">public Vector3i getTargetBlock() {
class="kw">return this.targetBlock;
}
class="kw">public void setTargetBlock(@Nonnull Vector3i var1) {
this.targetBlock = var1;
}
@Nonnull
class="kw">public BlockType getBlockType() {
class="kw">return this.blockType;
}
class="kw">public float getCurrentDamage() {
class="kw">return this.currentDamage;
}
class="kw">public float getDamage() {
class="kw">return this.damage;
}
class="kw">public void setDamage(float var1) {
this.damage = var1;
}
}