DragEraseBlockInteraction class

Пакет: com.hypixel.hytale.server.core.modules.interaction.interaction.config.client

Файл: com/hypixel/hytale/server/core/modules/interaction/interaction/config/client/DragEraseBlockInteraction.java

extends: DragPlaceBlockInteraction

Поля (1)

МодификаторыТипИмя
final BuilderCodec<DragEraseBlockInteraction> 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 DragEraseBlockInteraction class="kw">extends DragPlaceBlockInteraction {
   class="kw">public class="kw">static class="kw">final BuilderCodec<DragEraseBlockInteraction> CODEC = BuilderCodec.builder(
         DragEraseBlockInteraction.class, DragEraseBlockInteraction::new, DragPlaceBlockInteraction.CODEC
      )
      .documentation("Erases the targeted block while the click is held, speeding up the longer the input is held.")
      .build();

   class="kw">public DragEraseBlockInteraction() {
   }

   @Nonnull
   @Override
   class="kw">protected Interaction generatePacket() {
      class="kw">return new com.hypixel.hytale.protocol.DragEraseBlockInteraction();
   }
}