Package net.minecraft.screen
Class StonecutterScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.StonecutterScreenHandler
- Mappings:
Namespace Name official bxk
intermediary net/minecraft/class_3971
named net/minecraft/screen/StonecutterScreenHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate List<StonecuttingRecipe>
(package private) Runnable
private final ScreenHandlerContext
static final int
static final int
private static final int
private static final int
private static final int
private static final int
final Inventory
(package private) final Slot
private ItemStack
(package private) long
(package private) final CraftingResultInventory
(package private) final Slot
private final Property
private final World
Fields inherited from class net.minecraft.screen.ScreenHandler
EMPTY_SPACE_SLOT_INDEX, field_30731, field_30732, field_30733, field_30734, field_30735, field_30736, field_30737, slots, syncId
-
Constructor Summary
ConstructorDescriptionStonecutterScreenHandler
(int syncId, PlayerInventory playerInventory) StonecutterScreenHandler
(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canCraft()
boolean
canInsertIntoSlot
(ItemStack stack, Slot slot) boolean
canUse
(PlayerEntity player) void
close
(PlayerEntity player) int
int
getType()
private boolean
isInBounds
(int id) boolean
onButtonClick
(PlayerEntity player, int id) void
onContentChanged
(Inventory inventory) (package private) void
void
setContentsChangedListener
(Runnable contentsChangedListener) 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, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getRevision, getSlot, getSlotIndex, getStacks, insertItem, isValid, nextRevision, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setCursorStack, setPreviousCursorStack, setPreviousTrackedSlot, setPreviousTrackedSlotMutable, setProperty, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler, updateToClient
-
Field Details
-
field_30842
public static final int field_30842- See Also:
- Mappings:
Namespace Name Mixin selector official k
Lbxk;k:I
intermediary field_30842
Lnet/minecraft/class_3971;field_30842:I
named field_30842
Lnet/minecraft/screen/StonecutterScreenHandler;field_30842:I
-
field_30843
public static final int field_30843- See Also:
- Mappings:
Namespace Name Mixin selector official l
Lbxk;l:I
intermediary field_30843
Lnet/minecraft/class_3971;field_30843:I
named field_30843
Lnet/minecraft/screen/StonecutterScreenHandler;field_30843:I
-
field_30844
private static final int field_30844- See Also:
- Mappings:
Namespace Name Mixin selector official p
Lbxk;p:I
intermediary field_30844
Lnet/minecraft/class_3971;field_30844:I
named field_30844
Lnet/minecraft/screen/StonecutterScreenHandler;field_30844:I
-
field_30845
private static final int field_30845- See Also:
- Mappings:
Namespace Name Mixin selector official q
Lbxk;q:I
intermediary field_30845
Lnet/minecraft/class_3971;field_30845:I
named field_30845
Lnet/minecraft/screen/StonecutterScreenHandler;field_30845:I
-
field_30846
private static final int field_30846- See Also:
- Mappings:
Namespace Name Mixin selector official r
Lbxk;r:I
intermediary field_30846
Lnet/minecraft/class_3971;field_30846:I
named field_30846
Lnet/minecraft/screen/StonecutterScreenHandler;field_30846:I
-
field_30847
private static final int field_30847- See Also:
- Mappings:
Namespace Name Mixin selector official s
Lbxk;s:I
intermediary field_30847
Lnet/minecraft/class_3971;field_30847:I
named field_30847
Lnet/minecraft/screen/StonecutterScreenHandler;field_30847:I
-
context
- Mappings:
Namespace Name Mixin selector official t
Lbxk;t:Lbwa;
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 u
Lbxk;u:Lbwf;
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 v
Lbxk;v:Lcga;
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 w
Lbxk;w: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 x
Lbxk;x:Lcaa;
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
long lastTakeTime- Mappings:
Namespace Name Mixin selector official y
Lbxk;y: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 m
Lbxk;m:Lbxg;
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 n
Lbxk;n:Lbxg;
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
Runnable contentsChangedListener- Mappings:
Namespace Name Mixin selector official z
Lbxk;z: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 o
Lbxk;o:Lazf;
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 A
Lbxk;A:Lbxb;
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>
Lbxk;<init>(ILbte;)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>
Lbxk;<init>(ILbte;Lbwa;)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
public int getSelectedRecipe()- Mappings:
Namespace Name Mixin selector official l
Lbxk;l()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 m
Lbxk;m()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
public int getAvailableRecipeCount()- Mappings:
Namespace Name Mixin selector official n
Lbxk;n()I
intermediary method_17864
Lnet/minecraft/class_3971;method_17864()I
named getAvailableRecipeCount
Lnet/minecraft/screen/StonecutterScreenHandler;getAvailableRecipeCount()I
-
canCraft
public boolean canCraft()- Mappings:
Namespace Name Mixin selector official o
Lbxk;o()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
Lbvp;a(Lbtf;)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 b
Lbvp;b(Lbtf;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
-
isInBounds
private boolean isInBounds(int id) - Mappings:
Namespace Name Mixin selector official e
Lbxk;e(I)Z
intermediary method_30160
Lnet/minecraft/class_3971;method_30160(I)Z
named isInBounds
Lnet/minecraft/screen/StonecutterScreenHandler;isInBounds(I)Z
-
onContentChanged
- Overrides:
onContentChanged
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official a
Lbvp;a(Lazf;)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
Lbxk;a(Lazf;Lcaa;)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
void populateResult()- Mappings:
Namespace Name Mixin selector official p
Lbxk;p()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
Lbvp;a()Lbwt;
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
Lbxk;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
Lbvp;a(Lcaa;Lbxg;)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
- Specified by:
transferSlot
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official a
Lbvp;a(Lbtf;I)Lcaa;
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
Lbvp;b(Lbtf;)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
-