Package net.minecraft.server.command
Class LootCommand
java.lang.Object
net.minecraft.server.command.LootCommand
- Mappings:
Namespace Name named net/minecraft/server/command/LootCommandintermediary net/minecraft/class_3039official anj
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interfaceprivate static interfaceprivate static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypestatic final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T extends com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,T>>
TaddTargetArguments(T rootArgument, LootCommand.SourceConstructor sourceConstructor) private static intexecuteBlock(ServerCommandSource source, BlockPos targetPos, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static intexecuteFish(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryEntry<LootTable> lootTable, BlockPos pos, ItemStack stack, LootCommand.Target constructor) private static intexecuteGive(Collection<ServerPlayerEntity> players, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static intexecuteInsert(ServerCommandSource source, BlockPos targetPos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static intexecuteKill(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Entity entity, LootCommand.Target constructor) private static intexecuteLoot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryEntry<LootTable> lootTable, LootCommand.Target constructor) private static intexecuteMine(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BlockPos pos, ItemStack stack, LootCommand.Target constructor) private static intexecuteReplace(Collection<? extends Entity> targets, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static intexecuteSpawn(ServerCommandSource source, Vec3d pos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static InventorygetBlockInventory(ServerCommandSource source, BlockPos pos) private static intgetFeedbackMessageSingle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryEntry<LootTable> lootTable, LootContextParameterSet lootContextParameters, LootCommand.Target constructor) private static ItemStackgetHeldItem(ServerCommandSource source, EquipmentSlot slot) private static booleanprivate static booleanitemsMatch(ItemStack first, ItemStack second) static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess) private static voidreplace(Entity entity, List<ItemStack> stacks, int slot, int stackCount, List<ItemStack> addedStacks) private static voidsendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks) private static voidsendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks, RegistryKey<LootTable> lootTable)
-
Field Details
-
SUGGESTION_PROVIDER
public static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> SUGGESTION_PROVIDER- Mappings:
Namespace Name Mixin selector named SUGGESTION_PROVIDERLnet/minecraft/server/command/LootCommand;SUGGESTION_PROVIDER:Lcom/mojang/brigadier/suggestion/SuggestionProvider;intermediary field_13605Lnet/minecraft/class_3039;field_13605:Lcom/mojang/brigadier/suggestion/SuggestionProvider;official aLanj;a:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
-
NO_HELD_ITEMS_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NO_HELD_ITEMS_EXCEPTION- Mappings:
Namespace Name Mixin selector named NO_HELD_ITEMS_EXCEPTIONLnet/minecraft/server/command/LootCommand;NO_HELD_ITEMS_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_13604Lnet/minecraft/class_3039;field_13604:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;official bLanj;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
NO_LOOT_TABLE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NO_LOOT_TABLE_EXCEPTION- Mappings:
Namespace Name Mixin selector named NO_LOOT_TABLE_EXCEPTIONLnet/minecraft/server/command/LootCommand;NO_LOOT_TABLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_13606Lnet/minecraft/class_3039;field_13606:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;official cLanj;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
-
Constructor Details
-
LootCommand
public LootCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess) - Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/server/command/LootCommand;register(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/command/CommandRegistryAccess;)Vintermediary method_13193Lnet/minecraft/class_3039;method_13193(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_7157;)Vofficial aLanj;a(Lcom/mojang/brigadier/CommandDispatcher;Lep;)V
-
addTargetArguments
private static <T extends com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,T>> T addTargetArguments(T rootArgument, LootCommand.SourceConstructor sourceConstructor) - Mappings:
Namespace Name Mixin selector named addTargetArgumentsLnet/minecraft/server/command/LootCommand;addTargetArguments(Lcom/mojang/brigadier/builder/ArgumentBuilder;Lnet/minecraft/server/command/LootCommand$SourceConstructor;)Lcom/mojang/brigadier/builder/ArgumentBuilder;intermediary method_13206Lnet/minecraft/class_3039;method_13206(Lcom/mojang/brigadier/builder/ArgumentBuilder;Lnet/minecraft/class_3039$class_3042;)Lcom/mojang/brigadier/builder/ArgumentBuilder;official aLanj;a(Lcom/mojang/brigadier/builder/ArgumentBuilder;Lanj$c;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
-
getBlockInventory
private static Inventory getBlockInventory(ServerCommandSource source, BlockPos pos) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getBlockInventoryLnet/minecraft/server/command/LootCommand;getBlockInventory(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/inventory/Inventory;intermediary method_13207Lnet/minecraft/class_3039;method_13207(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1263;official aLanj;a(Let;Ljd;)Lbqk;
-
executeInsert
private static int executeInsert(ServerCommandSource source, BlockPos targetPos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named executeInsertLnet/minecraft/server/command/LootCommand;executeInsert(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;Lnet/minecraft/server/command/LootCommand$FeedbackMessage;)Iintermediary method_13196Lnet/minecraft/class_3039;method_13196(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;Ljava/util/List;Lnet/minecraft/class_3039$class_3040;)Iofficial aLanj;a(Let;Ljd;Ljava/util/List;Lanj$a;)I
-
insert
- Mappings:
Namespace Name Mixin selector named insertLnet/minecraft/server/command/LootCommand;insert(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;)Zintermediary method_13223Lnet/minecraft/class_3039;method_13223(Lnet/minecraft/class_1263;Lnet/minecraft/class_1799;)Zofficial aLanj;a(Lbqk;Lcuq;)Z
-
executeBlock
private static int executeBlock(ServerCommandSource source, BlockPos targetPos, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named executeBlockLnet/minecraft/server/command/LootCommand;executeBlock(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;IILjava/util/List;Lnet/minecraft/server/command/LootCommand$FeedbackMessage;)Iintermediary method_13209Lnet/minecraft/class_3039;method_13209(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;IILjava/util/List;Lnet/minecraft/class_3039$class_3040;)Iofficial aLanj;a(Let;Ljd;IILjava/util/List;Lanj$a;)I
-
itemsMatch
- Mappings:
Namespace Name Mixin selector named itemsMatchLnet/minecraft/server/command/LootCommand;itemsMatch(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Zintermediary method_13218Lnet/minecraft/class_3039;method_13218(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Zofficial aLanj;a(Lcuq;Lcuq;)Z
-
executeGive
private static int executeGive(Collection<ServerPlayerEntity> players, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named executeGiveLnet/minecraft/server/command/LootCommand;executeGive(Ljava/util/Collection;Ljava/util/List;Lnet/minecraft/server/command/LootCommand$FeedbackMessage;)Iintermediary method_13201Lnet/minecraft/class_3039;method_13201(Ljava/util/Collection;Ljava/util/List;Lnet/minecraft/class_3039$class_3040;)Iofficial aLanj;a(Ljava/util/Collection;Ljava/util/List;Lanj$a;)I
-
replace
private static void replace(Entity entity, List<ItemStack> stacks, int slot, int stackCount, List<ItemStack> addedStacks) - Mappings:
Namespace Name Mixin selector named replaceLnet/minecraft/server/command/LootCommand;replace(Lnet/minecraft/entity/Entity;Ljava/util/List;IILjava/util/List;)Vintermediary method_16139Lnet/minecraft/class_3039;method_16139(Lnet/minecraft/class_1297;Ljava/util/List;IILjava/util/List;)Vofficial aLanj;a(Lbsr;Ljava/util/List;IILjava/util/List;)V
-
executeReplace
private static int executeReplace(Collection<? extends Entity> targets, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named executeReplaceLnet/minecraft/server/command/LootCommand;executeReplace(Ljava/util/Collection;IILjava/util/List;Lnet/minecraft/server/command/LootCommand$FeedbackMessage;)Iintermediary method_13187Lnet/minecraft/class_3039;method_13187(Ljava/util/Collection;IILjava/util/List;Lnet/minecraft/class_3039$class_3040;)Iofficial aLanj;a(Ljava/util/Collection;IILjava/util/List;Lanj$a;)I
-
executeSpawn
private static int executeSpawn(ServerCommandSource source, Vec3d pos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named executeSpawnLnet/minecraft/server/command/LootCommand;executeSpawn(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/Vec3d;Ljava/util/List;Lnet/minecraft/server/command/LootCommand$FeedbackMessage;)Iintermediary method_13183Lnet/minecraft/class_3039;method_13183(Lnet/minecraft/class_2168;Lnet/minecraft/class_243;Ljava/util/List;Lnet/minecraft/class_3039$class_3040;)Iofficial aLanj;a(Let;Lexc;Ljava/util/List;Lanj$a;)I
-
sendDroppedFeedback
- Mappings:
Namespace Name Mixin selector named sendDroppedFeedbackLnet/minecraft/server/command/LootCommand;sendDroppedFeedback(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/List;)Vintermediary method_13213Lnet/minecraft/class_3039;method_13213(Lnet/minecraft/class_2168;Ljava/util/List;)Vofficial aLanj;a(Let;Ljava/util/List;)V
-
sendDroppedFeedback
private static void sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks, RegistryKey<LootTable> lootTable) - Mappings:
Namespace Name Mixin selector named sendDroppedFeedbackLnet/minecraft/server/command/LootCommand;sendDroppedFeedback(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/List;Lnet/minecraft/registry/RegistryKey;)Vintermediary method_13212Lnet/minecraft/class_3039;method_13212(Lnet/minecraft/class_2168;Ljava/util/List;Lnet/minecraft/class_5321;)Vofficial aLanj;a(Let;Ljava/util/List;Lakq;)V
-
getHeldItem
private static ItemStack getHeldItem(ServerCommandSource source, EquipmentSlot slot) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getHeldItemLnet/minecraft/server/command/LootCommand;getHeldItem(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/EquipmentSlot;)Lnet/minecraft/item/ItemStack;intermediary method_13178Lnet/minecraft/class_3039;method_13178(Lnet/minecraft/class_2168;Lnet/minecraft/class_1304;)Lnet/minecraft/class_1799;official aLanj;a(Let;Lbsy;)Lcuq;
-
executeMine
private static int executeMine(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BlockPos pos, ItemStack stack, LootCommand.Target constructor) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named executeMineLnet/minecraft/server/command/LootCommand;executeMine(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;Lnet/minecraft/server/command/LootCommand$Target;)Iintermediary method_13219Lnet/minecraft/class_3039;method_13219(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;Lnet/minecraft/class_3039$class_3041;)Iofficial aLanj;a(Lcom/mojang/brigadier/context/CommandContext;Ljd;Lcuq;Lanj$b;)I
-
executeKill
private static int executeKill(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Entity entity, LootCommand.Target constructor) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named executeKillLnet/minecraft/server/command/LootCommand;executeKill(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/entity/Entity;Lnet/minecraft/server/command/LootCommand$Target;)Iintermediary method_13189Lnet/minecraft/class_3039;method_13189(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_1297;Lnet/minecraft/class_3039$class_3041;)Iofficial aLanj;a(Lcom/mojang/brigadier/context/CommandContext;Lbsr;Lanj$b;)I
-
executeLoot
private static int executeLoot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryEntry<LootTable> lootTable, LootCommand.Target constructor) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named executeLootLnet/minecraft/server/command/LootCommand;executeLoot(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/server/command/LootCommand$Target;)Iintermediary method_13197Lnet/minecraft/class_3039;method_13197(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_6880;Lnet/minecraft/class_3039$class_3041;)Iofficial aLanj;a(Lcom/mojang/brigadier/context/CommandContext;Ljm;Lanj$b;)I
-
executeFish
private static int executeFish(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryEntry<LootTable> lootTable, BlockPos pos, ItemStack stack, LootCommand.Target constructor) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named executeFishLnet/minecraft/server/command/LootCommand;executeFish(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;Lnet/minecraft/server/command/LootCommand$Target;)Iintermediary method_13199Lnet/minecraft/class_3039;method_13199(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_6880;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;Lnet/minecraft/class_3039$class_3041;)Iofficial aLanj;a(Lcom/mojang/brigadier/context/CommandContext;Ljm;Ljd;Lcuq;Lanj$b;)I
-
getFeedbackMessageSingle
private static int getFeedbackMessageSingle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryEntry<LootTable> lootTable, LootContextParameterSet lootContextParameters, LootCommand.Target constructor) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getFeedbackMessageSingleLnet/minecraft/server/command/LootCommand;getFeedbackMessageSingle(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/loot/context/LootContextParameterSet;Lnet/minecraft/server/command/LootCommand$Target;)Iintermediary method_13180Lnet/minecraft/class_3039;method_13180(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_6880;Lnet/minecraft/class_8567;Lnet/minecraft/class_3039$class_3041;)Iofficial aLanj;a(Lcom/mojang/brigadier/context/CommandContext;Ljm;Leru;Lanj$b;)I
-