DebugShapeSubCommand class

Пакет: com.hypixel.hytale.server.core.modules.debug.commands

Файл: com/hypixel/hytale/server/core/modules/debug/commands/DebugShapeSubCommand.java

extends: AbstractCommandCollection

Поля (1)

МодификаторыТипИмя
int var4

Методы (2)

МодификаторыВозвратСигнатура
static int buildFlagsint buildFlags(@Nonnull CommandContext var0, @Nonnull FlagArg var1, @Nonnull FlagArg var2, @Nonnull FlagArg var3)
abstract super super("shape", "server.commands.debug.shape.desc")

Исходный код

Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.modules.debug.commands;

class="kw">import com.hypixel.hytale.server.core.command.system.CommandContext;
class="kw">import com.hypixel.hytale.server.core.command.system.arguments.system.FlagArg;
class="kw">import com.hypixel.hytale.server.core.command.system.basecommands.AbstractCommandCollection;
class="kw">import javax.annotation.Nonnull;

class="kw">public class DebugShapeSubCommand class="kw">extends AbstractCommandCollection {
   class="kw">public DebugShapeSubCommand() {
      super("shape", "server.commands.debug.shape.desc");
      this.addSubCommand(new DebugShapeSphereCommand());
      this.addSubCommand(new DebugShapeCubeCommand());
      this.addSubCommand(new DebugShapeCylinderCommand());
      this.addSubCommand(new DebugShapeConeCommand());
      this.addSubCommand(new DebugShapeArrowCommand());
      this.addSubCommand(new DebugShapeShowForceCommand());
      this.addSubCommand(new DebugShapeClearCommand());
   }

   class="kw">static int buildFlags(@Nonnull CommandContext var0, @Nonnull FlagArg var1, @Nonnull FlagArg var2, @Nonnull FlagArg var3) {
      int var4 = 0;
      if (var0.get(var1)) {
         var4 |= 1;
      }

      if (var0.get(var2)) {
         var4 |= 2;
      }

      if (var0.get(var3)) {
         var4 |= 4;
      }

      class="kw">return var4;
   }
}