Class PlayerInventory1_20
java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped<I>
mods.thecomputerizer.theimpossiblelibrary.api.common.container.InventoryAPI<I>
mods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<net.minecraft.world.entity.player.Inventory>
mods.thecomputerizer.theimpossiblelibrary.shared.v20.common.container.PlayerInventory1_20
- All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor,mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped<net.minecraft.world.entity.player.Inventory>
public class PlayerInventory1_20
extends mods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<net.minecraft.world.entity.player.Inventory>
-
Field Summary
Fields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped
wrappedFields inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor
BOOLEAN_VALUES, FABRIC, FORGE, FORGE_OR_NEOFORGE, GAME_VERSION, JAVA_17, JAVA_21, JAVA_8, JAVA_MODULES, JAVA_VERSION, JAVA_VERSION_ASM, LEGACY, MOD_LOADER, NAMED_ENV, NEOFORGE, SRG_ENV, V12, V16, V16_OR_EARLIER, V16_OR_LATER, V18, V18_OR_EARLIER, V18_OR_LATER, V19, V19_2_OR_EARLIER, V19_4_OR_LATER, V19_OR_EARLIER, V19_OR_LATER, V20, V20_4_OR_EARLIER, V20_6_OR_LATER, V20_OR_EARLIER, V20_OR_LATER, V21, V21_OR_LATER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>>Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>>Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>>Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>>intgetSlots()mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>getStack(int slot) booleanisEmpty()voidsetStack(mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?> stack, int slot) Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI
getStacksMethods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.common.container.InventoryAPI
hasItem, hasStack, isNotEmpty, isSlotEmpty, isSlotNotEmptyMethods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped
equals, getWrapped, getWrappedClass, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped
getIfNotNull, getIfNotNullOrDefault, getIfNotNullOrDefault, isNull, isNullGetter, notNull, notNullGetter, supplyIfNull, unwrap, wrapIfNotNull, wrapIfNotNullOrDefault, wrapIfNotNullOrDefault
-
Constructor Details
-
PlayerInventory1_20
-
-
Method Details
-
getArmorStacks
public Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>> getArmorStacks()- Specified by:
getArmorStacksin classmods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<net.minecraft.world.entity.player.Inventory>
-
getHotbarStacks
public Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>> getHotbarStacks()- Specified by:
getHotbarStacksin classmods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<net.minecraft.world.entity.player.Inventory>
-
getMainStacks
public Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>> getMainStacks()- Specified by:
getMainStacksin classmods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<net.minecraft.world.entity.player.Inventory>
-
getOffHandStacks
public Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>> getOffHandStacks()- Specified by:
getOffHandStacksin classmods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<net.minecraft.world.entity.player.Inventory>
-
getStack
public mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?> getStack(int slot) - Specified by:
getStackin classmods.thecomputerizer.theimpossiblelibrary.api.common.container.InventoryAPI<net.minecraft.world.entity.player.Inventory>
-
getSlots
public int getSlots()- Specified by:
getSlotsin classmods.thecomputerizer.theimpossiblelibrary.api.common.container.InventoryAPI<net.minecraft.world.entity.player.Inventory>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classmods.thecomputerizer.theimpossiblelibrary.api.common.container.InventoryAPI<net.minecraft.world.entity.player.Inventory>
-
setStack
public void setStack(mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?> stack, int slot) - Specified by:
setStackin classmods.thecomputerizer.theimpossiblelibrary.api.common.container.InventoryAPI<net.minecraft.world.entity.player.Inventory>
-