Uses of Class
net.minecraft.core.NonNullList
Package
Description
-
Uses of NonNullList in net.minecraft.client.gui.screens.inventory
Modifier and TypeFieldDescriptionfinal NonNullList<ItemStack>
CreativeModeInventoryScreen.ItemPickerMenu.items
-
Uses of NonNullList in net.minecraft.client.gui.screens.inventory.tooltip
-
Uses of NonNullList in net.minecraft.client.player.inventory
-
Uses of NonNullList in net.minecraft.core
Modifier 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 p_182648_) static <E> NonNullList<E>
NonNullList.of
(E p_122784_, E... p_122785_) static <E> NonNullList<E>
NonNullList.withSize
(int p_122781_, E p_122782_) Modifier 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
Modifier and TypeFieldDescriptionprivate final NonNullList<Ingredient>
ShapelessRecipeBuilder.ingredients
-
Uses of NonNullList in net.minecraft.network.protocol.game
ModifierConstructorDescriptionClientboundContainerSetContentPacket
(int p_182704_, int p_182705_, NonNullList<ItemStack> p_182706_, ItemStack p_182707_) -
Uses of NonNullList in net.minecraft.world
Modifier and TypeMethodDescriptionstatic void
Containers.dropContents
(Level p_19011_, BlockPos p_19012_, NonNullList<ItemStack> p_19013_) static void
ContainerHelper.loadAllItems
(CompoundTag p_18981_, NonNullList<ItemStack> p_18982_) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag p_18974_, NonNullList<ItemStack> p_18975_) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag p_18977_, NonNullList<ItemStack> p_18978_, boolean p_18979_) -
Uses of NonNullList in net.minecraft.world.entity
Modifier 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
Modifier and TypeFieldDescriptionprivate final NonNullList<ItemStack>
ArmorStand.armorItems
private final NonNullList<ItemStack>
ArmorStand.handItems
-
Uses of NonNullList in net.minecraft.world.entity.player
Modifier and TypeFieldDescriptionfinal NonNullList<ItemStack>
Inventory.armor
final NonNullList<ItemStack>
Inventory.items
final NonNullList<ItemStack>
Inventory.offhand
Modifier and TypeFieldDescriptionprivate final List<NonNullList<ItemStack>>
Inventory.compartments
-
Uses of NonNullList in net.minecraft.world.entity.vehicle
Modifier and TypeFieldDescriptionprivate NonNullList<ItemStack>
AbstractMinecartContainer.itemStacks
private NonNullList<ItemStack>
ChestBoat.itemStacks
Modifier and TypeMethodDescriptionAbstractMinecartContainer.getItemStacks()
ChestBoat.getItemStacks()
ContainerEntity.getItemStacks()
-
Uses of NonNullList in net.minecraft.world.inventory
Modifier 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
Modifier and TypeMethodDescriptionvoid
ContainerSynchronizer.sendInitialData
(AbstractContainerMenu p_150535_, NonNullList<ItemStack> p_150536_, ItemStack p_150537_, int[] p_150538_) ModifierConstructorDescriptionTransientCraftingContainer
(AbstractContainerMenu p_287708_, int p_287591_, int p_287609_, NonNullList<ItemStack> p_287695_) -
Uses of NonNullList in net.minecraft.world.inventory.tooltip
-
Uses of NonNullList in net.minecraft.world.item.crafting
Modifier and TypeFieldDescriptionprivate final NonNullList<Ingredient>
ShapedRecipePattern.ingredients
The field for theingredients
record component.(package private) final NonNullList<Ingredient>
ShapelessRecipe.ingredients
private final NonNullList<ItemStack>
RecipeCache.Entry.key
The field for thekey
record component.Modifier and TypeMethodDescriptionAbstractCookingRecipe.getIngredients()
default NonNullList<Ingredient>
Recipe.getIngredients()
ShapedRecipe.getIngredients()
ShapelessRecipe.getIngredients()
SingleItemRecipe.getIngredients()
BannerDuplicateRecipe.getRemainingItems
(CraftingContainer p_43791_) BookCloningRecipe.getRemainingItems
(CraftingContainer p_43820_) default NonNullList<ItemStack>
Recipe.getRemainingItems
(C p_44004_) <C extends Container,
T extends Recipe<C>>
NonNullList<ItemStack>RecipeManager.getRemainingItemsFor
(RecipeType<T> p_44070_, C p_44071_, Level p_44072_) ShapedRecipePattern.ingredients()
Returns the value of theingredients
record component.RecipeCache.Entry.key()
Returns the value of thekey
record component.ModifierConstructorDescription(package private)
Entry
(NonNullList<ItemStack> key, CraftingRecipe value) Creates an instance of aEntry
record class.ShapedRecipePattern
(int width, int height, NonNullList<Ingredient> ingredients, Optional<ShapedRecipePattern.Data> data) Creates an instance of aShapedRecipePattern
record class.ShapelessRecipe
(String p_249640_, CraftingBookCategory p_249390_, ItemStack p_252071_, NonNullList<Ingredient> p_250689_) -
Uses of NonNullList in net.minecraft.world.level.block.entity
Modifier and TypeFieldDescriptionprotected NonNullList<ItemStack>
AbstractFurnaceBlockEntity.items
private NonNullList<ItemStack>
BarrelBlockEntity.items
private NonNullList<ItemStack>
BrewingStandBlockEntity.items
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
Modifier and TypeMethodDescriptionprotected NonNullList<ItemStack>
BarrelBlockEntity.getItems()
CampfireBlockEntity.getItems()
protected NonNullList<ItemStack>
ChestBlockEntity.getItems()
CrafterBlockEntity.getItems()
protected NonNullList<ItemStack>
DispenserBlockEntity.getItems()
protected NonNullList<ItemStack>
HopperBlockEntity.getItems()
protected abstract NonNullList<ItemStack>
RandomizableContainerBlockEntity.getItems()
protected NonNullList<ItemStack>
ShulkerBoxBlockEntity.getItems()
Modifier and TypeMethodDescriptionprivate boolean
AbstractFurnaceBlockEntity.burn
(RegistryAccess p_266740_, RecipeHolder<?> p_300910_, NonNullList<ItemStack> p_267073_, int p_267157_) private boolean
AbstractFurnaceBlockEntity.canBurn
(RegistryAccess p_266924_, RecipeHolder<?> p_301107_, NonNullList<ItemStack> p_155007_, int p_155008_) private static void
BrewingStandBlockEntity.doBrew
(Level p_155291_, BlockPos p_155292_, NonNullList<ItemStack> p_155293_) private static boolean
BrewingStandBlockEntity.isBrewable
(NonNullList<ItemStack> p_155295_) protected void
BarrelBlockEntity.setItems
(NonNullList<ItemStack> p_58610_) protected void
ChestBlockEntity.setItems
(NonNullList<ItemStack> p_59110_) protected void
CrafterBlockEntity.setItems
(NonNullList<ItemStack> p_307392_) protected void
DispenserBlockEntity.setItems
(NonNullList<ItemStack> p_59243_) protected void
HopperBlockEntity.setItems
(NonNullList<ItemStack> p_59371_) protected abstract void
RandomizableContainerBlockEntity.setItems
(NonNullList<ItemStack> p_59625_) protected void
ShulkerBoxBlockEntity.setItems
(NonNullList<ItemStack> p_59674_) -
Uses of NonNullList in net.neoforged.neoforge.common.brewing
Modifier and TypeMethodDescriptionstatic void
BrewingRecipeRegistry.brewPotions
(NonNullList<ItemStack> inputs, ItemStack ingredient, int[] inputIndexes) Used by the brewing stand to brew its inventory Extra parameters exist to allow modders to create bigger brewing stands without much hasslestatic boolean
BrewingRecipeRegistry.canBrew
(NonNullList<ItemStack> inputs, ItemStack ingredient, int[] inputIndexes) Used by the brewing stand to determine if its contents can be brewed. -
Uses of NonNullList in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionstatic boolean
EventHooks.onPotionAttemptBrew
(NonNullList<ItemStack> stacks) static void
EventHooks.onPotionBrewed
(NonNullList<ItemStack> brewingItemStacks) -
Uses of NonNullList in net.neoforged.neoforge.event.brewing
ModifierConstructorDescriptionPost
(NonNullList<ItemStack> stacks) protected
PotionBrewEvent
(NonNullList<ItemStack> stacks) Pre
(NonNullList<ItemStack> stacks) -
Uses of NonNullList in net.neoforged.neoforge.event.entity.player
Modifier and TypeMethodDescriptionItemFishedEvent.getDrops()
Use this to get the items the player will receive. -
Uses of NonNullList in net.neoforged.neoforge.items
-
Uses of NonNullList in net.neoforged.neoforge.items.wrapper
Modifier and TypeFieldDescriptionprivate NonNullList<ItemStack>
ShulkerItemStackInvWrapper.itemStacksCache
Modifier and TypeMethodDescriptionprivate NonNullList<ItemStack>
ShulkerItemStackInvWrapper.getItemList()
private NonNullList<ItemStack>
ShulkerItemStackInvWrapper.refreshItemList
(CompoundTag rootTag) Modifier and TypeMethodDescriptionprivate void
ShulkerItemStackInvWrapper.setItemList
(NonNullList<ItemStack> itemStacks) -
Uses of NonNullList in net.neoforged.neoforge.oldtest.recipebook
Modifier and TypeFieldDescriptionprivate final NonNullList<Ingredient>
RecipeBookTestRecipe.items