Package dev.jorel.commandapi.test
Class MockNMS
java.lang.Object
dev.jorel.commandapi.CommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
dev.jorel.commandapi.test.MockPlatform<net.minecraft.commands.CommandSourceStack>
dev.jorel.commandapi.test.ArgumentNMS
dev.jorel.commandapi.test.Enums
dev.jorel.commandapi.test.MockNMS
- All Implemented Interfaces:
dev.jorel.commandapi.CommandAPIPlatform<dev.jorel.commandapi.arguments.Argument<?>,,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> dev.jorel.commandapi.nms.NMS<net.minecraft.commands.CommandSourceStack>
-
Field Summary
Fields inherited from class dev.jorel.commandapi.test.MockPlatform
registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.advancement.AdvancementaddAdvancement(org.bukkit.NamespacedKey key) voidaddFunction(org.bukkit.NamespacedKey key, List<String> commands) voidString[]dev.jorel.commandapi.CommandRegistrationStrategy<net.minecraft.commands.CommandSourceStack> voidcreateDispatcherFile(File file, com.mojang.brigadier.CommandDispatcher dispatcher) org.bukkit.help.HelpTopicgenerateHelpTopic(String commandName, String shortDescription, String fullDescription, String permission) List<org.bukkit.NamespacedKey> net.minecraft.commands.CommandSourceStackgetBrigadierSourceFromCommandSender(dev.jorel.commandapi.commandsenders.AbstractCommandSender<? extends org.bukkit.command.CommandSender> senderWrapper) getBukkitPotionEffectTypeName(org.bukkit.potion.PotionEffectType potionEffectType) dev.jorel.commandapi.commandsenders.BukkitCommandSender<? extends org.bukkit.command.CommandSender> getCommandSenderFromCommandSource(net.minecraft.commands.CommandSourceStack clw) org.bukkit.inventory.ItemFactoryMockPlatform overrides *<T> TgetNMSParticleNameFromBukkit(org.bukkit.Particle particle) dev.jorel.commandapi.commandsenders.BukkitCommandSender<? extends org.bukkit.command.CommandSender> getSenderForCommand(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, boolean forceNative) org.bukkit.command.SimpleCommandMaporg.bukkit.WorldgetWorldForCSS(net.minecraft.commands.CommandSourceStack clw) org.bukkit.entity.PlayersetupMockedCraftPlayer(String name) Methods inherited from class dev.jorel.commandapi.test.Enums
getBiomes, getEnchantments, getEntityTypes, getLootTables, getPotionEffects, getSoundsMethods inherited from class dev.jorel.commandapi.test.ArgumentNMS
_ArgumentAngle, _ArgumentAxis, _ArgumentBlockPredicate, _ArgumentBlockState, _ArgumentChat, _ArgumentChatComponent, _ArgumentChatFormat, _ArgumentDimension, _ArgumentEnchantment, _ArgumentEntity, _ArgumentEntitySummon, _ArgumentFloatRange, _ArgumentIntRange, _ArgumentItemPredicate, _ArgumentItemStack, _ArgumentMathOperation, _ArgumentMinecraftKeyRegistered, _ArgumentMobEffect, _ArgumentNBTCompound, _ArgumentParticle, _ArgumentPosition, _ArgumentPosition2D, _ArgumentProfile, _ArgumentRotation, _ArgumentScoreboardCriteria, _ArgumentScoreboardObjective, _ArgumentScoreboardSlot, _ArgumentScoreboardTeam, _ArgumentScoreholder, _ArgumentSyntheticBiome, _ArgumentTag, _ArgumentTime, _ArgumentUUID, _ArgumentVec2, _ArgumentVec3, generateMessageFromJson, getAdvancement, getAdventureChat, getAdventureChatColor, getAdventureChatComponent, getAngle, getAxis, getBiome, getBlockPredicate, getBlockState, getChat, getChatColor, getChatComponent, getDimension, getEnchantment, getEntitySelector, getEntityType, getFloatRange, getFunction, getFunction, getFunctions, getIntRange, getItemStack, getItemStackPredicate, getLocation2DBlock, getLocation2DPrecise, getLocationBlock, getLocationPrecise, getLootTable, getMathOperation, getMinecraftKey, getNBTCompound, getObjective, getObjectiveCriteria, getOfflinePlayer, getParticle, getPlayer, getPotionEffect, getRecipe, getRotation, getScoreboardSlot, getScoreHolderMultiple, getScoreHolderSingle, getSound, getSuggestionProvider, getTag, getTags, getTeam, getTime, getUUIDMethods inherited from class dev.jorel.commandapi.test.MockPlatform
addToRegistry, convert, convert, convert, convert, forceGetArgument, getField, getField, getFieldAs, getFieldAs, getInstance, getMockBrigadierDispatcher, getMockResourcesDispatcher, getRecipes, getRegistry, popFunctionCallbackResult, reloadDataPacks, setField, setField, unloadMethods inherited from class dev.jorel.commandapi.CommandAPIBukkit
failWithAdventureComponent, failWithBaseComponents, get, getBrigadierDispatcher, getCommandRegistrationStrategy, getConfiguration, getLogger, getPaper, initializeNBTAPI, newConcreteCommandAPICommand, newConcreteLiteralArgument, newConcreteMultiLiteralArgument, onDisable, onEnable, onLoad, postCommandRegistration, preCommandRegistration, registerBukkitRecipesSafely, registerCommandNode, registerPermission, unregister, unregister, updateRequirements, wrapCommandSender
-
Constructor Details
-
MockNMS
public MockNMS(dev.jorel.commandapi.CommandAPIBukkit<?> baseNMS)
-
-
Method Details
-
getItemFactory
public org.bukkit.inventory.ItemFactory getItemFactory()MockPlatform overrides *- Specified by:
getItemFactoryin classMockPlatform<net.minecraft.commands.CommandSourceStack>
-
getAllItemNames
- Specified by:
getAllItemNamesin classMockPlatform<net.minecraft.commands.CommandSourceStack>
-
compatibleVersions
-
getSimpleCommandMap
public org.bukkit.command.SimpleCommandMap getSimpleCommandMap() -
getBrigadierSourceFromCommandSender
public net.minecraft.commands.CommandSourceStack getBrigadierSourceFromCommandSender(dev.jorel.commandapi.commandsenders.AbstractCommandSender<? extends org.bukkit.command.CommandSender> senderWrapper) - Specified by:
getBrigadierSourceFromCommandSenderin interfacedev.jorel.commandapi.CommandAPIPlatform<dev.jorel.commandapi.arguments.Argument<?>,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> - Specified by:
getBrigadierSourceFromCommandSenderin classdev.jorel.commandapi.CommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
-
createDispatcherFile
public void createDispatcherFile(File file, com.mojang.brigadier.CommandDispatcher dispatcher) throws IOException - Specified by:
createDispatcherFilein interfacedev.jorel.commandapi.CommandAPIPlatform<dev.jorel.commandapi.arguments.Argument<?>,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> - Specified by:
createDispatcherFilein classdev.jorel.commandapi.CommandAPIBukkit<net.minecraft.commands.CommandSourceStack>- Throws:
IOException
-
getWorldForCSS
public org.bukkit.World getWorldForCSS(net.minecraft.commands.CommandSourceStack clw) -
getBukkitPotionEffectTypeName
- Specified by:
getBukkitPotionEffectTypeNamein classMockPlatform<net.minecraft.commands.CommandSourceStack>
-
getNMSParticleNameFromBukkit
- Specified by:
getNMSParticleNameFromBukkitin classMockPlatform<net.minecraft.commands.CommandSourceStack>
-
getAllRecipes
- Specified by:
getAllRecipesin classMockPlatform<net.minecraft.commands.CommandSourceStack>
-
getMinecraftServer
public <T> T getMinecraftServer()- Specified by:
getMinecraftServerin classdev.jorel.commandapi.CommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
-
addFunction
- Specified by:
addFunctionin classMockPlatform<net.minecraft.commands.CommandSourceStack>
-
addTag
- Specified by:
addTagin classMockPlatform<net.minecraft.commands.CommandSourceStack>
-
setupMockedCraftPlayer
- Specified by:
setupMockedCraftPlayerin classMockPlatform<net.minecraft.commands.CommandSourceStack>
-
addAdvancement
public org.bukkit.advancement.Advancement addAdvancement(org.bukkit.NamespacedKey key) - Specified by:
addAdvancementin classMockPlatform<net.minecraft.commands.CommandSourceStack>
-
getSenderForCommand
public dev.jorel.commandapi.commandsenders.BukkitCommandSender<? extends org.bukkit.command.CommandSender> getSenderForCommand(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, boolean forceNative) - Specified by:
getSenderForCommandin interfacedev.jorel.commandapi.CommandAPIPlatform<dev.jorel.commandapi.arguments.Argument<?>,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> - Specified by:
getSenderForCommandin classdev.jorel.commandapi.CommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
-
getCommandSenderFromCommandSource
public dev.jorel.commandapi.commandsenders.BukkitCommandSender<? extends org.bukkit.command.CommandSender> getCommandSenderFromCommandSource(net.minecraft.commands.CommandSourceStack clw) - Specified by:
getCommandSenderFromCommandSourcein interfacedev.jorel.commandapi.CommandAPIPlatform<dev.jorel.commandapi.arguments.Argument<?>,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> - Specified by:
getCommandSenderFromCommandSourcein classdev.jorel.commandapi.CommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
-
generateHelpTopic
-
getHelpMap
-
createCommandRegistrationStrategy
public dev.jorel.commandapi.CommandRegistrationStrategy<net.minecraft.commands.CommandSourceStack> createCommandRegistrationStrategy()
-