Class ItemContainerContents
java.lang.Object
net.minecraft.world.item.component.ItemContainerContents
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ItemContainerContents> static final ItemContainerContents
private final int
private final NonNullList
<ItemStack> private static final int
private static final int
static final StreamCodec
<RegistryFriendlyByteBuf, ItemContainerContents> -
Constructor Summary
ModifierConstructorDescriptionprivate
ItemContainerContents
(int p_336350_) private
ItemContainerContents
(List<ItemStack> p_332487_) private
ItemContainerContents
(NonNullList<ItemStack> p_334672_) -
Method Summary
Modifier and TypeMethodDescriptionprivate List
<ItemContainerContents.Slot> asSlots()
void
copyInto
(NonNullList<ItemStack> p_333460_) copyOne()
boolean
private static int
findLastNonEmptySlot
(List<ItemStack> p_332919_) static ItemContainerContents
private static ItemContainerContents
fromSlots
(List<ItemContainerContents.Slot> p_334537_) int
hashCode()
stream()
-
Field Details
-
NO_SLOT
private static final int NO_SLOT- See Also:
-
MAX_SIZE
private static final int MAX_SIZE- See Also:
-
EMPTY
-
CODEC
-
STREAM_CODEC
-
items
-
hashCode
private final int hashCode
-
-
Constructor Details
-
ItemContainerContents
-
ItemContainerContents
private ItemContainerContents(int p_336350_) -
ItemContainerContents
-
-
Method Details