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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArgumentBlockStateBlockState(@NotNull String id) static ArgumentBooleanstatic ArgumentColorstatic ArgumentCommandstatic ArgumentComponentstatic ArgumentDoublestatic ArgumentEnchantmentEnchantment(@NotNull String id) static ArgumentEntityDeprecated.static ArgumentEntitystatic ArgumentEntityTypeEntityType(@NotNull String id) static <E extends Enum>
ArgumentEnum<E> static ArgumentFloatstatic ArgumentFloatRangeFloatRange(@NotNull String id) static Argument<?>[]Generates arguments from a string format.static ArgumentGroupstatic ArgumentIntegerstatic ArgumentIntRangestatic ArgumentItemStackstatic ArgumentLiteralstatic ArgumentLongstatic <T> ArgumentLoop<T> static ArgumentNbtTagstatic ArgumentNbtCompoundTagNbtCompound(@NotNull String id) static ArgumentParticleRelativeBlockPosition(@NotNull String id) static ArgumentRelativeVec2RelativeVec2(@NotNull String id) static ArgumentRelativeVec3RelativeVec3(@NotNull String id) static ArgumentResourcestatic ArgumentResourceLocationResourceLocation(@NotNull String id) static ArgumentResourceOrTagResourceOrTag(@NotNull String id, @NotNull String identifier) static ArgumentStringstatic ArgumentStringArrayStringArray(@NotNull String id) static ArgumentTimestatic ArgumentUUIDstatic 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:
-
Enchantment
- 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)