Package net.minecraft.screen
Class StonecutterScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.StonecutterScreenHandler
public class StonecutterScreenHandler extends ScreenHandler
- Mappings:
Namespace Name official bll
intermediary net/minecraft/class_3971
named net/minecraft/screen/StonecutterScreenHandler
-
Field Summary
Fields Modifier and Type Field Description private List<StonecuttingRecipe>
availableRecipes
private Runnable
contentsChangedListener
private ScreenHandlerContext
context
Inventory
input
(package private) Slot
inputSlot
private ItemStack
inputStack
private long
lastTakeTime
private CraftingResultInventory
output
(package private) Slot
outputSlot
private Property
selectedRecipe
private World
world
Fields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId
-
Constructor Summary
Constructors Constructor Description StonecutterScreenHandler(int syncId, PlayerInventory playerInventory)
StonecutterScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)
-
Method Summary
Modifier and Type Method Description boolean
canCraft()
boolean
canInsertIntoSlot(ItemStack stack, Slot slot)
boolean
canUse(PlayerEntity player)
void
close(PlayerEntity player)
int
getAvailableRecipeCount()
List<StonecuttingRecipe>
getAvailableRecipes()
int
getSelectedRecipe()
ScreenHandlerType<?>
getType()
private boolean
method_30160(int int2)
boolean
onButtonClick(PlayerEntity player, int id)
void
onContentChanged(Inventory inventory)
private void
populateResult()
void
setContentsChangedListener(Runnable runnable)
ItemStack
transferSlot(PlayerEntity player, int index)
private void
updateInput(Inventory input, ItemStack stack)
Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, insertItem, isNotRestricted, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
context
- Mappings:
Namespace Name Mixin selector official f
Lbll;f:Lbkc;
intermediary field_17630
Lnet/minecraft/class_3971;field_17630:Lnet/minecraft/class_3914;
named context
Lnet/minecraft/screen/StonecutterScreenHandler;context:Lnet/minecraft/screen/ScreenHandlerContext;
-
selectedRecipe
- Mappings:
Namespace Name Mixin selector official g
Lbll;g:Lbkg;
intermediary field_17631
Lnet/minecraft/class_3971;field_17631:Lnet/minecraft/class_3915;
named selectedRecipe
Lnet/minecraft/screen/StonecutterScreenHandler;selectedRecipe:Lnet/minecraft/screen/Property;
-
world
- Mappings:
Namespace Name Mixin selector official h
Lbll;h:Lbtv;
intermediary field_17632
Lnet/minecraft/class_3971;field_17632:Lnet/minecraft/class_1937;
named world
Lnet/minecraft/screen/StonecutterScreenHandler;world:Lnet/minecraft/world/World;
-
availableRecipes
- Mappings:
Namespace Name Mixin selector official i
Lbll;i:Ljava/util/List;
intermediary field_17633
Lnet/minecraft/class_3971;field_17633:Ljava/util/List;
named availableRecipes
Lnet/minecraft/screen/StonecutterScreenHandler;availableRecipes:Ljava/util/List;
-
inputStack
- Mappings:
Namespace Name Mixin selector official j
Lbll;j:Lbnv;
intermediary field_17634
Lnet/minecraft/class_3971;field_17634:Lnet/minecraft/class_1799;
named inputStack
Lnet/minecraft/screen/StonecutterScreenHandler;inputStack:Lnet/minecraft/item/ItemStack;
-
lastTakeTime
private long lastTakeTime- Mappings:
Namespace Name Mixin selector official k
Lbll;k:J
intermediary field_17635
Lnet/minecraft/class_3971;field_17635:J
named lastTakeTime
Lnet/minecraft/screen/StonecutterScreenHandler;lastTakeTime:J
-
inputSlot
- Mappings:
Namespace Name Mixin selector official c
Lbll;c:Lblh;
intermediary field_17627
Lnet/minecraft/class_3971;field_17627:Lnet/minecraft/class_1735;
named inputSlot
Lnet/minecraft/screen/StonecutterScreenHandler;inputSlot:Lnet/minecraft/screen/slot/Slot;
-
outputSlot
- Mappings:
Namespace Name Mixin selector official d
Lbll;d:Lblh;
intermediary field_17628
Lnet/minecraft/class_3971;field_17628:Lnet/minecraft/class_1735;
named outputSlot
Lnet/minecraft/screen/StonecutterScreenHandler;outputSlot:Lnet/minecraft/screen/slot/Slot;
-
contentsChangedListener
- Mappings:
Namespace Name Mixin selector official l
Lbll;l:Ljava/lang/Runnable;
intermediary field_17636
Lnet/minecraft/class_3971;field_17636:Ljava/lang/Runnable;
named contentsChangedListener
Lnet/minecraft/screen/StonecutterScreenHandler;contentsChangedListener:Ljava/lang/Runnable;
-
input
- Mappings:
Namespace Name Mixin selector official e
Lbll;e:Lapj;
intermediary field_17629
Lnet/minecraft/class_3971;field_17629:Lnet/minecraft/class_1263;
named input
Lnet/minecraft/screen/StonecutterScreenHandler;input:Lnet/minecraft/inventory/Inventory;
-
output
- Mappings:
Namespace Name Mixin selector official m
Lbll;m:Lblc;
intermediary field_19173
Lnet/minecraft/class_3971;field_19173:Lnet/minecraft/class_1731;
named output
Lnet/minecraft/screen/StonecutterScreenHandler;output:Lnet/minecraft/inventory/CraftingResultInventory;
-
-
Constructor Details
-
StonecutterScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>
Lbll;<init>(ILbhk;)V
intermediary <init>
Lnet/minecraft/class_3971;<init>(ILnet/minecraft/class_1661;)V
named <init>
Lnet/minecraft/screen/StonecutterScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
-
StonecutterScreenHandler
public StonecutterScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)- Mappings:
Namespace Name Mixin selector official <init>
Lbll;<init>(ILbhk;Lbkc;)V
intermediary <init>
Lnet/minecraft/class_3971;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)V
named <init>
Lnet/minecraft/screen/StonecutterScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;)V
-
-
Method Details
-
getSelectedRecipe
- Mappings:
Namespace Name Mixin selector official e
Lbll;e()I
intermediary method_17862
Lnet/minecraft/class_3971;method_17862()I
named getSelectedRecipe
Lnet/minecraft/screen/StonecutterScreenHandler;getSelectedRecipe()I
-
getAvailableRecipes
- Mappings:
Namespace Name Mixin selector official f
Lbll;f()Ljava/util/List;
intermediary method_17863
Lnet/minecraft/class_3971;method_17863()Ljava/util/List;
named getAvailableRecipes
Lnet/minecraft/screen/StonecutterScreenHandler;getAvailableRecipes()Ljava/util/List;
-
getAvailableRecipeCount
- Mappings:
Namespace Name Mixin selector official g
Lbll;g()I
intermediary method_17864
Lnet/minecraft/class_3971;method_17864()I
named getAvailableRecipeCount
Lnet/minecraft/screen/StonecutterScreenHandler;getAvailableRecipeCount()I
-
canCraft
- Mappings:
Namespace Name Mixin selector official h
Lbll;h()Z
intermediary method_17865
Lnet/minecraft/class_3971;method_17865()Z
named canCraft
Lnet/minecraft/screen/StonecutterScreenHandler;canCraft()Z
-
canUse
- Specified by:
canUse
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official a
Lbjr;a(Lbhl;)Z
intermediary method_7597
Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Z
named canUse
Lnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
onButtonClick
- Overrides:
onButtonClick
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official a
Lbjr;a(Lbhl;I)Z
intermediary method_7604
Lnet/minecraft/class_1703;method_7604(Lnet/minecraft/class_1657;I)Z
named onButtonClick
Lnet/minecraft/screen/ScreenHandler;onButtonClick(Lnet/minecraft/entity/player/PlayerEntity;I)Z
-
method_30160
private boolean method_30160(int int2)- Mappings:
Namespace Name Mixin selector official d
Lbll;d(I)Z
intermediary method_30160
Lnet/minecraft/class_3971;method_30160(I)Z
named method_30160
Lnet/minecraft/screen/StonecutterScreenHandler;method_30160(I)Z
-
onContentChanged
- Overrides:
onContentChanged
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official a
Lbjr;a(Lapj;)V
intermediary method_7609
Lnet/minecraft/class_1703;method_7609(Lnet/minecraft/class_1263;)V
named onContentChanged
Lnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
-
updateInput
- Mappings:
Namespace Name Mixin selector official a
Lbll;a(Lapj;Lbnv;)V
intermediary method_17855
Lnet/minecraft/class_3971;method_17855(Lnet/minecraft/class_1263;Lnet/minecraft/class_1799;)V
named updateInput
Lnet/minecraft/screen/StonecutterScreenHandler;updateInput(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;)V
-
populateResult
private void populateResult()- Mappings:
Namespace Name Mixin selector official i
Lbll;i()V
intermediary method_17866
Lnet/minecraft/class_3971;method_17866()V
named populateResult
Lnet/minecraft/screen/StonecutterScreenHandler;populateResult()V
-
getType
- Overrides:
getType
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official a
Lbjr;a()Lbku;
intermediary method_17358
Lnet/minecraft/class_1703;method_17358()Lnet/minecraft/class_3917;
named getType
Lnet/minecraft/screen/ScreenHandler;getType()Lnet/minecraft/screen/ScreenHandlerType;
-
setContentsChangedListener
- Mappings:
Namespace Name Mixin selector official a
Lbll;a(Ljava/lang/Runnable;)V
intermediary method_17859
Lnet/minecraft/class_3971;method_17859(Ljava/lang/Runnable;)V
named setContentsChangedListener
Lnet/minecraft/screen/StonecutterScreenHandler;setContentsChangedListener(Ljava/lang/Runnable;)V
-
canInsertIntoSlot
- Overrides:
canInsertIntoSlot
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official a
Lbjr;a(Lbnv;Lblh;)Z
intermediary method_7613
Lnet/minecraft/class_1703;method_7613(Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;)Z
named canInsertIntoSlot
Lnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/item/ItemStack;Lnet/minecraft/screen/slot/Slot;)Z
-
transferSlot
- Overrides:
transferSlot
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official b
Lbjr;b(Lbhl;I)Lbnv;
intermediary method_7601
Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;
named transferSlot
Lnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
-
close
- Overrides:
close
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official b
Lbjr;b(Lbhl;)V
intermediary method_7595
Lnet/minecraft/class_1703;method_7595(Lnet/minecraft/class_1657;)V
named close
Lnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
-