Uses of Class
net.minecraft.util.collection.DefaultedList
Package
Description
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of DefaultedList in net.minecraft.block.entity
Modifier and TypeFieldDescriptionprivate DefaultedList
<ItemStack> CrafterBlockEntity.inputStacks
protected DefaultedList
<ItemStack> AbstractFurnaceBlockEntity.inventory
private DefaultedList
<ItemStack> BarrelBlockEntity.inventory
private DefaultedList
<ItemStack> BrewingStandBlockEntity.inventory
private DefaultedList
<ItemStack> ChestBlockEntity.inventory
private final DefaultedList
<ItemStack> ChiseledBookshelfBlockEntity.inventory
private DefaultedList
<ItemStack> DispenserBlockEntity.inventory
private DefaultedList
<ItemStack> HopperBlockEntity.inventory
private DefaultedList
<ItemStack> ShulkerBoxBlockEntity.inventory
private final DefaultedList
<ItemStack> CampfireBlockEntity.itemsBeingCooked
Modifier and TypeMethodDescriptionprotected DefaultedList
<ItemStack> AbstractFurnaceBlockEntity.getHeldStacks()
protected DefaultedList
<ItemStack> BarrelBlockEntity.getHeldStacks()
protected DefaultedList
<ItemStack> BrewingStandBlockEntity.getHeldStacks()
protected DefaultedList
<ItemStack> ChestBlockEntity.getHeldStacks()
CrafterBlockEntity.getHeldStacks()
protected DefaultedList
<ItemStack> DispenserBlockEntity.getHeldStacks()
protected DefaultedList
<ItemStack> HopperBlockEntity.getHeldStacks()
protected abstract DefaultedList
<ItemStack> LockableContainerBlockEntity.getHeldStacks()
protected DefaultedList
<ItemStack> ShulkerBoxBlockEntity.getHeldStacks()
CampfireBlockEntity.getItemsBeingCooked()
Modifier and TypeMethodDescriptionprivate static boolean
AbstractFurnaceBlockEntity.canAcceptRecipeOutput
(DynamicRegistryManager dynamicRegistryManager, @Nullable RecipeEntry<? extends AbstractCookingRecipe> recipe, SingleStackRecipeInput input, DefaultedList<ItemStack> inventory, int maxCount) private static boolean
BrewingStandBlockEntity.canCraft
(BrewingRecipeRegistry brewingRecipeRegistry, DefaultedList<ItemStack> slots) private static void
BrewingStandBlockEntity.craft
(World world, BlockPos pos, DefaultedList<ItemStack> slots) private static boolean
AbstractFurnaceBlockEntity.craftRecipe
(DynamicRegistryManager dynamicRegisryManager, @Nullable RecipeEntry<? extends AbstractCookingRecipe> recipe, SingleStackRecipeInput input, DefaultedList<ItemStack> inventory, int maxCount) protected void
AbstractFurnaceBlockEntity.setHeldStacks
(DefaultedList<ItemStack> inventory) protected void
BarrelBlockEntity.setHeldStacks
(DefaultedList<ItemStack> inventory) protected void
BrewingStandBlockEntity.setHeldStacks
(DefaultedList<ItemStack> inventory) protected void
ChestBlockEntity.setHeldStacks
(DefaultedList<ItemStack> inventory) protected void
CrafterBlockEntity.setHeldStacks
(DefaultedList<ItemStack> inventory) protected void
DispenserBlockEntity.setHeldStacks
(DefaultedList<ItemStack> inventory) protected void
HopperBlockEntity.setHeldStacks
(DefaultedList<ItemStack> inventory) protected abstract void
LockableContainerBlockEntity.setHeldStacks
(DefaultedList<ItemStack> inventory) protected void
ShulkerBoxBlockEntity.setHeldStacks
(DefaultedList<ItemStack> inventory) -
Uses of DefaultedList in net.minecraft.client.gui.screen.ingame
Modifier and TypeFieldDescriptionfinal DefaultedList
<ItemStack> CreativeInventoryScreen.CreativeScreenHandler.itemList
-
Uses of DefaultedList in net.minecraft.component.type
Modifier and TypeFieldDescriptionprivate final DefaultedList
<ItemStack> ContainerComponent.stacks
Modifier and TypeMethodDescriptionvoid
ContainerComponent.copyTo
(DefaultedList<ItemStack> stacks) Copies the contents of this component to a list of item stacks. -
Uses of DefaultedList in net.minecraft.entity
Modifier and TypeFieldDescriptionprivate final DefaultedList
<ItemStack> LivingEntity.syncedArmorStacks
private final DefaultedList
<ItemStack> LivingEntity.syncedHandStacks
-
Uses of DefaultedList in net.minecraft.entity.decoration
Modifier and TypeFieldDescriptionprivate final DefaultedList
<ItemStack> ArmorStandEntity.armorItems
private final DefaultedList
<ItemStack> ArmorStandEntity.heldItems
-
Uses of DefaultedList in net.minecraft.entity.mob
Modifier and TypeFieldDescriptionprivate final DefaultedList
<ItemStack> MobEntity.armorItems
private final DefaultedList
<ItemStack> MobEntity.handItems
-
Uses of DefaultedList in net.minecraft.entity.player
Modifier and TypeFieldDescriptionfinal DefaultedList
<ItemStack> PlayerInventory.armor
final DefaultedList
<ItemStack> PlayerInventory.main
final DefaultedList
<ItemStack> PlayerInventory.offHand
Modifier and TypeFieldDescriptionprivate final List
<DefaultedList<ItemStack>> PlayerInventory.combinedInventory
-
Uses of DefaultedList in net.minecraft.entity.vehicle
Modifier and TypeFieldDescriptionprivate DefaultedList
<ItemStack> AbstractChestBoatEntity.inventory
private DefaultedList
<ItemStack> StorageMinecartEntity.inventory
Modifier and TypeMethodDescriptionAbstractChestBoatEntity.getInventory()
StorageMinecartEntity.getInventory()
VehicleInventory.getInventory()
-
Uses of DefaultedList in net.minecraft.inventory
Modifier and TypeFieldDescriptionprivate final DefaultedList
<ItemStack> SimpleInventory.heldStacks
private final DefaultedList
<ItemStack> CraftingInventory.stacks
private final DefaultedList
<ItemStack> CraftingResultInventory.stacks
Modifier and TypeMethodDescriptionstatic void
Inventories.readNbt
(NbtCompound nbt, DefaultedList<ItemStack> stacks, RegistryWrapper.WrapperLookup registries) Readsnbt
and sets the elements ofstacks
accordingly.static NbtCompound
Inventories.writeNbt
(NbtCompound nbt, DefaultedList<ItemStack> stacks, boolean setIfEmpty, RegistryWrapper.WrapperLookup registries) Writes the inventory tonbt
.static NbtCompound
Inventories.writeNbt
(NbtCompound nbt, DefaultedList<ItemStack> stacks, RegistryWrapper.WrapperLookup registries) Writes the inventory tonbt
.ModifierConstructorDescriptionprivate
CraftingInventory
(ScreenHandler handler, int width, int height, DefaultedList<ItemStack> stacks) -
Uses of DefaultedList in net.minecraft.network.packet.s2c.play
ModifierConstructorDescriptionInventoryS2CPacket
(int syncId, int revision, DefaultedList<ItemStack> contents, ItemStack cursorStack) -
Uses of DefaultedList in net.minecraft.recipe
Modifier and TypeFieldDescriptionprivate final DefaultedList
<ItemStack> RecipeCache.CachedRecipe.key
The field for thekey
record component.Modifier and TypeMethodDescriptionstatic DefaultedList
<ItemStack> CraftingRecipe.collectRecipeRemainders
(CraftingRecipeInput input) BannerDuplicateRecipe.getRecipeRemainders
(CraftingRecipeInput input) BookCloningRecipe.getRecipeRemainders
(CraftingRecipeInput input) default DefaultedList
<ItemStack> CraftingRecipe.getRecipeRemainders
(CraftingRecipeInput input) RecipeCache.CachedRecipe.key()
Returns the value of thekey
record component.ModifierConstructorDescription(package private)
CachedRecipe
(DefaultedList<ItemStack> defaultedList, int int2, int int3, @Nullable RecipeEntry<CraftingRecipe> recipeEntry) -
Uses of DefaultedList in net.minecraft.screen
Modifier and TypeFieldDescriptionprivate final DefaultedList
<ItemStack> ScreenHandler.previousTrackedStacks
final DefaultedList
<Slot> ScreenHandler.slots
private final DefaultedList
<ItemStack> ScreenHandler.trackedStacks
A list of item stacks that is used for tracking changes inScreenHandler.sendContentUpdates()
.Modifier and TypeMethodDescriptionScreenHandler.getStacks()
Returns a list of all stacks of the screen handler's slot.Modifier and TypeMethodDescriptionvoid
ScreenHandlerSyncHandler.updateState
(ScreenHandler handler, DefaultedList<ItemStack> stacks, ItemStack cursorStack, int[] properties) -
Uses of DefaultedList in net.minecraft.screen.slot
Modifier and TypeMethodDescriptionprivate static DefaultedList
<ItemStack> CraftingResultSlot.copyInput
(CraftingRecipeInput input) private DefaultedList
<ItemStack> CraftingResultSlot.getRecipeRemainders
(CraftingRecipeInput input, World world) -
Uses of DefaultedList in net.minecraft.util
Modifier and TypeMethodDescriptionstatic void
ItemScatterer.spawn
(World world, BlockPos pos, DefaultedList<ItemStack> stacks) Spawns item entities fromstacks
aroundpos
. -
Uses of DefaultedList in net.minecraft.util.collection
Modifier and TypeMethodDescriptionstatic <E> DefaultedList
<E> DefaultedList.copyOf
(E defaultValue, E[] values) static <E> DefaultedList
<E> DefaultedList.of()
static <E> DefaultedList
<E> DefaultedList.ofSize
(int size) static <E> DefaultedList
<E> DefaultedList.ofSize
(int size, E defaultValue) -
Uses of DefaultedList in net.minecraft.village
Modifier and TypeFieldDescriptionprivate final DefaultedList
<ItemStack> MerchantInventory.inventory