Package net.minecraft.inventory
Interface Inventory
- All Superinterfaces:
Nameable
- All Known Subinterfaces:
HopperProvider,LockableScreenHandlerFactory,SidedInventory
- All Known Implementing Classes:
AnimalInventory,BeaconBlockEntity,BrewingStandBlockEntity,ChestBlockEntity,ChestMinecartEntity,ClientNetworkSyncedInventory,CraftingInventory,CraftingResultInventory,DispenserBlockEntity,DoubleInventory,DropperBlockEntity,EnderChestInventory,FurnaceBlockEntity,HopperBlockEntity,HopperMinecartEntity,InventoryMinecartEntity,LockableContainerBlockEntity,PlayerInventory,SimpleInventory,TraderInventory
public interface Inventory extends Nameable
- Mappings:
Namespace Name official ogintermediary net/minecraft/class_1718named net/minecraft/inventory/Inventory
-
Method Summary
Modifier and Type Method Description booleancanPlayerUseInv(PlayerEntity player)voidclear()intgetInvMaxStackAmount()intgetInvSize()ItemStackgetInvStack(int slot)intgetProperties()intgetProperty(int key)booleanisValidInvStack(int slot, ItemStack stack)voidmarkDirty()voidonInvClose(PlayerEntity player)voidonInvOpen(PlayerEntity player)ItemStackremoveInvStack(int slot)voidsetInvStack(int slot, ItemStack stack)voidsetProperty(int id, int value)ItemStacktakeInvStack(int slot, int amount)Methods inherited from interface net.minecraft.text.Nameable
getName, getTranslationKey, hasCustomName
-
Method Details
-
getInvSize
int getInvSize()- Mappings:
Namespace Name Mixin selector official o_Log;o_()Iintermediary method_6748Lnet/minecraft/class_1718;method_6748()Inamed getInvSizeLnet/minecraft/inventory/Inventory;getInvSize()I
-
getInvStack
- Mappings:
Namespace Name Mixin selector official aLog;a(I)Lzx;intermediary method_6736Lnet/minecraft/class_1718;method_6736(I)Lnet/minecraft/class_2056;named getInvStackLnet/minecraft/inventory/Inventory;getInvStack(I)Lnet/minecraft/item/ItemStack;
-
takeInvStack
- Mappings:
Namespace Name Mixin selector official aLog;a(II)Lzx;intermediary method_6737Lnet/minecraft/class_1718;method_6737(II)Lnet/minecraft/class_2056;named takeInvStackLnet/minecraft/inventory/Inventory;takeInvStack(II)Lnet/minecraft/item/ItemStack;
-
removeInvStack
- Mappings:
Namespace Name Mixin selector official bLog;b(I)Lzx;intermediary method_6741Lnet/minecraft/class_1718;method_6741(I)Lnet/minecraft/class_2056;named removeInvStackLnet/minecraft/inventory/Inventory;removeInvStack(I)Lnet/minecraft/item/ItemStack;
-
setInvStack
- Mappings:
Namespace Name Mixin selector official aLog;a(ILzx;)Vintermediary method_6738Lnet/minecraft/class_1718;method_6738(ILnet/minecraft/class_2056;)Vnamed setInvStackLnet/minecraft/inventory/Inventory;setInvStack(ILnet/minecraft/item/ItemStack;)V
-
getInvMaxStackAmount
int getInvMaxStackAmount()- Mappings:
Namespace Name Mixin selector official q_Log;q_()Iintermediary method_6749Lnet/minecraft/class_1718;method_6749()Inamed getInvMaxStackAmountLnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
-
markDirty
void markDirty()- Mappings:
Namespace Name Mixin selector official p_Log;p_()Vintermediary method_1103Lnet/minecraft/class_1718;method_1103()Vnamed markDirtyLnet/minecraft/inventory/Inventory;markDirty()V
-
canPlayerUseInv
- Mappings:
Namespace Name Mixin selector official aLog;a(Lwn;)Zintermediary method_6739Lnet/minecraft/class_1718;method_6739(Lnet/minecraft/class_1963;)Znamed canPlayerUseInvLnet/minecraft/inventory/Inventory;canPlayerUseInv(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
onInvOpen
- Mappings:
Namespace Name Mixin selector official bLog;b(Lwn;)Vintermediary method_6744Lnet/minecraft/class_1718;method_6744(Lnet/minecraft/class_1963;)Vnamed onInvOpenLnet/minecraft/inventory/Inventory;onInvOpen(Lnet/minecraft/entity/player/PlayerEntity;)V
-
onInvClose
- Mappings:
Namespace Name Mixin selector official cLog;c(Lwn;)Vintermediary method_6745Lnet/minecraft/class_1718;method_6745(Lnet/minecraft/class_1963;)Vnamed onInvCloseLnet/minecraft/inventory/Inventory;onInvClose(Lnet/minecraft/entity/player/PlayerEntity;)V
-
isValidInvStack
- Mappings:
Namespace Name Mixin selector official bLog;b(ILzx;)Zintermediary method_6743Lnet/minecraft/class_1718;method_6743(ILnet/minecraft/class_2056;)Znamed isValidInvStackLnet/minecraft/inventory/Inventory;isValidInvStack(ILnet/minecraft/item/ItemStack;)Z
-
getProperty
int getProperty(int key)- Mappings:
Namespace Name Mixin selector official a_Log;a_(I)Iintermediary method_6740Lnet/minecraft/class_1718;method_6740(I)Inamed getPropertyLnet/minecraft/inventory/Inventory;getProperty(I)I
-
setProperty
void setProperty(int id, int value)- Mappings:
Namespace Name Mixin selector official bLog;b(II)Vintermediary method_6742Lnet/minecraft/class_1718;method_6742(II)Vnamed setPropertyLnet/minecraft/inventory/Inventory;setProperty(II)V
-
getProperties
int getProperties()- Mappings:
Namespace Name Mixin selector official gLog;g()Iintermediary method_6746Lnet/minecraft/class_1718;method_6746()Inamed getPropertiesLnet/minecraft/inventory/Inventory;getProperties()I
-
clear
void clear()- Mappings:
Namespace Name Mixin selector official lLog;l()Vintermediary method_6747Lnet/minecraft/class_1718;method_6747()Vnamed clearLnet/minecraft/inventory/Inventory;clear()V
-