SurfaceDrawPlaceBlockInteraction class
Пакет: com.hypixel.hytale.server.core.modules.interaction.interaction.config.client
Файл: com/hypixel/hytale/server/core/modules/interaction/interaction/config/client/SurfaceDrawPlaceBlockInteraction.java
extends: DragPlaceBlockInteraction
Поля (1)
| Модификаторы | Тип | Имя |
|---|---|---|
final |
BuilderCodec<SurfaceDrawPlaceBlockInteraction> |
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 SurfaceDrawPlaceBlockInteraction class="kw">extends DragPlaceBlockInteraction {
class="kw">public class="kw">static class="kw">final BuilderCodec<SurfaceDrawPlaceBlockInteraction> CODEC = BuilderCodec.builder(
SurfaceDrawPlaceBlockInteraction.class, SurfaceDrawPlaceBlockInteraction::new, DragPlaceBlockInteraction.CODEC
)
.documentation("Draws blocks along a plane while the click is held.")
.build();
class="kw">public SurfaceDrawPlaceBlockInteraction() {
}
@Nonnull
@Override
class="kw">protected PlacementGestureTracker createGestureTracker() {
class="kw">return new PlacementGestureTracker.SurfaceDraw();
}
@Nonnull
@Override
class="kw">protected Interaction generatePacket() {
class="kw">return new com.hypixel.hytale.protocol.SurfaceDrawPlaceBlockInteraction();
}
}