Class CommandArgument
java.lang.Object
com.idark.valoria.registries.command.core.CommandPart
com.idark.valoria.registries.command.core.CommandArgument
-
Constructor Summary
ConstructorDescriptionCommandArgument
(String name, com.mojang.brigadier.arguments.ArgumentType type) -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandArgument
static CommandArgument
com.mojang.brigadier.builder.ArgumentBuilder
build()
static CommandArgument
static CommandArgument
static CommandArgument
net.minecraft.core.BlockPos
getBlockPos
(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) boolean
getBoolean
(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) double
getDouble
(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) Collection<? extends net.minecraft.world.entity.Entity>
getEntities
(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) int
getInt
(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) Collection<? extends net.minecraft.server.level.ServerPlayer>
getPlayers
(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) getString
(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) net.minecraft.world.phys.Vec3
getVector3
(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) static CommandArgument
greedyString
(String name) static CommandArgument
static CommandArgument
static CommandArgument
static CommandArgument
static CommandArgument
static CommandArgument
suggestion
(com.mojang.brigadier.suggestion.SuggestionProvider suggestionProvider) static CommandArgument
static CommandArgument
static CommandArgument
Methods inherited from class com.idark.valoria.registries.command.core.CommandPart
create, getArgumentName
-
Constructor Details
-
CommandArgument
-
-
Method Details
-
blockPos
-
word
-
string
-
greedyString
-
integer
-
bool
-
doubleArg
-
integer
-
integer
-
entities
-
create
-
players
-
vector3
-
vector2
-
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 classCommandPart
-
getPages
-
pages
-