Package net.minecraft.inventory
Class SimpleInventory
java.lang.Object
net.minecraft.inventory.SimpleInventory
- All Implemented Interfaces:
Inventory
- Direct Known Subclasses:
AnimalInventory,class_1014,class_1422,EnderChestInventory
- Mappings:
Namespace Name official ptintermediary net/minecraft/class_852named net/minecraft/inventory/SimpleInventory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(SimpleInventoryListener listener) booleancanPlayerUseInv(PlayerEntity player) intintgetInvStack(int slot) booleanisValidInvStack(int slot, ItemStack stack) voidvoidvoidbooleanremoveInvStack(int slot) voidremoveListener(SimpleInventoryListener listener) voidsetInvStack(int slot, ItemStack stack) voidtakeInvStack(int slot, int amount)
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector official aLpt;a:Ljava/lang/String;intermediary field_3115Lnet/minecraft/class_852;field_3115:Ljava/lang/String;named nameLnet/minecraft/inventory/SimpleInventory;name:Ljava/lang/String;
-
size
private int size- Mappings:
Namespace Name Mixin selector official bLpt;b:Iintermediary field_3116Lnet/minecraft/class_852;field_3116:Inamed sizeLnet/minecraft/inventory/SimpleInventory;size:I
-
inventory
- Mappings:
Namespace Name Mixin selector official cLpt;c:[Labo;intermediary field_3117Lnet/minecraft/class_852;field_3117:[Lnet/minecraft/class_1071;named inventoryLnet/minecraft/inventory/SimpleInventory;inventory:[Lnet/minecraft/item/ItemStack;
-
listeners
- Mappings:
Namespace Name Mixin selector official dLpt;d:Ljava/util/List;intermediary field_3118Lnet/minecraft/class_852;field_3118:Ljava/util/List;named listenersLnet/minecraft/inventory/SimpleInventory;listeners:Ljava/util/List;
-
hasCustomName
private boolean hasCustomName- Mappings:
Namespace Name Mixin selector official eLpt;e:Zintermediary field_6098Lnet/minecraft/class_852;field_6098:Znamed hasCustomNameLnet/minecraft/inventory/SimpleInventory;hasCustomName:Z
-
-
Constructor Details
-
SimpleInventory
- Mappings:
Namespace Name Mixin selector official <init>Lpt;<init>(Ljava/lang/String;ZI)Vintermediary <init>Lnet/minecraft/class_852;<init>(Ljava/lang/String;ZI)Vnamed <init>Lnet/minecraft/inventory/SimpleInventory;<init>(Ljava/lang/String;ZI)V
-
-
Method Details
-
addListener
- Mappings:
Namespace Name Mixin selector official aLpt;a(Lpo;)Vintermediary method_6072Lnet/minecraft/class_852;method_6072(Lnet/minecraft/class_850;)Vnamed addListenerLnet/minecraft/inventory/SimpleInventory;addListener(Lnet/minecraft/inventory/SimpleInventoryListener;)V
-
removeListener
- Mappings:
Namespace Name Mixin selector official bLpt;b(Lpo;)Vintermediary method_6073Lnet/minecraft/class_852;method_6073(Lnet/minecraft/class_850;)Vnamed removeListenerLnet/minecraft/inventory/SimpleInventory;removeListener(Lnet/minecraft/inventory/SimpleInventoryListener;)V
-
getInvStack
- Specified by:
getInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official aLpn;a(I)Labo;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
- Specified by:
takeInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official aLpn;a(II)Labo;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
- Specified by:
removeInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official a_Lpn;a_(I)Labo;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
- Specified by:
setInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official aLpn;a(ILabo;)Vintermediary method_2383Lnet/minecraft/class_849;method_2383(ILnet/minecraft/class_1071;)Vnamed setInvStackLnet/minecraft/inventory/Inventory;setInvStack(ILnet/minecraft/item/ItemStack;)V
-
getInvSize
public int getInvSize()- Specified by:
getInvSizein interfaceInventory- Mappings:
Namespace Name Mixin selector official aLpn;a()Iintermediary method_2388Lnet/minecraft/class_849;method_2388()Inamed getInvSizeLnet/minecraft/inventory/Inventory;getInvSize()I
-
method_2385
- Specified by:
method_2385in interfaceInventory- Mappings:
Namespace Name Mixin selector official bLpn;b()Ljava/lang/String;intermediary method_2385Lnet/minecraft/class_849;method_2385()Ljava/lang/String;named method_2385Lnet/minecraft/inventory/Inventory;method_2385()Ljava/lang/String;
-
method_5339
public boolean method_5339()- Specified by:
method_5339in interfaceInventory- Mappings:
Namespace Name Mixin selector official k_Lpn;k_()Zintermediary method_5339Lnet/minecraft/class_849;method_5339()Znamed method_5339Lnet/minecraft/inventory/Inventory;method_5339()Z
-
setName
- Mappings:
Namespace Name Mixin selector official aLpt;a(Ljava/lang/String;)Vintermediary method_6071Lnet/minecraft/class_852;method_6071(Ljava/lang/String;)Vnamed setNameLnet/minecraft/inventory/SimpleInventory;setName(Ljava/lang/String;)V
-
getInvMaxStackAmount
public int getInvMaxStackAmount()- Specified by:
getInvMaxStackAmountin interfaceInventory- Mappings:
Namespace Name Mixin selector official dLpn;d()Iintermediary method_2389Lnet/minecraft/class_849;method_2389()Inamed getInvMaxStackAmountLnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
-
markDirty
public void markDirty() -
canPlayerUseInv
- Specified by:
canPlayerUseInvin interfaceInventory- Mappings:
Namespace Name Mixin selector official aLpn;a(Lxk;)Zintermediary method_2384Lnet/minecraft/class_849;method_2384(Lnet/minecraft/class_988;)Znamed canPlayerUseInvLnet/minecraft/inventory/Inventory;canPlayerUseInv(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
method_2390
public void method_2390()- Specified by:
method_2390in interfaceInventory- Mappings:
Namespace Name Mixin selector official fLpn;f()Vintermediary method_2390Lnet/minecraft/class_849;method_2390()Vnamed method_2390Lnet/minecraft/inventory/Inventory;method_2390()V
-
method_2387
public void method_2387()- Specified by:
method_2387in interfaceInventory- Mappings:
Namespace Name Mixin selector official l_Lpn;l_()Vintermediary method_2387Lnet/minecraft/class_849;method_2387()Vnamed method_2387Lnet/minecraft/inventory/Inventory;method_2387()V
-
isValidInvStack
- Specified by:
isValidInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official bLpn;b(ILabo;)Zintermediary method_5338Lnet/minecraft/class_849;method_5338(ILnet/minecraft/class_1071;)Znamed isValidInvStackLnet/minecraft/inventory/Inventory;isValidInvStack(ILnet/minecraft/item/ItemStack;)Z
-