Class ArgumentType
java.lang.Object
net.minestom.server.command.builder.arguments.ArgumentType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArgumentBlockStateBlockState(String id) Creates a newArgumentBlockState.static ArgumentBooleanCreates a newArgumentBoolean.static ArgumentCommandCreates a newArgumentCommand.static ArgumentComponentCreates a newArgumentComponent.static ArgumentDoubleCreates a newArgumentDouble.static ArgumentEntityDeprecated.static ArgumentEntityCreates a newArgumentEntity.static ArgumentEntityTypeEntityType(String id) Creates a newArgumentEntityType.static <E extends Enum>
ArgumentEnum<E> Creates a newArgumentEnum.static ArgumentFloatCreates a newArgumentFloat.static ArgumentFloatRangeFloatRange(String id) Creates a newArgumentFloatRange.static Argument<?>[]Generates arguments from a string format.static ArgumentGroupCreates a newArgumentGroup.static ArgumentIntegerCreates a newArgumentInteger.static ArgumentIntRangeCreates a newArgumentIntRange.static ArgumentItemStackCreates a newArgumentItemStack.static ArgumentLiteralCreates a newArgumentLiteral.static ArgumentLongCreates a newArgumentLong.static <T> ArgumentLoop<T> Creates a newArgumentLoop.static ArgumentNbtTagCreates a newArgumentNbtTag.static ArgumentNbtCompoundTagNbtCompound(String id) Creates a newArgumentNbtCompoundTag.static ArgumentParticleCreates a newArgumentParticle.Creates a newArgumentRelativeBlockPosition.static ArgumentRelativeVec2RelativeVec2(String id) Creates a newArgumentRelativeVec2.static ArgumentRelativeVec3RelativeVec3(String id) Creates a newArgumentRelativeVec3.static ArgumentResourceCreates a newArgumentResource.static ArgumentResourceLocationCreates a newArgumentResourceLocation.static ArgumentResourceOrTagResourceOrTag(String id, String identifier) Creates a newArgumentResourceOrTag.static ArgumentStringCreates a newArgumentString.static ArgumentStringArrayStringArray(String id) Creates a newArgumentStringArray.static ArgumentTeamColorCreates a newArgumentTeamColor.static ArgumentTimeCreates a newArgumentTime.static ArgumentUUIDCreates a newArgumentUUID.static ArgumentWordCreates a newArgumentWord.
-
Constructor Details
-
ArgumentType
public ArgumentType()
-
-
Method Details
-
Literal
-
Group
Creates a newArgumentGroup.- See Also:
-
Loop
Creates a newArgumentLoop.- See Also:
-
Boolean
-
Integer
-
Double
-
Float
-
String
-
Word
-
StringArray
Creates a newArgumentStringArray.- See Also:
-
Command
-
Enum
Creates a newArgumentEnum.- See Also:
-
TeamColor
-
Time
-
Particle
-
Resource
Creates a newArgumentResource.- See Also:
-
ResourceLocation
Creates a newArgumentResourceLocation.- See Also:
-
ResourceOrTag
Creates a newArgumentResourceOrTag.- See Also:
-
EntityType
-
BlockState
-
IntRange
-
FloatRange
-
Entity
-
ItemStack
-
Component
-
UUID
-
NBT
-
NbtCompound
Creates a newArgumentNbtCompoundTag.- See Also:
-
RelativeBlockPosition
Creates a newArgumentRelativeBlockPosition.- See Also:
-
RelativeVec3
Creates a newArgumentRelativeVec3.- See Also:
-
RelativeVec2
Creates a newArgumentRelativeVec2.- 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
-
Entities
-
Entity(String)