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.inputStacksprotected DefaultedList<ItemStack> AbstractFurnaceBlockEntity.inventoryprivate DefaultedList<ItemStack> BarrelBlockEntity.inventoryprivate DefaultedList<ItemStack> BrewingStandBlockEntity.inventoryprivate DefaultedList<ItemStack> ChestBlockEntity.inventoryprivate final DefaultedList<ItemStack> ChiseledBookshelfBlockEntity.inventoryprivate DefaultedList<ItemStack> DispenserBlockEntity.inventoryprivate DefaultedList<ItemStack> HopperBlockEntity.inventoryprivate DefaultedList<ItemStack> ShulkerBoxBlockEntity.inventoryprivate final DefaultedList<ItemStack> CampfireBlockEntity.itemsBeingCookedMethods 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 booleanAbstractFurnaceBlockEntity.canAcceptRecipeOutput(DynamicRegistryManager dynamicRegistryManager, @Nullable RecipeEntry<? extends AbstractCookingRecipe> recipe, SingleStackRecipeInput input, DefaultedList<ItemStack> inventory, int maxCount) private static booleanBrewingStandBlockEntity.canCraft(BrewingRecipeRegistry brewingRecipeRegistry, DefaultedList<ItemStack> slots) private static voidBrewingStandBlockEntity.craft(World world, BlockPos pos, DefaultedList<ItemStack> slots) private static booleanAbstractFurnaceBlockEntity.craftRecipe(DynamicRegistryManager dynamicRegistryManager, @Nullable RecipeEntry<? extends AbstractCookingRecipe> recipe, SingleStackRecipeInput input, DefaultedList<ItemStack> inventory, int maxCount) protected voidAbstractFurnaceBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected voidBarrelBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected voidBrewingStandBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected voidChestBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected voidCrafterBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected voidDispenserBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected voidHopperBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected abstract voidLockableContainerBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected voidShulkerBoxBlockEntity.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.stacksMethods in net.minecraft.component.type with parameters of type DefaultedListModifier and TypeMethodDescriptionvoidContainerComponent.copyTo(DefaultedList<ItemStack> stacks) Copies the contents of this component to a list of item stacks.Constructors in net.minecraft.component.type with parameters of type DefaultedList -
Uses of DefaultedList in net.minecraft.entity.player
Fields in net.minecraft.entity.player declared as DefaultedListMethods in net.minecraft.entity.player that return DefaultedList -
Uses of DefaultedList in net.minecraft.entity.vehicle
Fields in net.minecraft.entity.vehicle declared as DefaultedListModifier and TypeFieldDescriptionprivate DefaultedList<ItemStack> AbstractChestBoatEntity.inventoryprivate DefaultedList<ItemStack> StorageMinecartEntity.inventoryMethods in net.minecraft.entity.vehicle that return DefaultedListModifier and TypeMethodDescriptionAbstractChestBoatEntity.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.heldStacksprivate final DefaultedList<ItemStack> CraftingInventory.stacksprivate final DefaultedList<ItemStack> CraftingResultInventory.stacksMethods in net.minecraft.inventory that return DefaultedListMethods in net.minecraft.inventory with parameters of type DefaultedListModifier and TypeMethodDescriptionstatic voidInventories.readNbt(NbtCompound nbt, DefaultedList<ItemStack> stacks, RegistryWrapper.WrapperLookup registries) Readsnbtand sets the elements ofstacksaccordingly.static NbtCompoundInventories.writeNbt(NbtCompound nbt, DefaultedList<ItemStack> stacks, boolean setIfEmpty, RegistryWrapper.WrapperLookup registries) Writes the inventory tonbt.static NbtCompoundInventories.writeNbt(NbtCompound nbt, DefaultedList<ItemStack> stacks, RegistryWrapper.WrapperLookup registries) Writes the inventory tonbt.Constructors in net.minecraft.inventory with parameters of type DefaultedListModifierConstructorDescriptionprivateCraftingInventory(ScreenHandler handler, int width, int height, DefaultedList<ItemStack> stacks) -
Uses of DefaultedList in net.minecraft.recipe
Fields in net.minecraft.recipe declared as DefaultedListModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack> RecipeCache.CachedRecipe.keyThe field for thekeyrecord component.Methods in net.minecraft.recipe that return DefaultedListModifier 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 thekeyrecord 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) -
Uses of DefaultedList in net.minecraft.screen
Fields in net.minecraft.screen declared as DefaultedListModifier and TypeFieldDescriptionfinal DefaultedList<Slot> ScreenHandler.slotsprivate final DefaultedList<TrackedSlot> ScreenHandler.trackedSlotsprivate final DefaultedList<ItemStack> ScreenHandler.trackedStacksA 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. -
Uses of DefaultedList in net.minecraft.screen.slot
Methods in net.minecraft.screen.slot that return DefaultedListModifier 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
Methods in net.minecraft.util with parameters of type DefaultedListModifier and TypeMethodDescriptionstatic voidItemScatterer.spawn(World world, BlockPos pos, DefaultedList<ItemStack> stacks) Spawns item entities fromstacksaroundpos. -
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