Class LootCommand

java.lang.Object
net.minecraft.server.command.LootCommand

public class LootCommand extends Object
Mappings:
Namespace Name
official afd
intermediary net/minecraft/class_3039
named net/minecraft/server/command/LootCommand
  • Field Details

    • SUGGESTION_PROVIDER

      public static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> SUGGESTION_PROVIDER
      Mappings:
      Namespace Name Mixin selector
      official a Lafd;a:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
      intermediary field_13605 Lnet/minecraft/class_3039;field_13605:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
      named SUGGESTION_PROVIDER Lnet/minecraft/server/command/LootCommand;SUGGESTION_PROVIDER: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
      official b Lafd;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_13604 Lnet/minecraft/class_3039;field_13604:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named NO_HELD_ITEMS_EXCEPTION Lnet/minecraft/server/command/LootCommand;NO_HELD_ITEMS_EXCEPTION: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
      official c Lafd;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_13606 Lnet/minecraft/class_3039;field_13606:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named NO_LOOT_TABLE_EXCEPTION Lnet/minecraft/server/command/LootCommand;NO_LOOT_TABLE_EXCEPTION: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
      official a Lafd;a(Lcom/mojang/brigadier/CommandDispatcher;Ldm;)V
      intermediary method_13193 Lnet/minecraft/class_3039;method_13193(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_7157;)V
      named register Lnet/minecraft/server/command/LootCommand;register(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/command/CommandRegistryAccess;)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
      official a Lafd;a(Lcom/mojang/brigadier/builder/ArgumentBuilder;Lafd$c;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
      intermediary method_13206 Lnet/minecraft/class_3039;method_13206(Lcom/mojang/brigadier/builder/ArgumentBuilder;Lnet/minecraft/class_3039$class_3042;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
      named addTargetArguments Lnet/minecraft/server/command/LootCommand;addTargetArguments(Lcom/mojang/brigadier/builder/ArgumentBuilder;Lnet/minecraft/server/command/LootCommand$SourceConstructor;)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
      official a Lafd;a(Lds;Lgu;)Lbdq;
      intermediary method_13207 Lnet/minecraft/class_3039;method_13207(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1263;
      named getBlockInventory Lnet/minecraft/server/command/LootCommand;getBlockInventory(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/inventory/Inventory;
    • 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
      official a Lafd;a(Lds;Lgu;Ljava/util/List;Lafd$a;)I
      intermediary method_13196 Lnet/minecraft/class_3039;method_13196(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;Ljava/util/List;Lnet/minecraft/class_3039$class_3040;)I
      named executeInsert Lnet/minecraft/server/command/LootCommand;executeInsert(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;Lnet/minecraft/server/command/LootCommand$FeedbackMessage;)I
    • insert

      private static boolean insert(Inventory inventory, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lafd;a(Lbdq;Lcfz;)Z
      intermediary method_13223 Lnet/minecraft/class_3039;method_13223(Lnet/minecraft/class_1263;Lnet/minecraft/class_1799;)Z
      named insert Lnet/minecraft/server/command/LootCommand;insert(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;)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
      official a Lafd;a(Lds;Lgu;IILjava/util/List;Lafd$a;)I
      intermediary method_13209 Lnet/minecraft/class_3039;method_13209(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;IILjava/util/List;Lnet/minecraft/class_3039$class_3040;)I
      named executeBlock Lnet/minecraft/server/command/LootCommand;executeBlock(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;IILjava/util/List;Lnet/minecraft/server/command/LootCommand$FeedbackMessage;)I
    • itemsMatch

      private static boolean itemsMatch(ItemStack first, ItemStack second)
      Mappings:
      Namespace Name Mixin selector
      official a Lafd;a(Lcfz;Lcfz;)Z
      intermediary method_13218 Lnet/minecraft/class_3039;method_13218(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
      named itemsMatch Lnet/minecraft/server/command/LootCommand;itemsMatch(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)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
      official a Lafd;a(Ljava/util/Collection;Ljava/util/List;Lafd$a;)I
      intermediary method_13201 Lnet/minecraft/class_3039;method_13201(Ljava/util/Collection;Ljava/util/List;Lnet/minecraft/class_3039$class_3040;)I
      named executeGive Lnet/minecraft/server/command/LootCommand;executeGive(Ljava/util/Collection;Ljava/util/List;Lnet/minecraft/server/command/LootCommand$FeedbackMessage;)I
    • replace

      private static void replace(Entity entity, List<ItemStack> stacks, int slot, int stackCount, List<ItemStack> addedStacks)
      Mappings:
      Namespace Name Mixin selector
      official a Lafd;a(Lbfj;Ljava/util/List;IILjava/util/List;)V
      intermediary method_16139 Lnet/minecraft/class_3039;method_16139(Lnet/minecraft/class_1297;Ljava/util/List;IILjava/util/List;)V
      named replace Lnet/minecraft/server/command/LootCommand;replace(Lnet/minecraft/entity/Entity;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
      official a Lafd;a(Ljava/util/Collection;IILjava/util/List;Lafd$a;)I
      intermediary method_13187 Lnet/minecraft/class_3039;method_13187(Ljava/util/Collection;IILjava/util/List;Lnet/minecraft/class_3039$class_3040;)I
      named executeReplace Lnet/minecraft/server/command/LootCommand;executeReplace(Ljava/util/Collection;IILjava/util/List;Lnet/minecraft/server/command/LootCommand$FeedbackMessage;)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
      official a Lafd;a(Lds;Leei;Ljava/util/List;Lafd$a;)I
      intermediary method_13183 Lnet/minecraft/class_3039;method_13183(Lnet/minecraft/class_2168;Lnet/minecraft/class_243;Ljava/util/List;Lnet/minecraft/class_3039$class_3040;)I
      named executeSpawn Lnet/minecraft/server/command/LootCommand;executeSpawn(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/Vec3d;Ljava/util/List;Lnet/minecraft/server/command/LootCommand$FeedbackMessage;)I
    • sendDroppedFeedback

      private static void sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks)
      Mappings:
      Namespace Name Mixin selector
      official a Lafd;a(Lds;Ljava/util/List;)V
      intermediary method_13213 Lnet/minecraft/class_3039;method_13213(Lnet/minecraft/class_2168;Ljava/util/List;)V
      named sendDroppedFeedback Lnet/minecraft/server/command/LootCommand;sendDroppedFeedback(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/List;)V
    • sendDroppedFeedback

      private static void sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks, Identifier lootTable)
      Mappings:
      Namespace Name Mixin selector
      official a Lafd;a(Lds;Ljava/util/List;Lacq;)V
      intermediary method_13212 Lnet/minecraft/class_3039;method_13212(Lnet/minecraft/class_2168;Ljava/util/List;Lnet/minecraft/class_2960;)V
      named sendDroppedFeedback Lnet/minecraft/server/command/LootCommand;sendDroppedFeedback(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/List;Lnet/minecraft/util/Identifier;)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
      official a Lafd;a(Lds;Lbfo;)Lcfz;
      intermediary method_13178 Lnet/minecraft/class_3039;method_13178(Lnet/minecraft/class_2168;Lnet/minecraft/class_1304;)Lnet/minecraft/class_1799;
      named getHeldItem Lnet/minecraft/server/command/LootCommand;getHeldItem(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/EquipmentSlot;)Lnet/minecraft/item/ItemStack;
    • 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
      official a Lafd;a(Lcom/mojang/brigadier/context/CommandContext;Lgu;Lcfz;Lafd$b;)I
      intermediary method_13219 Lnet/minecraft/class_3039;method_13219(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;Lnet/minecraft/class_3039$class_3041;)I
      named executeMine Lnet/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;)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
      official a Lafd;a(Lcom/mojang/brigadier/context/CommandContext;Lbfj;Lafd$b;)I
      intermediary method_13189 Lnet/minecraft/class_3039;method_13189(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_1297;Lnet/minecraft/class_3039$class_3041;)I
      named executeKill Lnet/minecraft/server/command/LootCommand;executeKill(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/entity/Entity;Lnet/minecraft/server/command/LootCommand$Target;)I
    • executeLoot

      private static int executeLoot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, LootCommand.Target constructor) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lafd;a(Lcom/mojang/brigadier/context/CommandContext;Lacq;Lafd$b;)I
      intermediary method_13197 Lnet/minecraft/class_3039;method_13197(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_2960;Lnet/minecraft/class_3039$class_3041;)I
      named executeLoot Lnet/minecraft/server/command/LootCommand;executeLoot(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/util/Identifier;Lnet/minecraft/server/command/LootCommand$Target;)I
    • executeFish

      private static int executeFish(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier 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
      official a Lafd;a(Lcom/mojang/brigadier/context/CommandContext;Lacq;Lgu;Lcfz;Lafd$b;)I
      intermediary method_13199 Lnet/minecraft/class_3039;method_13199(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_2960;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;Lnet/minecraft/class_3039$class_3041;)I
      named executeFish Lnet/minecraft/server/command/LootCommand;executeFish(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/util/Identifier;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;Lnet/minecraft/server/command/LootCommand$Target;)I
    • getFeedbackMessageSingle

      private static int getFeedbackMessageSingle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, LootContextParameterSet lootContextParameters, LootCommand.Target constructor) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lafd;a(Lcom/mojang/brigadier/context/CommandContext;Lacq;Ldzq;Lafd$b;)I
      intermediary method_13180 Lnet/minecraft/class_3039;method_13180(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_2960;Lnet/minecraft/class_8567;Lnet/minecraft/class_3039$class_3041;)I
      named getFeedbackMessageSingle Lnet/minecraft/server/command/LootCommand;getFeedbackMessageSingle(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/util/Identifier;Lnet/minecraft/loot/context/LootContextParameterSet;Lnet/minecraft/server/command/LootCommand$Target;)I