BooleanFlagArgumentType class

Пакет: com.hypixel.hytale.server.core.command.system.arguments.types

Файл: com/hypixel/hytale/server/core/command/system/arguments/types/BooleanFlagArgumentType.java

extends: ArgumentType<Boolean>

Методы (1)

МодификаторыВозвратСигнатура
abstract super super("server.commands.parsing.argtype.flag.name", "server.commands.parsing.argtype.flag.usage", 0, "None, just specify the argument for true")

Исходный код

Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.command.system.arguments.types;

class="kw">import com.hypixel.hytale.server.core.command.system.ParseResult;
class="kw">import javax.annotation.Nonnull;

class="kw">public class BooleanFlagArgumentType class="kw">extends ArgumentType<Boolean> {
   class="kw">public BooleanFlagArgumentType() {
      super("server.commands.parsing.argtype.flag.name", "server.commands.parsing.argtype.flag.usage", 0, "None, just specify the argument for true");
   }

   @Nonnull
   class="kw">public Boolean parse(@Nonnull String[] var1, @Nonnull ParseResult var2) {
      class="kw">return Boolean.TRUE;
   }
}