Package net.minecraft.screen
Class CraftingScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.CraftingScreenHandler
public class CraftingScreenHandler extends ScreenHandler
- Mappings:
Namespace Name official xqintermediary net/minecraft/class_1994named net/minecraft/screen/CraftingScreenHandler
-
Field Summary
Fields Modifier and Type Field Description CraftingInventorycraftingInvprivate BlockPosposInventoryresultInvprivate WorldworldFields inherited from class net.minecraft.screen.ScreenHandler
listeners, slots, syncId, trackedStacks -
Constructor Summary
Constructors Constructor Description CraftingScreenHandler(PlayerInventory playerInventory, World world, BlockPos pos) -
Method Summary
Modifier and Type Method Description booleancanInsertIntoSlot(ItemStack stack, Slot slot)booleancanUse(PlayerEntity player)voidclose(PlayerEntity player)voidonContentChanged(Inventory inventory)ItemStacktransferSlot(PlayerEntity player, int invSlot)Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertItemIntoSlot, endQuickCraft, getNextActionId, getSlot, getStacks, insertItem, isNotRestricted, method_8096, method_8102, onButtonClick, onSlotClick, packClickData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackButtonId, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
craftingInv
- Mappings:
Namespace Name Mixin selector official aLxq;a:Lxp;intermediary field_8474Lnet/minecraft/class_1994;field_8474:Lnet/minecraft/class_1993;named craftingInvLnet/minecraft/screen/CraftingScreenHandler;craftingInv:Lnet/minecraft/inventory/CraftingInventory;
-
resultInv
- Mappings:
Namespace Name Mixin selector official fLxq;f:Log;intermediary field_8475Lnet/minecraft/class_1994;field_8475:Lnet/minecraft/class_1718;named resultInvLnet/minecraft/screen/CraftingScreenHandler;resultInv:Lnet/minecraft/inventory/Inventory;
-
world
- Mappings:
Namespace Name Mixin selector official gLxq;g:Ladm;intermediary field_8476Lnet/minecraft/class_1994;field_8476:Lnet/minecraft/class_99;named worldLnet/minecraft/screen/CraftingScreenHandler;world:Lnet/minecraft/world/World;
-
pos
- Mappings:
Namespace Name Mixin selector official hLxq;h:Lcj;intermediary field_8477Lnet/minecraft/class_1994;field_8477:Lnet/minecraft/class_1372;named posLnet/minecraft/screen/CraftingScreenHandler;pos:Lnet/minecraft/util/math/BlockPos;
-
-
Constructor Details
-
CraftingScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Lxq;<init>(Lwm;Ladm;Lcj;)Vintermediary <init>Lnet/minecraft/class_1994;<init>(Lnet/minecraft/class_1962;Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Vnamed <init>Lnet/minecraft/screen/CraftingScreenHandler;<init>(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
-
Method Details
-
onContentChanged
- Overrides:
onContentChangedin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLxi;a(Log;)Vintermediary method_8101Lnet/minecraft/class_1983;method_8101(Lnet/minecraft/class_1718;)Vnamed onContentChangedLnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
-
close
- Overrides:
closein classScreenHandler- Mappings:
Namespace Name Mixin selector official bLxi;b(Lwn;)Vintermediary method_8117Lnet/minecraft/class_1983;method_8117(Lnet/minecraft/class_1963;)Vnamed closeLnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
-
canUse
- Specified by:
canUsein classScreenHandler- Mappings:
Namespace Name Mixin selector official aLxi;a(Lwn;)Zintermediary method_8104Lnet/minecraft/class_1983;method_8104(Lnet/minecraft/class_1963;)Znamed canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
transferSlot
- Overrides:
transferSlotin classScreenHandler- Mappings:
Namespace Name Mixin selector official bLxi;b(Lwn;I)Lzx;intermediary method_8118Lnet/minecraft/class_1983;method_8118(Lnet/minecraft/class_1963;I)Lnet/minecraft/class_2056;named transferSlotLnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
-
canInsertIntoSlot
- Overrides:
canInsertIntoSlotin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLxi;a(Lzx;Lyg;)Zintermediary method_8111Lnet/minecraft/class_1983;method_8111(Lnet/minecraft/class_2056;Lnet/minecraft/class_2010;)Znamed canInsertIntoSlotLnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/item/ItemStack;Lnet/minecraft/inventory/slot/Slot;)Z
-