Package dev.jorel.commandapi.nms
Class MockPaperNMS
java.lang.Object
dev.jorel.commandapi.nms.MockNMS
dev.jorel.commandapi.nms.MockPaperNMS
- All Implemented Interfaces:
BundledNMS<MockCommandSource>,NMS<MockCommandSource>,PaperNMS<MockCommandSource>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.chat.SignedMessagegetChat(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) net.kyori.adventure.text.format.NamedTextColorgetChatColor(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) net.kyori.adventure.text.ComponentgetChatComponent(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) List<com.destroystokyo.paper.profile.PlayerProfile> getProfile(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) Methods inherited from class dev.jorel.commandapi.nms.MockNMS
_ArgumentAdvancement, _ArgumentAngle, _ArgumentAxis, _ArgumentBlockPredicate, _ArgumentBlockState, _ArgumentChat, _ArgumentChatComponent, _ArgumentChatFormat, _ArgumentDimension, _ArgumentEnchantment, _ArgumentEntity, _ArgumentEntitySummon, _ArgumentFloatRange, _ArgumentIntRange, _ArgumentItemPredicate, _ArgumentItemStack, _ArgumentMathOperation, _ArgumentMinecraftKeyRegistered, _ArgumentMobEffect, _ArgumentNBTCompound, _ArgumentParticle, _ArgumentPosition, _ArgumentPosition2D, _ArgumentProfile, _ArgumentRecipe, _ArgumentRotation, _ArgumentScoreboardCriteria, _ArgumentScoreboardObjective, _ArgumentScoreboardSlot, _ArgumentScoreboardTeam, _ArgumentScoreholder, _ArgumentSyntheticBiome, _ArgumentTag, _ArgumentTime, _ArgumentUUID, _ArgumentVec2, _ArgumentVec3, compatibleVersions, convert, convert, convert, convert, createDispatcherFile, createNativeProxyCommandSender, generateHelpTopic, generateMessageFromJson, getAdvancement, getAngle, getAxis, getBiome, getBlockPredicate, getBlockState, getBrigadierSourceFromCommandSender, getCommandSenderFromCommandSource, getDimension, getDoubleRange, getEnchantment, getEntitySelector, getEntityType, getFunction, getFunction, getFunctions, getHelpMap, getIntRange, getItemStack, getItemStackPredicate, getLocation2DBlock, getLocation2DPrecise, getLocationBlock, getLocationPrecise, getLootTable, getMathOperation, getMinecraftKey, getMinecraftServer, getNBTCompound, getObjective, getObjectiveCriteria, getParticle, getPotionEffect, getRecipe, getRotation, getScoreboardSlot, getScoreHolderMultiple, getScoreHolderSingle, getSenderForCommand, getSimpleCommandMap, getSound, getSuggestionProvider, getTag, getTags, getTeam, getTime, getUUID, getWorldForCSS, reloadDataPacksMethods 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
_ArgumentAdvancement, _ArgumentAngle, _ArgumentAxis, _ArgumentBlockPredicate, _ArgumentBlockState, _ArgumentChat, _ArgumentChatComponent, _ArgumentChatFormat, _ArgumentDimension, _ArgumentEnchantment, _ArgumentEntity, _ArgumentEntitySummon, _ArgumentFloatRange, _ArgumentIntRange, _ArgumentItemPredicate, _ArgumentItemStack, _ArgumentMathOperation, _ArgumentMinecraftKeyRegistered, _ArgumentMobEffect, _ArgumentNBTCompound, _ArgumentParticle, _ArgumentPosition, _ArgumentPosition2D, _ArgumentProfile, _ArgumentRecipe, _ArgumentRotation, _ArgumentScoreboardCriteria, _ArgumentScoreboardObjective, _ArgumentScoreboardSlot, _ArgumentScoreboardTeam, _ArgumentScoreholder, _ArgumentSyntheticBiome, _ArgumentTag, _ArgumentTime, _ArgumentUUID, _ArgumentVec2, _ArgumentVec3, compatibleVersions, convert, convert, convert, convert, createDispatcherFile, createNativeProxyCommandSender, generateHelpTopic, generateMessageFromJson, getAdvancement, getAngle, getAxis, getBiome, getBlockPredicate, getBlockState, getBrigadierSourceFromCommandSender, getCommandSenderFromCommandSource, getDimension, getDoubleRange, getEnchantment, getEntitySelector, getEntityType, getFunction, getFunction, getFunctions, getHelpMap, getIntRange, getItemStack, getItemStackPredicate, getLocation2DBlock, getLocation2DPrecise, getLocationBlock, getLocationPrecise, getLootTable, getMathOperation, getMinecraftKey, getMinecraftServer, getNBTCompound, getObjective, getObjectiveCriteria, getParticle, getPotionEffect, getRecipe, getRotation, getScoreboardSlot, getScoreHolderMultiple, getScoreHolderSingle, getSenderForCommand, getSimpleCommandMap, getSound, getSuggestionProvider, getTag, getTags, getTeam, getTime, getUUID, getWorldForCSS, reloadDataPacks
-
Constructor Details
-
MockPaperNMS
public MockPaperNMS()
-
-
Method Details
-
bukkitNMS
- Specified by:
bukkitNMSin interfacePaperNMS<MockCommandSource>
-
createCommandRegistrationStrategy
- Specified by:
createCommandRegistrationStrategyin interfacePaperNMS<MockCommandSource>
-
getProfile
public List<com.destroystokyo.paper.profile.PlayerProfile> getProfile(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getProfilein interfaceBundledNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getChat
public net.kyori.adventure.chat.SignedMessage getChat(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getChatin interfaceBundledNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getChatColor
public net.kyori.adventure.text.format.NamedTextColor getChatColor(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getChatColorin interfaceBundledNMS<MockCommandSource>
-
getChatComponent
public net.kyori.adventure.text.Component getChatComponent(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getChatComponentin interfaceBundledNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-