Minecraft Arguments
The Arguments and Literals page covers the most used, native Brigadier arguments. But Minecraft (and Paper) defines a few more. These can be accessed
in a static context using the ArgumentTypes
class. We will go over all of those in this section.
Quick overview
A quick overview of all possible arguments is defined here:
Method Name | Return Value | Quick Link |
---|---|---|
blockPosition() | BlockPositionResolver | Block Position Argument |
blockState() | BlockState | Block State Argument |
component() | Component (Kyori) | Component Argument |
doubleRange() | DoubleRangeProvider | Double Range argument |
entity() | EntitySelectorArgumentResolver | Entity Argument |
entities() | EntitySelectorArgumentResolver | Entities Argument |
entityAnchor() | LookAnchor | Entity Anchor Argument |
finePosition(boolean centerIntegers) | FinePositionResolver | Fine Position Argument |
gameMode() | GameMode | GameMode Argument |
heightMap() | HeightMap | HeightMap Argument |
integerRange() | IntegerRangeProvider | Integer Range Argument |
itemPredicate() | ItemStackPredicate | Item Predicate Argument |
itemStack() | ItemStack | ItemStack Argument |
key() | Key (Kyori) | Key Argument |
namedColor() | NamedTextColor (Kyori) | Named Color Argument |
namespacedKey() | NamespacedKey (Bukkit) | Bukkit NamespacedKey Argument |
objectiveCriteria() | Criteria | Objective Criteria Argument |
player() | PlayerSelectorArgumentResolver | Player Argument |
players() | PlayerSelectorArgumentResolver | Players Argument |
playerProfiles() | PlayerProfileListResolver | Player Profiles Argument |
resource(RegistryKey) | (Depends on RegistryKey) | Resource Argument |
resourceKey(RegistryKey) | (Depends on RegistryKey) | Resource Key Argument |
style() | Style (Kyori) | Style Argument |
signedMessage() | SignedMessageResolver | Signed Message Argument |
scoreboardDisplaySlot() | DisplaySlot | Scoreboard Display Slot Argument |
time(float mintime) | Integer | Time Argument |
templateMirror() | Mirror | Template Mirror Argument |
templateRotation() | StructureRotation | Template Rotation Argument |
uuid() | UUID | UUID Argument |
world() | World | World Argument |