com.mojang.brigadier.arguments.ArgumentType Java Examples
The following examples show how to use
com.mojang.brigadier.arguments.ArgumentType.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NMS_1_13_2.java From 1.13-Command-API with Apache License 2.0 | 5 votes |
@Override public ArgumentType _ArgumentEntity(EntitySelector selector) { switch (selector) { case MANY_ENTITIES: return ArgumentEntity.b(); case MANY_PLAYERS: return ArgumentEntity.d(); case ONE_ENTITY: return ArgumentEntity.a(); case ONE_PLAYER: return ArgumentEntity.c(); } return null; }
Example #2
Source File: NMS_1_16_R1.java From 1.13-Command-API with Apache License 2.0 | 5 votes |
@Override public ArgumentType _ArgumentEntity(EntitySelector selector) { switch (selector) { case MANY_ENTITIES: return ArgumentEntity.multipleEntities(); case MANY_PLAYERS: return ArgumentEntity.d(); case ONE_ENTITY: return ArgumentEntity.a(); case ONE_PLAYER: return ArgumentEntity.c(); } return null; }
Example #3
Source File: NMS_1_13.java From 1.13-Command-API with Apache License 2.0 | 5 votes |
@Override public ArgumentType _ArgumentEntity(EntitySelector selector) { switch (selector) { case MANY_ENTITIES: return ArgumentEntity.b(); case MANY_PLAYERS: return ArgumentEntity.d(); case ONE_ENTITY: return ArgumentEntity.a(); case ONE_PLAYER: return ArgumentEntity.c(); } return null; }
Example #4
Source File: NMS_1_14_4.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType _ArgumentChatFormat() { return ArgumentChatFormat.a(); }
Example #5
Source File: NMS_1_13.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType<?> _ArgumentIntRange() { return new ArgumentCriterionValue.b(); }
Example #6
Source File: NMS_1_14_4.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType<?> _ArgumentMathOperation() { return ArgumentMathOperation.a(); }
Example #7
Source File: NMS_1_14_3.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType _ArgumentProfile() { return ArgumentProfile.a(); }
Example #8
Source File: NMS_1_13.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType _ArgumentParticle() { return ArgumentParticle.a(); }
Example #9
Source File: NMS_1_14_4.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType<?> _ArgumentPosition2D() { return ArgumentVec2I.a(); }
Example #10
Source File: NMS_1_13.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType _ArgumentMinecraftKeyRegistered() { return ArgumentMinecraftKeyRegistered.a(); }
Example #11
Source File: NMS_1_13.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType _ArgumentItemStack() { return ArgumentItemStack.a(); }
Example #12
Source File: NMS_1_13.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType _ArgumentPosition() { return ArgumentPosition.a(); }
Example #13
Source File: NMS_1_13_1.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType<?> _ArgumentScoreboardSlot() { return ArgumentScoreboardSlot.a(); }
Example #14
Source File: NMS_1_15.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType _ArgumentMobEffect() { return ArgumentMobEffect.a(); }
Example #15
Source File: NMS_1_14.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType<?> _ArgumentTime() { return ArgumentTime.a(); }
Example #16
Source File: NMS_1_14.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType _ArgumentTag() { return ArgumentTag.a(); }
Example #17
Source File: NMS_1_15.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType _ArgumentEnchantment() { return ArgumentEnchantment.a(); }
Example #18
Source File: NMS_1_14.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType<?> _ArgumentIntRange() { return new ArgumentCriterionValue.b(); }
Example #19
Source File: NMS_1_13_1.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType _ArgumentParticle() { return ArgumentParticle.a(); }
Example #20
Source File: CommandAPIHandler.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
private <T> RequiredArgumentBuilder<?, T> getRequiredArgumentBuilderWithProvider(String argumentName, ArgumentType<T> type, CommandPermission permission, SuggestionProvider provider) { return RequiredArgumentBuilder.argument(argumentName, type) .requires(clw -> permissionCheck(nms.getCommandSenderForCLW(clw), permission)).suggests(provider); }
Example #21
Source File: NMS_1_13_2.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType _ArgumentPosition() { return ArgumentPosition.a(); }
Example #22
Source File: NMS_1_14.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType<?> _ArgumentScoreboardCriteria() { return ArgumentScoreboardCriteria.a(); }
Example #23
Source File: NMS_1_14.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType<?> _ArgumentRotation() { return ArgumentRotation.a(); }
Example #24
Source File: NMS_1_14_4.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType _ArgumentVec3() { return ArgumentVec3.a(); }
Example #25
Source File: NMS_1_13.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType<?> _ArgumentScoreboardCriteria() { return ArgumentScoreboardCriteria.a(); }
Example #26
Source File: NMS_1_13_1.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType<?> _ArgumentScoreboardCriteria() { return ArgumentScoreboardCriteria.a(); }
Example #27
Source File: NMS_1_13.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType<?> _ArgumentScoreboardTeam() { return ArgumentScoreboardTeam.a(); }
Example #28
Source File: NMS_1_13_2.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType<?> _ArgumentRotation() { return ArgumentRotation.a(); }
Example #29
Source File: NMS_1_13_2.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType _ArgumentParticle() { return ArgumentParticle.a(); }
Example #30
Source File: NMS_1_15.java From 1.13-Command-API with Apache License 2.0 | 4 votes |
@Override public ArgumentType<?> _ArgumentVec2() { return ArgumentVec2.a(); }