Uses of Class
net.minecraft.util.collection.DefaultedList
Packages that use DefaultedList
Package
Description
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of DefaultedList in net.minecraft.block.entity
Fields in net.minecraft.block.entity declared as DefaultedListModifier 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
Methods in net.minecraft.block.entity that return DefaultedListModifier 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()
Methods in net.minecraft.block.entity with parameters of type DefaultedListModifier and TypeMethodDescriptionprivate static boolean
AbstractFurnaceBlockEntity.canAcceptRecipeOutput
(DynamicRegistryManager registryManager, @Nullable RecipeEntry<?> recipe, DefaultedList<ItemStack> slots, int count) 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 registryManager, @Nullable RecipeEntry<?> recipe, DefaultedList<ItemStack> slots, int count) 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
Fields in net.minecraft.client.gui.screen.ingame declared as DefaultedListModifier and TypeFieldDescriptionfinal DefaultedList
<ItemStack> CreativeInventoryScreen.CreativeScreenHandler.itemList
-
Uses of DefaultedList in net.minecraft.component.type
Fields in net.minecraft.component.type declared as DefaultedListModifier and TypeFieldDescriptionprivate final DefaultedList
<ItemStack> ContainerComponent.stacks
Methods in net.minecraft.component.type with parameters of type DefaultedListModifier and TypeMethodDescriptionvoid
ContainerComponent.copyTo
(DefaultedList<ItemStack> stacks) Constructors in net.minecraft.component.type with parameters of type DefaultedList -
Uses of DefaultedList in net.minecraft.data.server.recipe
Fields in net.minecraft.data.server.recipe declared as DefaultedListModifier and TypeFieldDescriptionprivate final DefaultedList
<Ingredient> ShapelessRecipeJsonBuilder.inputs
-
Uses of DefaultedList in net.minecraft.entity
Fields in net.minecraft.entity declared as DefaultedListModifier and TypeFieldDescriptionprivate final DefaultedList
<ItemStack> LivingEntity.syncedArmorStacks
private final DefaultedList
<ItemStack> LivingEntity.syncedHandStacks
-
Uses of DefaultedList in net.minecraft.entity.decoration
Fields in net.minecraft.entity.decoration declared as DefaultedListModifier and TypeFieldDescriptionprivate final DefaultedList
<ItemStack> ArmorStandEntity.armorItems
private final DefaultedList
<ItemStack> ArmorStandEntity.heldItems
-
Uses of DefaultedList in net.minecraft.entity.mob
Fields in net.minecraft.entity.mob declared as DefaultedListModifier and TypeFieldDescriptionprivate final DefaultedList
<ItemStack> MobEntity.armorItems
private final DefaultedList
<ItemStack> MobEntity.handItems
-
Uses of DefaultedList in net.minecraft.entity.player
Fields in net.minecraft.entity.player declared as DefaultedListModifier and TypeFieldDescriptionfinal DefaultedList
<ItemStack> PlayerInventory.armor
final DefaultedList
<ItemStack> PlayerInventory.main
final DefaultedList
<ItemStack> PlayerInventory.offHand
Fields in net.minecraft.entity.player with type parameters of type DefaultedListModifier and TypeFieldDescriptionprivate final List
<DefaultedList<ItemStack>> PlayerInventory.combinedInventory
-
Uses of DefaultedList in net.minecraft.entity.vehicle
Fields in net.minecraft.entity.vehicle declared as DefaultedListModifier and TypeFieldDescriptionprivate DefaultedList
<ItemStack> ChestBoatEntity.inventory
private DefaultedList
<ItemStack> StorageMinecartEntity.inventory
Methods in net.minecraft.entity.vehicle that return DefaultedListModifier and TypeMethodDescriptionChestBoatEntity.getInventory()
StorageMinecartEntity.getInventory()
VehicleInventory.getInventory()
-
Uses of DefaultedList in net.minecraft.inventory
Fields in net.minecraft.inventory declared as DefaultedListModifier and TypeFieldDescriptionprivate final DefaultedList
<ItemStack> SimpleInventory.heldStacks
private final DefaultedList
<ItemStack> CraftingInventory.stacks
private final DefaultedList
<ItemStack> CraftingResultInventory.stacks
Methods in net.minecraft.inventory that return DefaultedListMethods in net.minecraft.inventory with parameters of type DefaultedListModifier 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
.Constructors in net.minecraft.inventory with parameters of type DefaultedListModifierConstructorDescriptionCraftingInventory
(ScreenHandler handler, int width, int height, DefaultedList<ItemStack> stacks) -
Uses of DefaultedList in net.minecraft.network.packet.s2c.play
Constructors in net.minecraft.network.packet.s2c.play with parameters of type DefaultedListModifierConstructorDescriptionInventoryS2CPacket
(int syncId, int revision, DefaultedList<ItemStack> contents, ItemStack cursorStack) -
Uses of DefaultedList in net.minecraft.recipe
Fields in net.minecraft.recipe declared as DefaultedListModifier and TypeFieldDescriptionprivate final DefaultedList
<Ingredient> RawShapedRecipe.ingredients
(package private) final DefaultedList
<Ingredient> ShapelessRecipe.ingredients
private final DefaultedList
<ItemStack> RecipeCache.CachedRecipe.key
The field for thekey
record component.Methods in net.minecraft.recipe that return DefaultedListModifier and TypeMethodDescriptionAbstractCookingRecipe.getIngredients()
Returns the ingredients accepted as inputs for this recipe.CuttingRecipe.getIngredients()
Returns the ingredients accepted as inputs for this recipe.RawShapedRecipe.getIngredients()
default DefaultedList
<Ingredient> Recipe.getIngredients()
Returns the ingredients accepted as inputs for this recipe.ShapedRecipe.getIngredients()
Returns the ingredients accepted as inputs for this recipe.ShapelessRecipe.getIngredients()
Returns the ingredients accepted as inputs for this recipe.BannerDuplicateRecipe.getRemainder
(CraftingRecipeInput craftingRecipeInput) BookCloningRecipe.getRemainder
(CraftingRecipeInput craftingRecipeInput) default DefaultedList
<ItemStack> Recipe.getRemainder
(T input) Returns the remaining stacks to be left in theinventory
after the recipe is used.<I extends RecipeInput,
T extends Recipe<I>>
DefaultedList<ItemStack> RecipeManager.getRemainingStacks
(RecipeType<T> type, I input, World world) Returns the remainder of a recipe of the giventype
that match the giveninventory
andworld
, or a shallow copy of theinventory
.RecipeCache.CachedRecipe.key()
Returns the value of thekey
record component.Constructors in net.minecraft.recipe with parameters of type DefaultedListModifierConstructorDescription(package private)
CachedRecipe
(DefaultedList<ItemStack> defaultedList, int int2, int int3, @Nullable RecipeEntry<CraftingRecipe> recipeEntry) RawShapedRecipe
(int width, int height, DefaultedList<Ingredient> ingredients, Optional<RawShapedRecipe.Data> data) ShapelessRecipe
(String group, CraftingRecipeCategory category, ItemStack result, DefaultedList<Ingredient> ingredients) -
Uses of DefaultedList in net.minecraft.screen
Fields in net.minecraft.screen declared as DefaultedListModifier 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()
.Methods in net.minecraft.screen that return DefaultedListModifier and TypeMethodDescriptionScreenHandler.getStacks()
Returns a list of all stacks of the screen handler's slot.Methods in net.minecraft.screen with parameters of type DefaultedListModifier and TypeMethodDescriptionvoid
ScreenHandlerSyncHandler.updateState
(ScreenHandler handler, DefaultedList<ItemStack> stacks, ItemStack cursorStack, int[] properties) -
Uses of DefaultedList in net.minecraft.util
Methods in net.minecraft.util with parameters of type DefaultedListModifier 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
Methods in net.minecraft.util.collection that return DefaultedListModifier 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
Fields in net.minecraft.village declared as DefaultedListModifier and TypeFieldDescriptionprivate final DefaultedList
<ItemStack> MerchantInventory.inventory