BreakBlockEvent class
Пакет: com.hypixel.hytale.server.core.event.events.ecs
Файл: com/hypixel/hytale/server/core/event/events/ecs/BreakBlockEvent.java
extends: CancellableEcsEvent
Методы (1)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
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 BreakBlockEvent 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">public BreakBlockEvent(@Nullable ItemStack var1, @Nonnull Vector3i var2, @Nonnull BlockType var3) {
this.itemInHand = var1;
this.targetBlock = var2;
this.blockType = var3;
}
@Nullable
class="kw">public ItemStack getItemInHand() {
class="kw">return this.itemInHand;
}
@Nonnull
class="kw">public Vector3i getTargetBlock() {
class="kw">return this.targetBlock;
}
@Nonnull
class="kw">public BlockType getBlockType() {
class="kw">return this.blockType;
}
class="kw">public void setTargetBlock(@Nonnull Vector3i var1) {
this.targetBlock = var1;
}
}