Class PoisonousPotatoCutterScreenHandler
- Mappings:
Namespace Name official cquintermediary net/minecraft/class_9521named net/minecraft/screen/PoisonousPotatoCutterScreenHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<RecipeEntry<PoisonousPotatoCuttingRecipe>> (package private) Runnableprivate final ScreenHandlerContextfinal Inventorystatic final int(package private) final Slotprivate ItemStackprivate static final intprivate static final int(package private) long(package private) final CraftingResultInventoryprivate static final intstatic final intprivate static final int(package private) final Slotprivate final Propertyprivate final WorldFields 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
ConstructorsConstructorDescriptionPoisonousPotatoCutterScreenHandler(int syncId, PlayerInventory playerInventory) PoisonousPotatoCutterScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCraft()booleancanInsertIntoSlot(ItemStack stack, Slot slot) Returns whetherstackcan be inserted toslot.booleancanUse(PlayerEntity player) Returns whether the screen handler can be used.intintgetType()Returns the screen handler type.private booleanisInBounds(int id) booleanonButtonClick(PlayerEntity player, int id) Called whenplayerclicks a button withid.voidonClosed(PlayerEntity player) Called when this screen handler is closed.voidonContentChanged(Inventory inventory) Called when a slot's content has changed.(package private) voidquickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.voidsetContentsChangedListener(Runnable contentsChangedListener) private voidupdateInput(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
-
INPUT_ID
public static final int INPUT_ID- See Also:
- Mappings:
Namespace Name Mixin selector official kLcqu;k:Iintermediary field_50548Lnet/minecraft/class_9521;field_50548:Inamed INPUT_IDLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;INPUT_ID:I
-
OUTPUT_ID
public static final int OUTPUT_ID- See Also:
- Mappings:
Namespace Name Mixin selector official lLcqu;l:Iintermediary field_50549Lnet/minecraft/class_9521;field_50549:Inamed OUTPUT_IDLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;OUTPUT_ID:I
-
INVENTORY_START
private static final int INVENTORY_START- See Also:
- Mappings:
Namespace Name Mixin selector official pLcqu;p:Iintermediary field_50553Lnet/minecraft/class_9521;field_50553:Inamed INVENTORY_STARTLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;INVENTORY_START:I
-
INVENTORY_END
private static final int INVENTORY_END- See Also:
- Mappings:
Namespace Name Mixin selector official qLcqu;q:Iintermediary field_50554Lnet/minecraft/class_9521;field_50554:Inamed INVENTORY_ENDLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;INVENTORY_END:I
-
OUTPUT_START
private static final int OUTPUT_START- See Also:
- Mappings:
Namespace Name Mixin selector official rLcqu;r:Iintermediary field_50555Lnet/minecraft/class_9521;field_50555:Inamed OUTPUT_STARTLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;OUTPUT_START:I
-
OUTPUT_END
private static final int OUTPUT_END- See Also:
- Mappings:
Namespace Name Mixin selector official sLcqu;s:Iintermediary field_50556Lnet/minecraft/class_9521;field_50556:Inamed OUTPUT_ENDLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;OUTPUT_END:I
-
context
- Mappings:
Namespace Name Mixin selector official tLcqu;t:Lcpr;intermediary field_50557Lnet/minecraft/class_9521;field_50557:Lnet/minecraft/class_3914;named contextLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;context:Lnet/minecraft/screen/ScreenHandlerContext;
-
selectedRecipe
- Mappings:
Namespace Name Mixin selector official uLcqu;u:Lcpy;intermediary field_50558Lnet/minecraft/class_9521;field_50558:Lnet/minecraft/class_3915;named selectedRecipeLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;selectedRecipe:Lnet/minecraft/screen/Property;
-
world
- Mappings:
Namespace Name Mixin selector official vLcqu;v:Ldca;intermediary field_50559Lnet/minecraft/class_9521;field_50559:Lnet/minecraft/class_1937;named worldLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;world:Lnet/minecraft/world/World;
-
availableRecipes
- Mappings:
Namespace Name Mixin selector official wLcqu;w:Ljava/util/List;intermediary field_50560Lnet/minecraft/class_9521;field_50560:Ljava/util/List;named availableRecipesLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;availableRecipes:Ljava/util/List;
-
inputStack
- Mappings:
Namespace Name Mixin selector official xLcqu;x:Lcuh;intermediary field_50561Lnet/minecraft/class_9521;field_50561:Lnet/minecraft/class_1799;named inputStackLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;inputStack:Lnet/minecraft/item/ItemStack;
-
lastTakeTime
long lastTakeTime- Mappings:
Namespace Name Mixin selector official yLcqu;y:Jintermediary field_50562Lnet/minecraft/class_9521;field_50562:Jnamed lastTakeTimeLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;lastTakeTime:J
-
inputSlot
- Mappings:
Namespace Name Mixin selector official mLcqu;m:Lcre;intermediary field_50550Lnet/minecraft/class_9521;field_50550:Lnet/minecraft/class_1735;named inputSlotLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;inputSlot:Lnet/minecraft/screen/slot/Slot;
-
outputSlot
- Mappings:
Namespace Name Mixin selector official nLcqu;n:Lcre;intermediary field_50551Lnet/minecraft/class_9521;field_50551:Lnet/minecraft/class_1735;named outputSlotLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;outputSlot:Lnet/minecraft/screen/slot/Slot;
-
contentsChangedListener
Runnable contentsChangedListener- Mappings:
Namespace Name Mixin selector official zLcqu;z:Ljava/lang/Runnable;intermediary field_50563Lnet/minecraft/class_9521;field_50563:Ljava/lang/Runnable;named contentsChangedListenerLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;contentsChangedListener:Ljava/lang/Runnable;
-
input
- Mappings:
Namespace Name Mixin selector official oLcqu;o:Lbpt;intermediary field_50552Lnet/minecraft/class_9521;field_50552:Lnet/minecraft/class_1263;named inputLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;input:Lnet/minecraft/inventory/Inventory;
-
output
- Mappings:
Namespace Name Mixin selector official ALcqu;A:Lcqz;intermediary field_50547Lnet/minecraft/class_9521;field_50547:Lnet/minecraft/class_1731;named outputLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;output:Lnet/minecraft/inventory/CraftingResultInventory;
-
-
Constructor Details
-
PoisonousPotatoCutterScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Lcqu;<init>(ILclx;)Vintermediary <init>Lnet/minecraft/class_9521;<init>(ILnet/minecraft/class_1661;)Vnamed <init>Lnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
-
PoisonousPotatoCutterScreenHandler
public PoisonousPotatoCutterScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) - Mappings:
Namespace Name Mixin selector official <init>Lcqu;<init>(ILclx;Lcpr;)Vintermediary <init>Lnet/minecraft/class_9521;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)Vnamed <init>Lnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;)V
-
-
Method Details
-
getSelectedRecipe
public int getSelectedRecipe()- Mappings:
Namespace Name Mixin selector official lLcqu;l()Iintermediary method_59012Lnet/minecraft/class_9521;method_59012()Inamed getSelectedRecipeLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;getSelectedRecipe()I
-
getAvailableRecipes
- Mappings:
Namespace Name Mixin selector official mLcqu;m()Ljava/util/List;intermediary method_59013Lnet/minecraft/class_9521;method_59013()Ljava/util/List;named getAvailableRecipesLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;getAvailableRecipes()Ljava/util/List;
-
getAvailableRecipeCount
public int getAvailableRecipeCount()- Mappings:
Namespace Name Mixin selector official nLcqu;n()Iintermediary method_59014Lnet/minecraft/class_9521;method_59014()Inamed getAvailableRecipeCountLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;getAvailableRecipeCount()I
-
canCraft
public boolean canCraft()- Mappings:
Namespace Name Mixin selector official oLcqu;o()Zintermediary method_59015Lnet/minecraft/class_9521;method_59015()Znamed canCraftLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;canCraft()Z
-
canUse
Returns whether the screen handler can be used.Subclasses should call #canUse(ScreenHandlerContext, PlayerEntity, Block)} or implement the check itself. The implementation should check that the player is near the screen handler's source position (e.g. block position) and that the source (e.g. block) is not destroyed.
- Specified by:
canUsein classScreenHandler- Returns:
- whether the screen handler can be used
- Mappings:
Namespace Name Mixin selector official aLcpg;a(Lcly;)Zintermediary method_7597Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Znamed canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
onButtonClick
Called whenplayerclicks a button withid."Button click" is an abstract concept; it does not have to be triggered by a button. Examples of button clicks include selecting a recipe for a stonecutter, turning a page of a lectern's book, or selecting an enchantment on an enchanting table. Buttons are identified by an integer.
- Overrides:
onButtonClickin classScreenHandler- Returns:
- whether the button click is handled successfully
- Mappings:
Namespace Name Mixin selector official bLcpg;b(Lcly;I)Zintermediary method_7604Lnet/minecraft/class_1703;method_7604(Lnet/minecraft/class_1657;I)Znamed onButtonClickLnet/minecraft/screen/ScreenHandler;onButtonClick(Lnet/minecraft/entity/player/PlayerEntity;I)Z
-
isInBounds
private boolean isInBounds(int id) - Mappings:
Namespace Name Mixin selector official eLcqu;e(I)Zintermediary method_59011Lnet/minecraft/class_9521;method_59011(I)Znamed isInBoundsLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;isInBounds(I)Z
-
onContentChanged
Called when a slot's content has changed.This is not called by default; subclasses that override this method should also use a custom
InventorywhosemarkDirtymethod is overridden to call this method as a backing inventory of the slot.This can be used to update the output slot when input changes.
- Overrides:
onContentChangedin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLcpg;a(Lbpt;)Vintermediary method_7609Lnet/minecraft/class_1703;method_7609(Lnet/minecraft/class_1263;)Vnamed onContentChangedLnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
-
updateInput
- Mappings:
Namespace Name Mixin selector official aLcqu;a(Lbpt;Lcuh;)Vintermediary method_59008Lnet/minecraft/class_9521;method_59008(Lnet/minecraft/class_1263;Lnet/minecraft/class_1799;)Vnamed updateInputLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;updateInput(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;)V
-
populateResult
void populateResult()- Mappings:
Namespace Name Mixin selector official pLcqu;p()Vintermediary method_59016Lnet/minecraft/class_9521;method_59016()Vnamed populateResultLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;populateResult()V
-
getType
Returns the screen handler type.A screen handler must have associated screen handler type to open it.
- Overrides:
getTypein classScreenHandler- Returns:
- the screen handler type
- Mappings:
Namespace Name Mixin selector official aLcpg;a()Lcqo;intermediary method_17358Lnet/minecraft/class_1703;method_17358()Lnet/minecraft/class_3917;named getTypeLnet/minecraft/screen/ScreenHandler;getType()Lnet/minecraft/screen/ScreenHandlerType;
-
setContentsChangedListener
- Mappings:
Namespace Name Mixin selector official aLcqu;a(Ljava/lang/Runnable;)Vintermediary method_59010Lnet/minecraft/class_9521;method_59010(Ljava/lang/Runnable;)Vnamed setContentsChangedListenerLnet/minecraft/screen/PoisonousPotatoCutterScreenHandler;setContentsChangedListener(Ljava/lang/Runnable;)V
-
canInsertIntoSlot
Returns whetherstackcan be inserted toslot.Subclasses should override this to return
falseif the slot is used for output.- Overrides:
canInsertIntoSlotin classScreenHandler- Returns:
- whether
stackcan be inserted toslot - Mappings:
Namespace Name Mixin selector official aLcpg;a(Lcuh;Lcre;)Zintermediary method_7613Lnet/minecraft/class_1703;method_7613(Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;)Znamed canInsertIntoSlotLnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/item/ItemStack;Lnet/minecraft/screen/slot/Slot;)Z
-
quickMove
Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory. For example, items can be quick-moved between a chest's slots and the player inventory or between the main player inventory and the hotbar.Subclasses should call
ScreenHandler.insertItem(net.minecraft.item.ItemStack, int, int, boolean), and if the insertion was successful, clear the slot (if the stack is exhausted) or mark it as dirty. See the vanilla subclasses for basic implementation.Quick-moving is also known as "shift-clicking" since it's usually triggered using Shift+left click.
- Specified by:
quickMovein classScreenHandler- Parameters:
slot- the index of the slot to quick-move from- Returns:
ItemStack.EMPTYwhen no stack can be transferred, otherwise the original stack- See Also:
- Mappings:
Namespace Name Mixin selector official aLcpg;a(Lcly;I)Lcuh;intermediary method_7601Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;named quickMoveLnet/minecraft/screen/ScreenHandler;quickMove(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
-
onClosed
Called when this screen handler is closed.To close a screen handler, call
PlayerEntity.closeHandledScreen()on the server instead of this method.This drops the cursor stack by default. Subclasses that have slots not backed by a persistent inventory should call
ScreenHandler.dropInventory(net.minecraft.entity.player.PlayerEntity, net.minecraft.inventory.Inventory)to drop the stacks.- Overrides:
onClosedin classScreenHandler- Mappings:
Namespace Name Mixin selector official bLcpg;b(Lcly;)Vintermediary method_7595Lnet/minecraft/class_1703;method_7595(Lnet/minecraft/class_1657;)Vnamed onClosedLnet/minecraft/screen/ScreenHandler;onClosed(Lnet/minecraft/entity/player/PlayerEntity;)V
-