Package net.minecraft.inventory
Interface Inventory
- All Superinterfaces:
Nameable
- All Known Subinterfaces:
HopperProvider,LockableScreenHandlerFactory,SidedInventory
- All Known Implementing Classes:
AnimalInventory,BeaconBlockEntity,BrewingStandBlockEntity,ChestBlockEntity,ChestMinecartEntity,class_2737,class_3746,ClientNetworkSyncedInventory,CraftingInventory,CraftingResultInventory,DispenserBlockEntity,DoubleInventory,DropperBlockEntity,EnderChestInventory,FurnaceBlockEntity,HopperBlockEntity,HopperMinecartEntity,LockableContainerBlockEntity,PlayerInventory,ShulkerBoxBlockEntity,SimpleInventory,StorageMinecartEntity,TraderInventory
- Mappings:
Namespace Name official adeintermediary net/minecraft/class_849named net/minecraft/inventory/Inventory
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlayerUseInv(PlayerEntity player) voidclear()default intintintgetInvStack(int slot) intintgetProperty(int key) booleanisEmpty()booleanisValidInvStack(int slot, ItemStack stack) voiddefault intvoidonInvClose(PlayerEntity player) voidonInvOpen(PlayerEntity player) removeInvStack(int slot) voidsetInvStack(int slot, ItemStack stack) voidsetProperty(int id, int value) takeInvStack(int slot, int amount) Methods inherited from interface net.minecraft.text.Nameable
hasCustomName, method_15540, method_15541, method_6344
-
Method Details
-
getInvSize
int getInvSize()- Mappings:
Namespace Name Mixin selector official T_Lade;T_()Iintermediary method_2388Lnet/minecraft/class_849;method_2388()Inamed getInvSizeLnet/minecraft/inventory/Inventory;getInvSize()I
-
isEmpty
boolean isEmpty()- Mappings:
Namespace Name Mixin selector official P_Lade;P_()Zintermediary method_13922Lnet/minecraft/class_849;method_13922()Znamed isEmptyLnet/minecraft/inventory/Inventory;isEmpty()Z
-
getInvStack
- Mappings:
Namespace Name Mixin selector official aLade;a(I)Late;intermediary method_2381Lnet/minecraft/class_849;method_2381(I)Lnet/minecraft/class_1071;named getInvStackLnet/minecraft/inventory/Inventory;getInvStack(I)Lnet/minecraft/item/ItemStack;
-
takeInvStack
- Mappings:
Namespace Name Mixin selector official aLade;a(II)Late;intermediary method_2382Lnet/minecraft/class_849;method_2382(II)Lnet/minecraft/class_1071;named takeInvStackLnet/minecraft/inventory/Inventory;takeInvStack(II)Lnet/minecraft/item/ItemStack;
-
removeInvStack
- Mappings:
Namespace Name Mixin selector official bLade;b(I)Late;intermediary method_2386Lnet/minecraft/class_849;method_2386(I)Lnet/minecraft/class_1071;named removeInvStackLnet/minecraft/inventory/Inventory;removeInvStack(I)Lnet/minecraft/item/ItemStack;
-
setInvStack
- Mappings:
Namespace Name Mixin selector official aLade;a(ILate;)Vintermediary method_2383Lnet/minecraft/class_849;method_2383(ILnet/minecraft/class_1071;)Vnamed setInvStackLnet/minecraft/inventory/Inventory;setInvStack(ILnet/minecraft/item/ItemStack;)V
-
getInvMaxStackAmount
int getInvMaxStackAmount()- Mappings:
Namespace Name Mixin selector official fLade;f()Iintermediary method_2389Lnet/minecraft/class_849;method_2389()Inamed getInvMaxStackAmountLnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
-
markDirty
void markDirty()- Mappings:
Namespace Name Mixin selector official gLade;g()Vintermediary method_543Lnet/minecraft/class_849;method_543()Vnamed markDirtyLnet/minecraft/inventory/Inventory;markDirty()V
-
canPlayerUseInv
- Mappings:
Namespace Name Mixin selector official aLade;a(Laog;)Zintermediary method_2384Lnet/minecraft/class_849;method_2384(Lnet/minecraft/class_988;)Znamed canPlayerUseInvLnet/minecraft/inventory/Inventory;canPlayerUseInv(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
onInvOpen
- Mappings:
Namespace Name Mixin selector official bLade;b(Laog;)Vintermediary method_10894Lnet/minecraft/class_849;method_10894(Lnet/minecraft/class_988;)Vnamed onInvOpenLnet/minecraft/inventory/Inventory;onInvOpen(Lnet/minecraft/entity/player/PlayerEntity;)V
-
onInvClose
- Mappings:
Namespace Name Mixin selector official cLade;c(Laog;)Vintermediary method_10895Lnet/minecraft/class_849;method_10895(Lnet/minecraft/class_988;)Vnamed onInvCloseLnet/minecraft/inventory/Inventory;onInvClose(Lnet/minecraft/entity/player/PlayerEntity;)V
-
isValidInvStack
- Mappings:
Namespace Name Mixin selector official bLade;b(ILate;)Zintermediary method_5338Lnet/minecraft/class_849;method_5338(ILnet/minecraft/class_1071;)Znamed isValidInvStackLnet/minecraft/inventory/Inventory;isValidInvStack(ILnet/minecraft/item/ItemStack;)Z
-
getProperty
int getProperty(int key) - Mappings:
Namespace Name Mixin selector official cLade;c(I)Iintermediary method_10892Lnet/minecraft/class_849;method_10892(I)Inamed getPropertyLnet/minecraft/inventory/Inventory;getProperty(I)I
-
setProperty
void setProperty(int id, int value) - Mappings:
Namespace Name Mixin selector official bLade;b(II)Vintermediary method_10893Lnet/minecraft/class_849;method_10893(II)Vnamed setPropertyLnet/minecraft/inventory/Inventory;setProperty(II)V
-
getProperties
int getProperties()- Mappings:
Namespace Name Mixin selector official hLade;h()Iintermediary method_10896Lnet/minecraft/class_849;method_10896()Inamed getPropertiesLnet/minecraft/inventory/Inventory;getProperties()I
-
clear
void clear()- Mappings:
Namespace Name Mixin selector official mLade;m()Vintermediary method_10897Lnet/minecraft/class_849;method_10897()Vnamed clearLnet/minecraft/inventory/Inventory;clear()V
-
getHeight
default int getHeight() -
method_11260
default int method_11260()- Mappings:
Namespace Name Mixin selector official U_Lade;U_()Iintermediary method_11260Lnet/minecraft/class_849;method_11260()Inamed method_11260Lnet/minecraft/inventory/Inventory;method_11260()I
-