ExtrudePlaceBlockInteraction class
Пакет: com.hypixel.hytale.server.core.modules.interaction.interaction.config.client
Файл: com/hypixel/hytale/server/core/modules/interaction/interaction/config/client/ExtrudePlaceBlockInteraction.java
extends: DragPlaceBlockInteraction
Поля (1)
| Модификаторы | Тип | Имя |
|---|---|---|
final |
BuilderCodec<ExtrudePlaceBlockInteraction> |
CODEC |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.modules.interaction.interaction.config.client;
class="kw">import com.hypixel.hytale.codec.builder.BuilderCodec;
class="kw">import com.hypixel.hytale.protocol.Interaction;
class="kw">import javax.annotation.Nonnull;
class="kw">public class ExtrudePlaceBlockInteraction class="kw">extends DragPlaceBlockInteraction {
class="kw">public class="kw">static class="kw">final BuilderCodec<ExtrudePlaceBlockInteraction> CODEC = BuilderCodec.builder(
ExtrudePlaceBlockInteraction.class, ExtrudePlaceBlockInteraction::new, DragPlaceBlockInteraction.CODEC
)
.documentation(
"Extrudes the targeted block face while the click is held, placing one layer per depth step. Pulling back erases the streamed layers again."
)
.build();
class="kw">public ExtrudePlaceBlockInteraction() {
}
@Nonnull
@Override
class="kw">protected PlacementGestureTracker createGestureTracker() {
class="kw">return new PlacementGestureTracker.Extrude();
}
@Nonnull
@Override
class="kw">protected Interaction generatePacket() {
class="kw">return new com.hypixel.hytale.protocol.ExtrudePlaceBlockInteraction();
}
}