Class CommandArgument

java.lang.Object
com.idark.valoria.registries.command.core.CommandPart
com.idark.valoria.registries.command.core.CommandArgument

public class CommandArgument extends CommandPart
  • Constructor Details

    • CommandArgument

      public CommandArgument(String name, com.mojang.brigadier.arguments.ArgumentType type)
  • Method Details

    • blockPos

      public static CommandArgument blockPos(String name)
    • word

      public static CommandArgument word(String name)
    • string

      public static CommandArgument string(String name)
    • greedyString

      public static CommandArgument greedyString(String name)
    • integer

      public static CommandArgument integer(String name)
    • bool

      public static CommandArgument bool(String name)
    • doubleArg

      public static CommandArgument doubleArg(String name)
    • integer

      public static CommandArgument integer(String name, int min, int max)
    • integer

      public static CommandArgument integer(String name, int min)
    • entities

      public static CommandArgument entities(String name)
    • create

      public static CommandArgument create(String name, com.mojang.brigadier.arguments.ArgumentType type)
    • players

      public static CommandArgument players(String name)
    • vector3

      public static CommandArgument vector3(String name)
    • vector2

      public static CommandArgument vector2(String name)
    • suggestion

      public CommandArgument suggestion(com.mojang.brigadier.suggestion.SuggestionProvider suggestionProvider)
    • getInt

      public int getInt(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context)
    • getBoolean

      public boolean getBoolean(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context)
    • getDouble

      public double getDouble(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context)
    • getString

      public String getString(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context)
    • getVector3

      public net.minecraft.world.phys.Vec3 getVector3(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context)
    • getBlockPos

      public net.minecraft.core.BlockPos getBlockPos(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context)
    • getEntities

      public Collection<? extends net.minecraft.world.entity.Entity> getEntities(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context)
    • getPlayers

      public Collection<? extends net.minecraft.server.level.ServerPlayer> getPlayers(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context)
    • build

      public com.mojang.brigadier.builder.ArgumentBuilder build()
      Overrides:
      build in class CommandPart
    • getPages

      public Unlockable getPages(com.mojang.brigadier.context.CommandContext<?> context, String name)
    • pages

      public static CommandArgument pages(String pName)