Package net.minecraft.screen
Class PotatoRefineryScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.AbstractRecipeScreenHandler<Inventory>
net.minecraft.screen.PotatoRefineryScreenHandler
- Mappings:
Namespace Name official cqvintermediary net/minecraft/class_9522named net/minecraft/screen/PotatoRefineryScreenHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final Inventoryprivate final PropertyDelegateprivate final RecipeBookCategoryprivate final RecipeType<PotatoRefinementRecipe> protected 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
ConstructorsModifierConstructorDescriptionPotatoRefineryScreenHandler(int syncId, PlayerInventory playerInventory) PotatoRefineryScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate) privatePotatoRefineryScreenHandler(ScreenHandlerType<?> type, RecipeType<PotatoRefinementRecipe> recipeType, RecipeBookCategory recipeBookCategory, int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanInsertIntoSlot(int index) booleancanUse(PlayerEntity player) Returns whether the screen handler can be used.voidintintintintfloatfloatbooleanprotected booleanprotected booleanisRefinable(ItemStack stack) booleanmatches(RecipeEntry<? extends Recipe<Inventory>> recipe) voidpopulateRecipeFinder(RecipeMatcher finder) quickMove(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.Methods inherited from class net.minecraft.screen.AbstractRecipeScreenHandler
fillInputSlotsMethods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getRevision, getSlot, getSlotIndex, getStacks, getType, insertItem, isValid, nextRevision, onButtonClick, onClosed, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setCursorStack, setPreviousCursorStack, setPreviousTrackedSlot, setPreviousTrackedSlotMutable, setProperty, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler, updateToClient
-
Field Details
-
field_50567
public static final int field_50567- See Also:
- Mappings:
Namespace Name Mixin selector official kLcqv;k:Iintermediary field_50567Lnet/minecraft/class_9522;field_50567:Inamed field_50567Lnet/minecraft/screen/PotatoRefineryScreenHandler;field_50567:I
-
field_50568
public static final int field_50568- See Also:
- Mappings:
Namespace Name Mixin selector official lLcqv;l:Iintermediary field_50568Lnet/minecraft/class_9522;field_50568:Inamed field_50568Lnet/minecraft/screen/PotatoRefineryScreenHandler;field_50568:I
-
field_50569
public static final int field_50569- See Also:
- Mappings:
Namespace Name Mixin selector official mLcqv;m:Iintermediary field_50569Lnet/minecraft/class_9522;field_50569:Inamed field_50569Lnet/minecraft/screen/PotatoRefineryScreenHandler;field_50569:I
-
field_50570
public static final int field_50570- See Also:
- Mappings:
Namespace Name Mixin selector official nLcqv;n:Iintermediary field_50570Lnet/minecraft/class_9522;field_50570:Inamed field_50570Lnet/minecraft/screen/PotatoRefineryScreenHandler;field_50570:I
-
field_50571
public static final int field_50571- See Also:
- Mappings:
Namespace Name Mixin selector official oLcqv;o:Iintermediary field_50571Lnet/minecraft/class_9522;field_50571:Inamed field_50571Lnet/minecraft/screen/PotatoRefineryScreenHandler;field_50571:I
-
field_50572
public static final int field_50572- See Also:
- Mappings:
Namespace Name Mixin selector official pLcqv;p:Iintermediary field_50572Lnet/minecraft/class_9522;field_50572:Inamed field_50572Lnet/minecraft/screen/PotatoRefineryScreenHandler;field_50572:I
-
field_50574
private static final int field_50574- See Also:
- Mappings:
Namespace Name Mixin selector official rLcqv;r:Iintermediary field_50574Lnet/minecraft/class_9522;field_50574:Inamed field_50574Lnet/minecraft/screen/PotatoRefineryScreenHandler;field_50574:I
-
field_50575
private static final int field_50575- See Also:
- Mappings:
Namespace Name Mixin selector official sLcqv;s:Iintermediary field_50575Lnet/minecraft/class_9522;field_50575:Inamed field_50575Lnet/minecraft/screen/PotatoRefineryScreenHandler;field_50575:I
-
field_50576
private static final int field_50576- See Also:
- Mappings:
Namespace Name Mixin selector official tLcqv;t:Iintermediary field_50576Lnet/minecraft/class_9522;field_50576:Inamed field_50576Lnet/minecraft/screen/PotatoRefineryScreenHandler;field_50576:I
-
field_50577
private static final int field_50577- See Also:
- Mappings:
Namespace Name Mixin selector official uLcqv;u:Iintermediary field_50577Lnet/minecraft/class_9522;field_50577:Inamed field_50577Lnet/minecraft/screen/PotatoRefineryScreenHandler;field_50577:I
-
inventory
- Mappings:
Namespace Name Mixin selector official vLcqv;v:Lbpt;intermediary field_50578Lnet/minecraft/class_9522;field_50578:Lnet/minecraft/class_1263;named inventoryLnet/minecraft/screen/PotatoRefineryScreenHandler;inventory:Lnet/minecraft/inventory/Inventory;
-
propertyDelegate
- Mappings:
Namespace Name Mixin selector official wLcqv;w:Lcpq;intermediary field_50579Lnet/minecraft/class_9522;field_50579:Lnet/minecraft/class_3913;named propertyDelegateLnet/minecraft/screen/PotatoRefineryScreenHandler;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
-
world
- Mappings:
Namespace Name Mixin selector official qLcqv;q:Ldca;intermediary field_50573Lnet/minecraft/class_9522;field_50573:Lnet/minecraft/class_1937;named worldLnet/minecraft/screen/PotatoRefineryScreenHandler;world:Lnet/minecraft/world/World;
-
recipeType
- Mappings:
Namespace Name Mixin selector official xLcqv;x:Lczf;intermediary field_50580Lnet/minecraft/class_9522;field_50580:Lnet/minecraft/class_3956;named recipeTypeLnet/minecraft/screen/PotatoRefineryScreenHandler;recipeType:Lnet/minecraft/recipe/RecipeType;
-
recipeBookCategory
- Mappings:
Namespace Name Mixin selector official yLcqv;y:Lcqx;intermediary field_50581Lnet/minecraft/class_9522;field_50581:Lnet/minecraft/class_5421;named recipeBookCategoryLnet/minecraft/screen/PotatoRefineryScreenHandler;recipeBookCategory:Lnet/minecraft/recipe/book/RecipeBookCategory;
-
-
Constructor Details
-
PotatoRefineryScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Lcqv;<init>(ILclx;)Vintermediary <init>Lnet/minecraft/class_9522;<init>(ILnet/minecraft/class_1661;)Vnamed <init>Lnet/minecraft/screen/PotatoRefineryScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
-
PotatoRefineryScreenHandler
public PotatoRefineryScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate) - Mappings:
Namespace Name Mixin selector official <init>Lcqv;<init>(ILclx;Lbpt;Lcpq;)Vintermediary <init>Lnet/minecraft/class_9522;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_1263;Lnet/minecraft/class_3913;)Vnamed <init>Lnet/minecraft/screen/PotatoRefineryScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/screen/PropertyDelegate;)V
-
PotatoRefineryScreenHandler
private PotatoRefineryScreenHandler(ScreenHandlerType<?> type, RecipeType<PotatoRefinementRecipe> recipeType, RecipeBookCategory recipeBookCategory, int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate) - Mappings:
Namespace Name Mixin selector official <init>Lcqv;<init>(Lcqo;Lczf;Lcqx;ILclx;Lbpt;Lcpq;)Vintermediary <init>Lnet/minecraft/class_9522;<init>(Lnet/minecraft/class_3917;Lnet/minecraft/class_3956;Lnet/minecraft/class_5421;ILnet/minecraft/class_1661;Lnet/minecraft/class_1263;Lnet/minecraft/class_3913;)Vnamed <init>Lnet/minecraft/screen/PotatoRefineryScreenHandler;<init>(Lnet/minecraft/screen/ScreenHandlerType;Lnet/minecraft/recipe/RecipeType;Lnet/minecraft/recipe/book/RecipeBookCategory;ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/screen/PropertyDelegate;)V
-
-
Method Details
-
populateRecipeFinder
- Specified by:
populateRecipeFinderin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official aLcqw;a(Lcmc;)Vintermediary method_7654Lnet/minecraft/class_1729;method_7654(Lnet/minecraft/class_1662;)Vnamed populateRecipeFinderLnet/minecraft/screen/AbstractRecipeScreenHandler;populateRecipeFinder(Lnet/minecraft/recipe/RecipeMatcher;)V
-
clearCraftingSlots
public void clearCraftingSlots()- Specified by:
clearCraftingSlotsin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official lLcqw;l()Vintermediary method_7657Lnet/minecraft/class_1729;method_7657()Vnamed clearCraftingSlotsLnet/minecraft/screen/AbstractRecipeScreenHandler;clearCraftingSlots()V
-
matches
- Specified by:
matchesin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official aLcqw;a(Lczc;)Zintermediary method_7652Lnet/minecraft/class_1729;method_7652(Lnet/minecraft/class_8786;)Znamed matchesLnet/minecraft/screen/AbstractRecipeScreenHandler;matches(Lnet/minecraft/recipe/RecipeEntry;)Z
-
getCraftingResultSlotIndex
public int getCraftingResultSlotIndex()- Specified by:
getCraftingResultSlotIndexin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official mLcqw;m()Iintermediary method_7655Lnet/minecraft/class_1729;method_7655()Inamed getCraftingResultSlotIndexLnet/minecraft/screen/AbstractRecipeScreenHandler;getCraftingResultSlotIndex()I
-
getCraftingWidth
public int getCraftingWidth()- Specified by:
getCraftingWidthin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official nLcqw;n()Iintermediary method_7653Lnet/minecraft/class_1729;method_7653()Inamed getCraftingWidthLnet/minecraft/screen/AbstractRecipeScreenHandler;getCraftingWidth()I
-
getCraftingHeight
public int getCraftingHeight()- Specified by:
getCraftingHeightin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official oLcqw;o()Iintermediary method_7656Lnet/minecraft/class_1729;method_7656()Inamed getCraftingHeightLnet/minecraft/screen/AbstractRecipeScreenHandler;getCraftingHeight()I
-
getCraftingSlotCount
public int getCraftingSlotCount()- Specified by:
getCraftingSlotCountin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official pLcqw;p()Iintermediary method_7658Lnet/minecraft/class_1729;method_7658()Inamed getCraftingSlotCountLnet/minecraft/screen/AbstractRecipeScreenHandler;getCraftingSlotCount()I
-
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
-
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;
-
isRefinable
- Mappings:
Namespace Name Mixin selector official cLcqv;c(Lcuh;)Zintermediary method_59020Lnet/minecraft/class_9522;method_59020(Lnet/minecraft/class_1799;)Znamed isRefinableLnet/minecraft/screen/PotatoRefineryScreenHandler;isRefinable(Lnet/minecraft/item/ItemStack;)Z
-
isFuel
- Mappings:
Namespace Name Mixin selector official dLcqv;d(Lcuh;)Zintermediary method_59021Lnet/minecraft/class_9522;method_59021(Lnet/minecraft/class_1799;)Znamed isFuelLnet/minecraft/screen/PotatoRefineryScreenHandler;isFuel(Lnet/minecraft/item/ItemStack;)Z
-
getRefiningProgress
public float getRefiningProgress()- Mappings:
Namespace Name Mixin selector official qLcqv;q()Fintermediary method_59022Lnet/minecraft/class_9522;method_59022()Fnamed getRefiningProgressLnet/minecraft/screen/PotatoRefineryScreenHandler;getRefiningProgress()F
-
getFuelProgress
public float getFuelProgress()- Mappings:
Namespace Name Mixin selector official rLcqv;r()Fintermediary method_59023Lnet/minecraft/class_9522;method_59023()Fnamed getFuelProgressLnet/minecraft/screen/PotatoRefineryScreenHandler;getFuelProgress()F
-
isBurning
public boolean isBurning()- Mappings:
Namespace Name Mixin selector official sLcqv;s()Zintermediary method_59024Lnet/minecraft/class_9522;method_59024()Znamed isBurningLnet/minecraft/screen/PotatoRefineryScreenHandler;isBurning()Z
-
getCategory
- Specified by:
getCategoryin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official tLcqw;t()Lcqx;intermediary method_30264Lnet/minecraft/class_1729;method_30264()Lnet/minecraft/class_5421;named getCategoryLnet/minecraft/screen/AbstractRecipeScreenHandler;getCategory()Lnet/minecraft/recipe/book/RecipeBookCategory;
-
canInsertIntoSlot
public boolean canInsertIntoSlot(int index) - Specified by:
canInsertIntoSlotin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official eLcqw;e(I)Zintermediary method_32339Lnet/minecraft/class_1729;method_32339(I)Znamed canInsertIntoSlotLnet/minecraft/screen/AbstractRecipeScreenHandler;canInsertIntoSlot(I)Z
-