Package net.minecraft.inventory
Class CraftingInventory
java.lang.Object
net.minecraft.inventory.CraftingInventory
public class CraftingInventory extends Object implements Inventory
- Mappings:
Namespace Name official xpintermediary net/minecraft/class_1993named net/minecraft/inventory/CraftingInventory
-
Field Summary
Fields Modifier and Type Field Description private ItemStack[]field_8470private ScreenHandlerfield_8473private intheightprivate intwidth -
Constructor Summary
Constructors Constructor Description CraftingInventory(ScreenHandler screenHandler, int int2, int int3) -
Method Summary
Modifier and Type Method Description booleancanPlayerUseInv(PlayerEntity player)voidclear()intgetHeight()intgetInvMaxStackAmount()intgetInvSize()ItemStackgetInvStack(int slot)TextgetName()intgetProperties()intgetProperty(int key)StringgetTranslationKey()booleanhasCustomName()booleanisValidInvStack(int slot, ItemStack stack)voidmarkDirty()ItemStackmethod_8136(int int2, int int3)intmethod_8138()voidonInvClose(PlayerEntity player)voidonInvOpen(PlayerEntity player)ItemStackremoveInvStack(int slot)voidsetInvStack(int slot, ItemStack stack)voidsetProperty(int id, int value)ItemStacktakeInvStack(int slot, int amount)
-
Field Details
-
field_8470
- Mappings:
Namespace Name Mixin selector official aLxp;a:[Lzx;intermediary field_8470Lnet/minecraft/class_1993;field_8470:[Lnet/minecraft/class_2056;named field_8470Lnet/minecraft/inventory/CraftingInventory;field_8470:[Lnet/minecraft/item/ItemStack;
-
width
private final int width- Mappings:
Namespace Name Mixin selector official bLxp;b:Iintermediary field_8471Lnet/minecraft/class_1993;field_8471:Inamed widthLnet/minecraft/inventory/CraftingInventory;width:I
-
height
private final int height- Mappings:
Namespace Name Mixin selector official cLxp;c:Iintermediary field_8472Lnet/minecraft/class_1993;field_8472:Inamed heightLnet/minecraft/inventory/CraftingInventory;height:I
-
field_8473
- Mappings:
Namespace Name Mixin selector official dLxp;d:Lxi;intermediary field_8473Lnet/minecraft/class_1993;field_8473:Lnet/minecraft/class_1983;named field_8473Lnet/minecraft/inventory/CraftingInventory;field_8473:Lnet/minecraft/screen/ScreenHandler;
-
-
Constructor Details
-
CraftingInventory
-
-
Method Details
-
getInvSize
public int getInvSize()- Specified by:
getInvSizein interfaceInventory- 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
- Specified by:
getInvStackin interfaceInventory- 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;
-
method_8136
- Mappings:
Namespace Name Mixin selector official cLxp;c(II)Lzx;intermediary method_8136Lnet/minecraft/class_1993;method_8136(II)Lnet/minecraft/class_2056;named method_8136Lnet/minecraft/inventory/CraftingInventory;method_8136(II)Lnet/minecraft/item/ItemStack;
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceNameable- Mappings:
Namespace Name Mixin selector official e_Lop;e_()Ljava/lang/String;intermediary method_6261Lnet/minecraft/class_1726;method_6261()Ljava/lang/String;named getTranslationKeyLnet/minecraft/text/Nameable;getTranslationKey()Ljava/lang/String;
-
hasCustomName
public boolean hasCustomName()- Specified by:
hasCustomNamein interfaceNameable- Mappings:
Namespace Name Mixin selector official l_Lop;l_()Zintermediary method_6770Lnet/minecraft/class_1726;method_6770()Znamed hasCustomNameLnet/minecraft/text/Nameable;hasCustomName()Z
-
getName
-
removeInvStack
- Specified by:
removeInvStackin interfaceInventory- 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;
-
takeInvStack
- Specified by:
takeInvStackin interfaceInventory- 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;
-
setInvStack
- Specified by:
setInvStackin interfaceInventory- 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
public int getInvMaxStackAmount()- Specified by:
getInvMaxStackAmountin interfaceInventory- 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
public void markDirty() -
canPlayerUseInv
- Specified by:
canPlayerUseInvin interfaceInventory- 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
- Specified by:
onInvOpenin interfaceInventory- 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
- Specified by:
onInvClosein interfaceInventory- 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
- Specified by:
isValidInvStackin interfaceInventory- 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
public int getProperty(int key)- Specified by:
getPropertyin interfaceInventory- 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
public void setProperty(int id, int value)- Specified by:
setPropertyin interfaceInventory- 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
public int getProperties()- Specified by:
getPropertiesin interfaceInventory- Mappings:
Namespace Name Mixin selector official gLog;g()Iintermediary method_6746Lnet/minecraft/class_1718;method_6746()Inamed getPropertiesLnet/minecraft/inventory/Inventory;getProperties()I
-
clear
public void clear() -
getHeight
public int getHeight()- Mappings:
Namespace Name Mixin selector official hLxp;h()Iintermediary method_8137Lnet/minecraft/class_1993;method_8137()Inamed getHeightLnet/minecraft/inventory/CraftingInventory;getHeight()I
-
method_8138
public int method_8138()- Mappings:
Namespace Name Mixin selector official iLxp;i()Iintermediary method_8138Lnet/minecraft/class_1993;method_8138()Inamed method_8138Lnet/minecraft/inventory/CraftingInventory;method_8138()I
-