Package dev.jorel.commandapi.nms
Class NMS_Common
java.lang.Object
dev.jorel.commandapi.nms.NMS_Common
- All Implemented Interfaces:
NMS<net.minecraft.commands.CommandSourceStack>
public abstract class NMS_Common
extends Object
implements NMS<net.minecraft.commands.CommandSourceStack>
Common NMS code To ensure that this code actually works across all versions
of Minecraft that this is supposed to support (1.17+), you should be
compiling this code against all of the declared Maven profiles specified in
this submodule's pom.xml file, by running the following commands:
mvn clean package -pl :commandapi-nms-common -P Spigot_1_19_R1mvn clean package -pl :commandapi-nms-common -P Spigot_1_18_2_R2mvn clean package -pl :commandapi-nms-common -P Spigot_1_18_R1mvn clean package -pl :commandapi-nms-common -P Spigot_1_17_R1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>abstract com.mojang.brigadier.arguments.ArgumentType<?>abstract com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>com.mojang.brigadier.arguments.ArgumentType<?>com.mojang.brigadier.arguments.ArgumentType<?>abstract com.mojang.brigadier.arguments.ArgumentType<?>_ArgumentEntity(ArgumentSubType subType) com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>abstract com.mojang.brigadier.arguments.ArgumentType<?>abstract com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>_ArgumentScoreholder(ArgumentSubType subType) abstract com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>final com.mojang.brigadier.arguments.ArgumentType<?>abstract voidaddToHelpMap(Map<String, org.bukkit.help.HelpTopic> helpTopicsToAdd) abstract String[]abstract Stringconvert(ParticleData<?> particle) abstract Stringconvert(org.bukkit.inventory.ItemStack is) final Stringconvert(org.bukkit.potion.PotionEffectType potion) final Stringconvert(org.bukkit.Sound sound) abstract voidcreateDispatcherFile(File file, com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher) abstract org.bukkit.help.HelpTopicgenerateHelpTopic(String commandName, String shortDescription, String fullDescription, String permission) final org.bukkit.advancement.AdvancementgetAdvancement(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final net.kyori.adventure.text.ComponentgetAdventureChat(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract net.kyori.adventure.text.ComponentgetAdventureChatComponent(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final floatgetAngle(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final EnumSet<org.bukkit.Axis>getAxis(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract ObjectgetBiome(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, ArgumentSubType subType) abstract Predicate<org.bukkit.block.Block>getBlockPredicate(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.block.data.BlockDatagetBlockState(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack>final net.md_5.bungee.api.chat.BaseComponent[]getChat(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final org.bukkit.ChatColorgetChatColor(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final net.md_5.bungee.api.chat.BaseComponent[]getChatComponent(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract net.minecraft.commands.CommandSourceStackgetCLWFromCommandSender(org.bukkit.command.CommandSender sender) final org.bukkit.command.CommandSendergetCommandSenderFromCSS(net.minecraft.commands.CommandSourceStack css) abstract org.bukkit.WorldgetDimension(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) org.bukkit.enchantments.EnchantmentgetEnchantment(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract ObjectgetEntitySelector(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, ArgumentSubType subType) abstract org.bukkit.entity.EntityTypegetEntityType(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.World.EnvironmentgetEnvironment(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final FloatRangegetFloatRange(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract FunctionWrapper[]getFunction(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final SimpleFunctionWrappergetFunction(org.bukkit.NamespacedKey key) final Set<org.bukkit.NamespacedKey>final IntegerRangegetIntRange(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.inventory.ItemStackgetItemStack(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract Predicate<org.bukkit.inventory.ItemStack>getItemStackPredicate(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract Location2DgetLocation2DBlock(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) getLocation2DPrecise(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.LocationgetLocationBlock(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.LocationgetLocationPrecise(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.loot.LootTablegetLootTable(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final MathOperationgetMathOperation(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) org.bukkit.NamespacedKeygetMinecraftKey(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract net.minecraft.server.MinecraftServerfinal <NBTContainer>
ObjectgetNBTCompound(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, Function<Object, NBTContainer> nbtContainerConstructor) final StringgetObjective(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final StringgetObjectiveCriteria(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final org.bukkit.OfflinePlayergetOfflinePlayer(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract ParticleData<?>getParticle(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final org.bukkit.entity.PlayergetPlayer(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.potion.PotionEffectTypegetPotionEffect(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final org.bukkit.inventory.RecipegetRecipe(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final RotationgetRotation(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final ScoreboardSlotgetScoreboardSlot(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final Collection<String>getScoreHolderMultiple(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final StringgetScoreHolderSingle(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.command.CommandSendergetSenderForCommand(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, boolean isNative) abstract org.bukkit.command.SimpleCommandMapabstract ObjectgetSound(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, ArgumentSubType subType) abstract com.mojang.brigadier.suggestion.SuggestionProvider<net.minecraft.commands.CommandSourceStack>getSuggestionProvider(SuggestionProviders provider) abstract SimpleFunctionWrapper[]getTag(org.bukkit.NamespacedKey key) final Set<org.bukkit.NamespacedKey>getTags()final StringgetTeam(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final intgetTime(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final UUIDgetUUID(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.WorldgetWorldForCSS(net.minecraft.commands.CommandSourceStack css) abstract booleanisVanillaCommandWrapper(org.bukkit.command.Command command) abstract voidabstract voidresendPackets(org.bukkit.entity.Player player) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.jorel.commandapi.nms.NMS
canUseChatPreview, generateMessageFromJson, hookChatPreview, unhookChatPreview
-
Constructor Details
-
NMS_Common
public NMS_Common()
-
-
Method Details
-
_ArgumentAngle
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentAngle()- Specified by:
_ArgumentAnglein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentAxis
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentAxis()- Specified by:
_ArgumentAxisin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentBlockPredicate
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentBlockPredicate()- Specified by:
_ArgumentBlockPredicatein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentBlockState
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentBlockState()- Specified by:
_ArgumentBlockStatein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentChat
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChat()- Specified by:
_ArgumentChatin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentChatComponent
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChatComponent()- Specified by:
_ArgumentChatComponentin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentChatFormat
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChatFormat()- Specified by:
_ArgumentChatFormatin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentDimension
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentDimension()- Specified by:
_ArgumentDimensionin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentEnvironment
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEnvironment()- Specified by:
_ArgumentEnvironmentin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentEnchantment
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEnchantment()- Specified by:
_ArgumentEnchantmentin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentEntity
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEntity(ArgumentSubType subType) - Specified by:
_ArgumentEntityin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentEntitySummon
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEntitySummon()- Specified by:
_ArgumentEntitySummonin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentFloatRange
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentFloatRange()- Specified by:
_ArgumentFloatRangein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentIntRange
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentIntRange()- Specified by:
_ArgumentIntRangein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentItemPredicate
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentItemPredicate()- Specified by:
_ArgumentItemPredicatein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentItemStack
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentItemStack()- Specified by:
_ArgumentItemStackin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentMathOperation
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMathOperation()- Specified by:
_ArgumentMathOperationin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentMinecraftKeyRegistered
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMinecraftKeyRegistered()- Specified by:
_ArgumentMinecraftKeyRegisteredin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentMobEffect
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMobEffect()- Specified by:
_ArgumentMobEffectin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentNBTCompound
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentNBTCompound()- Specified by:
_ArgumentNBTCompoundin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentParticle
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentParticle()- Specified by:
_ArgumentParticlein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentPosition
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentPosition()- Specified by:
_ArgumentPositionin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentPosition2D
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentPosition2D()- Specified by:
_ArgumentPosition2Din interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentProfile
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentProfile()- Specified by:
_ArgumentProfilein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentRotation
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentRotation()- Specified by:
_ArgumentRotationin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentScoreboardCriteria
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardCriteria()- Specified by:
_ArgumentScoreboardCriteriain interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentScoreboardObjective
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardObjective()- Specified by:
_ArgumentScoreboardObjectivein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentScoreboardSlot
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardSlot()- Specified by:
_ArgumentScoreboardSlotin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentScoreboardTeam
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardTeam()- Specified by:
_ArgumentScoreboardTeamin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentScoreholder
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreholder(ArgumentSubType subType) - Specified by:
_ArgumentScoreholderin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentSyntheticBiome
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentSyntheticBiome()- Specified by:
_ArgumentSyntheticBiomein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentTag
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentTag()- Specified by:
_ArgumentTagin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentTime
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentTime()- Specified by:
_ArgumentTimein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentUUID
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentUUID()- Specified by:
_ArgumentUUIDin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentVec2
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec2()- Specified by:
_ArgumentVec2in interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
_ArgumentVec3
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec3()- Specified by:
_ArgumentVec3in interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
addToHelpMap
- Specified by:
addToHelpMapin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
compatibleVersions
- Specified by:
compatibleVersionsin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
convert
-
convert
-
convert
-
convert
-
createDispatcherFile
public abstract void createDispatcherFile(File file, com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher) throws IOException - Specified by:
createDispatcherFilein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
IOException
-
generateHelpTopic
public abstract org.bukkit.help.HelpTopic generateHelpTopic(String commandName, String shortDescription, String fullDescription, String permission) - Specified by:
generateHelpTopicin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getAdvancement
public final org.bukkit.advancement.Advancement getAdvancement(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getAdvancementin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAdventureChat
public final net.kyori.adventure.text.Component getAdventureChat(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getAdventureChatin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAdventureChatComponent
public abstract net.kyori.adventure.text.Component getAdventureChatComponent(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getAdventureChatComponentin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getAngle
public final float getAngle(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getAxis
-
getBiome
public abstract Object getBiome(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, ArgumentSubType subType) throws com.mojang.brigadier.exceptions.CommandSyntaxException -
getBlockPredicate
public abstract Predicate<org.bukkit.block.Block> getBlockPredicate(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getBlockPredicatein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getBlockState
public abstract org.bukkit.block.data.BlockData getBlockState(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getBlockStatein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getBrigadierDispatcher
public com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> getBrigadierDispatcher()- Specified by:
getBrigadierDispatcherin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getChat
public final net.md_5.bungee.api.chat.BaseComponent[] getChat(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException -
getChatColor
public final org.bukkit.ChatColor getChatColor(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getChatColorin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getChatComponent
public final net.md_5.bungee.api.chat.BaseComponent[] getChatComponent(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getChatComponentin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getCLWFromCommandSender
public abstract net.minecraft.commands.CommandSourceStack getCLWFromCommandSender(org.bukkit.command.CommandSender sender) - Specified by:
getCLWFromCommandSenderin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getCommandSenderFromCSS
public final org.bukkit.command.CommandSender getCommandSenderFromCSS(net.minecraft.commands.CommandSourceStack css) - Specified by:
getCommandSenderFromCSSin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getDimension
public abstract org.bukkit.World getDimension(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getDimensionin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEnvironment
public abstract org.bukkit.World.Environment getEnvironment(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getEnvironmentin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEnchantment
public org.bukkit.enchantments.Enchantment getEnchantment(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getEnchantmentin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEntitySelector
public abstract Object getEntitySelector(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, ArgumentSubType subType) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getEntitySelectorin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEntityType
public abstract org.bukkit.entity.EntityType getEntityType(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getEntityTypein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getFloatRange
public final FloatRange getFloatRange(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getFloatRangein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getFunction
public abstract FunctionWrapper[] getFunction(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getFunctionin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getFunction
- Specified by:
getFunctionin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getFunctions
- Specified by:
getFunctionsin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getIntRange
public final IntegerRange getIntRange(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getIntRangein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getItemStack
public abstract org.bukkit.inventory.ItemStack getItemStack(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getItemStackin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getItemStackPredicate
public abstract Predicate<org.bukkit.inventory.ItemStack> getItemStackPredicate(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getItemStackPredicatein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocation2DBlock
public abstract Location2D getLocation2DBlock(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getLocation2DBlockin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocation2DPrecise
public Location2D getLocation2DPrecise(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getLocation2DPrecisein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocationBlock
public abstract org.bukkit.Location getLocationBlock(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getLocationBlockin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocationPrecise
public abstract org.bukkit.Location getLocationPrecise(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getLocationPrecisein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLootTable
public abstract org.bukkit.loot.LootTable getLootTable(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getLootTablein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getMathOperation
public final MathOperation getMathOperation(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getMathOperationin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getMinecraftKey
public org.bukkit.NamespacedKey getMinecraftKey(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getMinecraftKeyin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getMinecraftServer
public abstract net.minecraft.server.MinecraftServer getMinecraftServer() -
getNBTCompound
public final <NBTContainer> Object getNBTCompound(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, Function<Object, NBTContainer> nbtContainerConstructor) - Specified by:
getNBTCompoundin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getObjective
public final String getObjective(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getObjectivein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getObjectiveCriteria
public final String getObjectiveCriteria(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getObjectiveCriteriain interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getOfflinePlayer
public final org.bukkit.OfflinePlayer getOfflinePlayer(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getOfflinePlayerin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getParticle
public abstract ParticleData<?> getParticle(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getParticlein interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getPlayer
public final org.bukkit.entity.Player getPlayer(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException -
getPotionEffect
public abstract org.bukkit.potion.PotionEffectType getPotionEffect(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getPotionEffectin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getRecipe
public final org.bukkit.inventory.Recipe getRecipe(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException -
getRotation
public final Rotation getRotation(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getRotationin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getScoreboardSlot
public final ScoreboardSlot getScoreboardSlot(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getScoreboardSlotin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getScoreHolderMultiple
public final Collection<String> getScoreHolderMultiple(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getScoreHolderMultiplein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getScoreHolderSingle
public final String getScoreHolderSingle(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getScoreHolderSinglein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getSenderForCommand
public abstract org.bukkit.command.CommandSender getSenderForCommand(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, boolean isNative) - Specified by:
getSenderForCommandin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getSimpleCommandMap
public abstract org.bukkit.command.SimpleCommandMap getSimpleCommandMap()- Specified by:
getSimpleCommandMapin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getSound
public abstract Object getSound(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, ArgumentSubType subType) -
getSuggestionProvider
public abstract com.mojang.brigadier.suggestion.SuggestionProvider<net.minecraft.commands.CommandSourceStack> getSuggestionProvider(SuggestionProviders provider) - Specified by:
getSuggestionProviderin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
getTag
-
getTags
-
getTeam
-
getTime
public final int getTime(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getUUID
-
getWorldForCSS
public abstract org.bukkit.World getWorldForCSS(net.minecraft.commands.CommandSourceStack css) - Specified by:
getWorldForCSSin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
isVanillaCommandWrapper
public abstract boolean isVanillaCommandWrapper(org.bukkit.command.Command command) - Specified by:
isVanillaCommandWrapperin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
reloadDataPacks
public abstract void reloadDataPacks()- Specified by:
reloadDataPacksin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-
resendPackets
public abstract void resendPackets(org.bukkit.entity.Player player) - Specified by:
resendPacketsin interfaceNMS<net.minecraft.commands.CommandSourceStack>
-