Uses of Class
net.minecraft.core.NonNullList
Packages that use NonNullList
Package
Description
-
Uses of NonNullList in net.minecraft.client.gui.screens.inventory
Fields in net.minecraft.client.gui.screens.inventory declared as NonNullListModifier and TypeFieldDescriptionfinal NonNullList
<ItemStack> CreativeModeInventoryScreen.ItemPickerMenu.items
The list of items in this container. -
Uses of NonNullList in net.minecraft.core
Methods in net.minecraft.core that return NonNullListModifier and TypeMethodDescriptionstatic <E> NonNullList
<E> NonNullList.copyOf
(Collection<? extends E> entries) Neo: utility method to construct an immutable NonNullList from a given collectionstatic <E> NonNullList
<E> NonNullList.create()
static <E> NonNullList
<E> NonNullList.createWithCapacity
(int pInitialCapacity) static <E> NonNullList
<E> NonNullList.of
(E pDefaultValue, E... pElements) static <E> NonNullList
<E> NonNullList.withSize
(int pSize, E pDefaultValue) Creates a new NonNullList with fixed size and default value.Methods in net.minecraft.core that return types with arguments of type NonNullListModifier and TypeMethodDescriptionstatic <E> com.mojang.serialization.Codec
<NonNullList<E>> NonNullList.codecOf
(com.mojang.serialization.Codec<E> entryCodec) Neo: utility method to construct a Codec for a NonNullList -
Uses of NonNullList in net.minecraft.data.recipes
Fields in net.minecraft.data.recipes declared as NonNullListModifier and TypeFieldDescriptionprivate final NonNullList
<Ingredient> ShapelessRecipeBuilder.ingredients
-
Uses of NonNullList in net.minecraft.network.protocol.game
Constructors in net.minecraft.network.protocol.game with parameters of type NonNullListModifierConstructorDescriptionClientboundContainerSetContentPacket
(int pContainerId, int pStateId, NonNullList<ItemStack> pItems, ItemStack pCarriedItem) -
Uses of NonNullList in net.minecraft.world
Fields in net.minecraft.world declared as NonNullListMethods in net.minecraft.world that return NonNullListMethods in net.minecraft.world with parameters of type NonNullListModifier and TypeMethodDescriptionstatic void
Containers.dropContents
(Level pLevel, BlockPos pPos, NonNullList<ItemStack> pStackList) static void
ContainerHelper.loadAllItems
(CompoundTag pTag, NonNullList<ItemStack> pItems, HolderLookup.Provider pLevelRegistry) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag pTag, NonNullList<ItemStack> pItems, boolean pAlwaysPutTag, HolderLookup.Provider pLevelRegistry) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag pTag, NonNullList<ItemStack> pItems, HolderLookup.Provider pLevelRegistry) -
Uses of NonNullList in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as NonNullListModifier and TypeFieldDescriptionprivate final NonNullList
<ItemStack> Mob.armorItems
private final NonNullList
<ItemStack> Mob.handItems
private final NonNullList
<ItemStack> LivingEntity.lastArmorItemStacks
private final NonNullList
<ItemStack> LivingEntity.lastHandItemStacks
-
Uses of NonNullList in net.minecraft.world.entity.decoration
Fields in net.minecraft.world.entity.decoration declared as NonNullListModifier and TypeFieldDescriptionprivate final NonNullList
<ItemStack> ArmorStand.armorItems
private final NonNullList
<ItemStack> ArmorStand.handItems
-
Uses of NonNullList in net.minecraft.world.entity.player
Fields in net.minecraft.world.entity.player declared as NonNullListModifier and TypeFieldDescriptionfinal NonNullList
<ItemStack> Inventory.armor
final NonNullList
<ItemStack> Inventory.items
final NonNullList
<ItemStack> Inventory.offhand
Fields in net.minecraft.world.entity.player with type parameters of type NonNullListModifier and TypeFieldDescriptionprivate final List
<NonNullList<ItemStack>> Inventory.compartments
-
Uses of NonNullList in net.minecraft.world.entity.vehicle
Fields in net.minecraft.world.entity.vehicle declared as NonNullListModifier and TypeFieldDescriptionprivate NonNullList
<ItemStack> AbstractMinecartContainer.itemStacks
private NonNullList
<ItemStack> ChestBoat.itemStacks
Methods in net.minecraft.world.entity.vehicle that return NonNullListModifier and TypeMethodDescriptionAbstractMinecartContainer.getItemStacks()
ChestBoat.getItemStacks()
ContainerEntity.getItemStacks()
-
Uses of NonNullList in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory declared as NonNullListModifier and TypeFieldDescriptionprivate final NonNullList
<ItemStack> TransientCraftingContainer.items
private final NonNullList
<ItemStack> MerchantContainer.itemStacks
private final NonNullList
<ItemStack> ResultContainer.itemStacks
private final NonNullList
<ItemStack> AbstractContainerMenu.lastSlots
private final NonNullList
<ItemStack> AbstractContainerMenu.remoteSlots
final NonNullList
<Slot> AbstractContainerMenu.slots
Methods in net.minecraft.world.inventory that return NonNullListMethods in net.minecraft.world.inventory with parameters of type NonNullListModifier and TypeMethodDescriptionvoid
ContainerSynchronizer.sendInitialData
(AbstractContainerMenu pContainer, NonNullList<ItemStack> pItems, ItemStack pCarriedItem, int[] pInitialData) Constructors in net.minecraft.world.inventory with parameters of type NonNullListModifierConstructorDescriptionTransientCraftingContainer
(AbstractContainerMenu pMenu, int pWidth, int pHeight, NonNullList<ItemStack> pItems) -
Uses of NonNullList in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as NonNullListModifier and TypeFieldDescriptionprivate final NonNullList
<ItemStack> ItemContainerContents.items
Methods in net.minecraft.world.item.component with parameters of type NonNullListModifier and TypeMethodDescriptionvoid
ItemContainerContents.copyInto
(NonNullList<ItemStack> pList) Constructors in net.minecraft.world.item.component with parameters of type NonNullList -
Uses of NonNullList in net.minecraft.world.item.crafting
Fields in net.minecraft.world.item.crafting declared as NonNullListModifier and TypeFieldDescriptionprivate final NonNullList
<Ingredient> ShapedRecipePattern.ingredients
(package private) final NonNullList
<Ingredient> ShapelessRecipe.ingredients
private final NonNullList
<ItemStack> RecipeCache.Entry.key
The field for thekey
record component.Methods in net.minecraft.world.item.crafting that return NonNullListModifier and TypeMethodDescriptionAbstractCookingRecipe.getIngredients()
default NonNullList
<Ingredient> Recipe.getIngredients()
ShapedRecipe.getIngredients()
ShapelessRecipe.getIngredients()
SingleItemRecipe.getIngredients()
BannerDuplicateRecipe.getRemainingItems
(CraftingInput pInput) BookCloningRecipe.getRemainingItems
(CraftingInput pInput) default NonNullList
<ItemStack> Recipe.getRemainingItems
(T pInput) <I extends RecipeInput,
T extends Recipe<I>>
NonNullList<ItemStack> RecipeManager.getRemainingItemsFor
(RecipeType<T> pRecipeType, I pInput, Level pLvel) ShapedRecipePattern.ingredients()
RecipeCache.Entry.key()
Returns the value of thekey
record component.Constructors in net.minecraft.world.item.crafting with parameters of type NonNullListModifierConstructorDescription(package private)
Entry
(NonNullList<ItemStack> key, int width, int height, RecipeHolder<CraftingRecipe> value) Creates an instance of aEntry
record class.ShapedRecipePattern
(int pWidth, int pHeight, NonNullList<Ingredient> pIngredients, Optional<ShapedRecipePattern.Data> pData) ShapelessRecipe
(String pGroup, CraftingBookCategory pCategory, ItemStack pResult, NonNullList<Ingredient> pIngredients) -
Uses of NonNullList in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as NonNullListModifier and TypeFieldDescriptionprotected NonNullList
<ItemStack> AbstractFurnaceBlockEntity.items
private NonNullList
<ItemStack> BarrelBlockEntity.items
private NonNullList
<ItemStack> BrewingStandBlockEntity.items
The items currently placed in the slots of the brewing stand.private final NonNullList
<ItemStack> CampfireBlockEntity.items
private NonNullList
<ItemStack> ChestBlockEntity.items
private final NonNullList
<ItemStack> ChiseledBookShelfBlockEntity.items
private NonNullList
<ItemStack> CrafterBlockEntity.items
private NonNullList
<ItemStack> DispenserBlockEntity.items
private NonNullList
<ItemStack> HopperBlockEntity.items
private NonNullList
<ItemStack> ShulkerBoxBlockEntity.itemStacks
Methods in net.minecraft.world.level.block.entity that return NonNullListModifier and TypeMethodDescriptionprotected NonNullList
<ItemStack> AbstractFurnaceBlockEntity.getItems()
protected NonNullList
<ItemStack> BarrelBlockEntity.getItems()
protected abstract NonNullList
<ItemStack> BaseContainerBlockEntity.getItems()
protected NonNullList
<ItemStack> BrewingStandBlockEntity.getItems()
CampfireBlockEntity.getItems()
protected NonNullList
<ItemStack> ChestBlockEntity.getItems()
CrafterBlockEntity.getItems()
protected NonNullList
<ItemStack> DispenserBlockEntity.getItems()
protected NonNullList
<ItemStack> HopperBlockEntity.getItems()
protected NonNullList
<ItemStack> ShulkerBoxBlockEntity.getItems()
Methods in net.minecraft.world.level.block.entity with parameters of type NonNullListModifier and TypeMethodDescriptionprivate static boolean
AbstractFurnaceBlockEntity.burn
(RegistryAccess pRegistryAccess, RecipeHolder<?> pRecipe, NonNullList<ItemStack> pInventory, int pMaxStackSize, AbstractFurnaceBlockEntity furnace) private static boolean
AbstractFurnaceBlockEntity.canBurn
(RegistryAccess pRegistryAccess, RecipeHolder<?> pRecipe, NonNullList<ItemStack> pInventory, int pMaxStackSize, AbstractFurnaceBlockEntity furnace) private static void
BrewingStandBlockEntity.doBrew
(Level pLevel, BlockPos pPos, NonNullList<ItemStack> pItems) private static boolean
BrewingStandBlockEntity.isBrewable
(PotionBrewing pPotionBrewing, NonNullList<ItemStack> pItems) protected void
AbstractFurnaceBlockEntity.setItems
(NonNullList<ItemStack> pItems) protected void
BarrelBlockEntity.setItems
(NonNullList<ItemStack> pItems) protected abstract void
BaseContainerBlockEntity.setItems
(NonNullList<ItemStack> pItems) protected void
BrewingStandBlockEntity.setItems
(NonNullList<ItemStack> pItems) protected void
ChestBlockEntity.setItems
(NonNullList<ItemStack> pItems) protected void
CrafterBlockEntity.setItems
(NonNullList<ItemStack> pItems) protected void
DispenserBlockEntity.setItems
(NonNullList<ItemStack> pItems) protected void
HopperBlockEntity.setItems
(NonNullList<ItemStack> pItems) protected void
ShulkerBoxBlockEntity.setItems
(NonNullList<ItemStack> pItems) -
Uses of NonNullList in net.neoforged.neoforge.debug.crafting
Methods in net.neoforged.neoforge.debug.crafting that return NonNullListModifier and TypeMethodDescriptionprivate static NonNullList
<Ingredient> IngredientTests.CompressedShapelessRecipe.decompressList
(List<SizedIngredient> ingredients) Methods in net.neoforged.neoforge.debug.crafting with parameters of type NonNullListModifier and TypeMethodDescriptionprivate static List
<SizedIngredient> IngredientTests.CompressedShapelessRecipe.compressIngredients
(NonNullList<Ingredient> ingredients) -
Uses of NonNullList in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type NonNullListModifier and TypeMethodDescriptionstatic boolean
EventHooks.onPotionAttemptBrew
(NonNullList<ItemStack> stacks) static void
EventHooks.onPotionBrewed
(NonNullList<ItemStack> brewingItemStacks) -
Uses of NonNullList in net.neoforged.neoforge.event.brewing
Fields in net.neoforged.neoforge.event.brewing declared as NonNullListConstructors in net.neoforged.neoforge.event.brewing with parameters of type NonNullListModifierConstructorDescriptionPost
(NonNullList<ItemStack> stacks) protected
PotionBrewEvent
(NonNullList<ItemStack> stacks) Pre
(NonNullList<ItemStack> stacks) -
Uses of NonNullList in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as NonNullListMethods in net.neoforged.neoforge.event.entity.player that return NonNullListModifier and TypeMethodDescriptionItemFishedEvent.getDrops()
Use this to get the items the player will receive. -
Uses of NonNullList in net.neoforged.neoforge.items
Fields in net.neoforged.neoforge.items declared as NonNullListConstructors in net.neoforged.neoforge.items with parameters of type NonNullList -
Uses of NonNullList in net.neoforged.neoforge.oldtest.recipebook
Fields in net.neoforged.neoforge.oldtest.recipebook declared as NonNullListModifier and TypeFieldDescriptionprivate final NonNullList
<Ingredient> RecipeBookTestRecipe.items
Methods in net.neoforged.neoforge.oldtest.recipebook that return NonNullList