net.minecraft.server.command

public class LootCommand

net.minecraft.server.commands.LootCommand
net.minecraft.server.commands.LootCommand
net.minecraft.class_3039
net.minecraft.server.command.LootCommand

Field summary

Modifier and TypeField
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_NO_HELD_ITEMS
ERROR_NO_HELD_ITEMS
field_13604
NO_HELD_ITEMS_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_NO_ENTITY_LOOT_TABLE
ERROR_NO_ENTITY_LOOT_TABLE
field_13606
NO_LOOT_TABLE_ENTITY_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_NO_BLOCK_LOOT_TABLE
ERROR_NO_BLOCK_LOOT_TABLE
field_53969
NO_LOOT_TABLE_BLOCK_EXCEPTION

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
method_13193(com.mojang.brigadier.CommandDispatcher<class_2168> arg0, class_7157 arg1)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess)
private static <T extends com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, T>> T
addTargets(T root, LootCommand$TailProvider tail)
addTargets(T root, LootCommand$TailProvider tail)
method_13206(T arg0, class_3039$class_3042 arg1)
addTargetArguments(T rootArgument, LootCommand$SourceConstructor sourceConstructor)
private static Inventory
getContainer(CommandSourceStack source, BlockPos pos)
getContainer(CommandSourceStack source, BlockPos pos)
method_13207(class_2168 arg0, class_2338 arg1)
getBlockInventory(ServerCommandSource source, BlockPos pos)
private static int
blockDistribute(CommandSourceStack source, BlockPos pos, List<ItemStack> drops, LootCommand$Callback callback)
blockDistribute(CommandSourceStack source, BlockPos pos, List<ItemStack> drops, LootCommand$Callback callback)
method_13196(class_2168 arg0, class_2338 arg1, List<class_1799> arg2, class_3039$class_3040 arg3)
executeInsert(ServerCommandSource source, BlockPos targetPos, List<ItemStack> stacks, LootCommand$FeedbackMessage messageSender)
private static boolean
distributeToContainer(Container container, ItemStack itemStack)
distributeToContainer(Container container, ItemStack itemStack)
method_13223(class_1263 arg0, class_1799 arg1)
insert(Inventory inventory, ItemStack stack)
private static int
blockReplace(CommandSourceStack source, BlockPos pos, int startSlot, int slotCount, List<ItemStack> drops, LootCommand$Callback callback)
blockReplace(CommandSourceStack source, BlockPos pos, int startSlot, int slotCount, List<ItemStack> drops, LootCommand$Callback callback)
method_13209(class_2168 arg0, class_2338 arg1, int arg2, int arg3, List<class_1799> arg4, class_3039$class_3040 arg5)
executeBlock(ServerCommandSource source, BlockPos targetPos, int slot, int stackCount, List<ItemStack> stacks, LootCommand$FeedbackMessage messageSender)
private static boolean
canMergeItems(ItemStack a, ItemStack b)
canMergeItems(ItemStack a, ItemStack b)
method_13218(class_1799 arg0, class_1799 arg1)
itemsMatch(ItemStack first, ItemStack second)
private static int
playerGive(Collection<ServerPlayer> players, List<ItemStack> drops, LootCommand$Callback callback)
playerGive(Collection<ServerPlayer> players, List<ItemStack> drops, LootCommand$Callback callback)
method_13201(Collection<class_3222> arg0, List<class_1799> arg1, class_3039$class_3040 arg2)
executeGive(Collection<ServerPlayerEntity> players, List<ItemStack> stacks, LootCommand$FeedbackMessage messageSender)
private static void
setSlots(Entity entity, List<ItemStack> itemsToSet, int startSlot, int count, List<ItemStack> usedItems)
setSlots(Entity entity, List<ItemStack> itemsToSet, int startSlot, int count, List<ItemStack> usedItems)
method_16139(class_1297 arg0, List<class_1799> arg1, int arg2, int arg3, List<class_1799> arg4)
replace(Entity entity, List<ItemStack> stacks, int slot, int stackCount, List<ItemStack> addedStacks)
private static int
entityReplace(Collection<? extends Entity> entities, int startSlot, int count, List<ItemStack> drops, LootCommand$Callback callback)
entityReplace(Collection<? extends Entity> entities, int startSlot, int count, List<ItemStack> drops, LootCommand$Callback callback)
method_13187(Collection<? extends class_1297> arg0, int arg1, int arg2, List<class_1799> arg3, class_3039$class_3040 arg4)
executeReplace(Collection<? extends Entity> targets, int slot, int stackCount, List<ItemStack> stacks, LootCommand$FeedbackMessage messageSender)
private static int
dropInWorld(CommandSourceStack source, Vec3 pos, List<ItemStack> drops, LootCommand$Callback callback)
dropInWorld(CommandSourceStack source, Vec3 pos, List<ItemStack> drops, LootCommand$Callback callback)
method_13183(class_2168 arg0, class_243 arg1, List<class_1799> arg2, class_3039$class_3040 arg3)
executeSpawn(ServerCommandSource source, Vec3d pos, List<ItemStack> stacks, LootCommand$FeedbackMessage messageSender)
private static void
callback(CommandSourceStack source, List<ItemStack> drops)
callback(CommandSourceStack source, List<ItemStack> drops)
method_13213(class_2168 arg0, List<class_1799> arg1)
sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks)
private static void
callback(CommandSourceStack source, List<ItemStack> drops, ResourceKey<LootTable> location)
callback(CommandSourceStack source, List<ItemStack> drops, ResourceKey<LootTable> location)
method_13212(class_2168 arg0, List<class_1799> arg1, class_5321<class_52> arg2)
sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks, RegistryKey<LootTable> lootTable)
private static ItemStack
getSourceHandItem(CommandSourceStack source, EquipmentSlot slot)
getSourceHandItem(CommandSourceStack source, EquipmentSlot slot)
method_13178(class_2168 arg0, class_1304 arg1)
getHeldItem(ServerCommandSource source, EquipmentSlot slot)
private static int
dropBlockLoot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, BlockPos pos, ItemInstance tool, LootCommand$DropConsumer output)
dropBlockLoot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, BlockPos pos, ItemInstance tool, LootCommand$DropConsumer output)
method_13219(com.mojang.brigadier.context.CommandContext<class_2168> arg0, class_2338 arg1, class_1_96 arg2, class_3039$class_3041 arg3)
executeMine(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BlockPos pos, ItemStackView arg2, LootCommand$Target constructor)
private static int
dropKillLoot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Entity target, LootCommand$DropConsumer output)
dropKillLoot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Entity target, LootCommand$DropConsumer output)
method_13189(com.mojang.brigadier.context.CommandContext<class_2168> arg0, class_1297 arg1, class_3039$class_3041 arg2)
executeKill(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Entity entity, LootCommand$Target constructor)
private static int
dropChestLoot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Holder<LootTable> lootTable, LootCommand$DropConsumer output)
dropChestLoot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Holder<LootTable> lootTable, LootCommand$DropConsumer output)
method_13197(com.mojang.brigadier.context.CommandContext<class_2168> arg0, class_6880<class_52> arg1, class_3039$class_3041 arg2)
executeLoot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryEntry<LootTable> lootTable, LootCommand$Target constructor)
private static int
dropFishingLoot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Holder<LootTable> lootTable, BlockPos pos, ItemInstance tool, LootCommand$DropConsumer output)
dropFishingLoot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Holder<LootTable> lootTable, BlockPos pos, ItemInstance tool, LootCommand$DropConsumer output)
method_13199(com.mojang.brigadier.context.CommandContext<class_2168> arg0, class_6880<class_52> arg1, class_2338 arg2, class_1_96 arg3, class_3039$class_3041 arg4)
executeFish(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryEntry<LootTable> lootTable, BlockPos pos, ItemStackView arg3, LootCommand$Target constructor)
private static int
drop(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Holder<LootTable> lootTable, LootParams lootParams, LootCommand$DropConsumer output)
drop(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Holder<LootTable> lootTable, LootParams lootParams, LootCommand$DropConsumer output)
method_13180(com.mojang.brigadier.context.CommandContext<class_2168> arg0, class_6880<class_52> arg1, class_8567 arg2, class_3039$class_3041 arg3)
getFeedbackMessageSingle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryEntry<LootTable> lootTable, LootWorldContext lootContextParameters, LootCommand$Target constructor)