Class ArgumentType
java.lang.Object
net.minestom.server.command.builder.arguments.ArgumentType
Convenient class listing all the basics
Argument
.
Please see the specific class documentation for further info.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArgumentBlockState
BlockState
(@NotNull String id) static ArgumentBoolean
static ArgumentColor
static ArgumentCommand
static ArgumentComponent
static ArgumentDouble
static ArgumentEntity
Deprecated.static ArgumentEntity
static ArgumentEntityType
EntityType
(@NotNull String id) static <E extends Enum>
ArgumentEnum<E> static ArgumentFloat
static ArgumentFloatRange
FloatRange
(@NotNull String id) static Argument<?>[]
Generates arguments from a string format.static ArgumentGroup
static ArgumentInteger
static ArgumentIntRange
static ArgumentItemStack
static ArgumentLiteral
static ArgumentLong
static <T> ArgumentLoop
<T> static ArgumentNbtTag
static ArgumentNbtCompoundTag
NbtCompound
(@NotNull String id) static ArgumentParticle
RelativeBlockPosition
(@NotNull String id) static ArgumentRelativeVec2
RelativeVec2
(@NotNull String id) static ArgumentRelativeVec3
RelativeVec3
(@NotNull String id) static ArgumentResource
static ArgumentResourceLocation
ResourceLocation
(@NotNull String id) static ArgumentResourceOrTag
ResourceOrTag
(@NotNull String id, @NotNull String identifier) static ArgumentString
static ArgumentStringArray
StringArray
(@NotNull String id) static ArgumentTime
static ArgumentUUID
static ArgumentWord
-
Constructor Details
-
ArgumentType
public ArgumentType()
-
-
Method Details
-
Literal
- See Also:
-
Group
public static ArgumentGroup Group(@NotNull @NotNull String id, @NotNull @NotNull Argument<?>... arguments) - See Also:
-
Loop
@SafeVarargs public static <T> ArgumentLoop<T> Loop(@NotNull @NotNull String id, @NotNull @NotNull Argument<T>... arguments) - See Also:
-
Boolean
- See Also:
-
Integer
- See Also:
-
Double
- See Also:
-
Float
- See Also:
-
String
- See Also:
-
Word
- See Also:
-
StringArray
- See Also:
-
Command
- See Also:
-
Enum
public static <E extends Enum> ArgumentEnum<E> Enum(@NotNull @NotNull String id, @NotNull @NotNull Class<E> enumClass) - See Also:
-
Color
- See Also:
-
Time
- See Also:
-
Particle
- See Also:
-
Resource
public static ArgumentResource Resource(@NotNull @NotNull String id, @NotNull @NotNull String identifier) - See Also:
-
ResourceLocation
- See Also:
-
ResourceOrTag
public static ArgumentResourceOrTag ResourceOrTag(@NotNull @NotNull String id, @NotNull @NotNull String identifier) - See Also:
-
EntityType
- See Also:
-
BlockState
- See Also:
-
IntRange
- See Also:
-
FloatRange
- See Also:
-
Entity
- See Also:
-
ItemStack
- See Also:
-
Component
- See Also:
-
UUID
- See Also:
-
NBT
- See Also:
-
NbtCompound
- See Also:
-
RelativeBlockPosition
- See Also:
-
RelativeVec3
- See Also:
-
RelativeVec2
- See Also:
-
generate
Generates arguments from a string format.Example: "Entity<targets> Integer<number>"
Note: this feature is in beta and is very likely to change depending on feedback.
-
Long
- See Also:
-
Entities
Deprecated.useEntity(String)
- See Also:
-
Entity(String)