Package net.minecraft
Class class_9522
- Mappings:
Namespace Name official cqvintermediary net/minecraft/class_9522named net/minecraft/class_9522
-
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 intprotected final Worldprivate static final intprivate static final intprivate static final intprivate static final intprivate final Inventoryprivate final PropertyDelegateprivate final RecipeType<PotatoRefinementRecipe> private final RecipeBookCategoryFields 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
ConstructorsModifierConstructorDescriptionclass_9522(int int2, PlayerInventory playerInventory) class_9522(int int2, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate) privateclass_9522(ScreenHandlerType<?> screenHandlerType, RecipeType<PotatoRefinementRecipe> recipeType, RecipeBookCategory recipeBookCategory, int int2, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanInsertIntoSlot(int index) booleancanUse(PlayerEntity player) Returns whether the screen handler can be used.voidintintintintbooleanmatches(RecipeEntry<? extends Recipe<Inventory>> recipe) protected booleanmethod_59020(ItemStack itemStack) protected booleanmethod_59021(ItemStack itemStack) floatfloatbooleanvoidpopulateRecipeFinder(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/class_9522;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/class_9522;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/class_9522;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/class_9522;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/class_9522;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/class_9522;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/class_9522;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/class_9522;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/class_9522;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/class_9522;field_50577:I
-
field_50578
- Mappings:
Namespace Name Mixin selector official vLcqv;v:Lbpt;intermediary field_50578Lnet/minecraft/class_9522;field_50578:Lnet/minecraft/class_1263;named field_50578Lnet/minecraft/class_9522;field_50578:Lnet/minecraft/inventory/Inventory;
-
field_50579
- Mappings:
Namespace Name Mixin selector official wLcqv;w:Lcpq;intermediary field_50579Lnet/minecraft/class_9522;field_50579:Lnet/minecraft/class_3913;named field_50579Lnet/minecraft/class_9522;field_50579:Lnet/minecraft/screen/PropertyDelegate;
-
field_50573
- Mappings:
Namespace Name Mixin selector official qLcqv;q:Ldca;intermediary field_50573Lnet/minecraft/class_9522;field_50573:Lnet/minecraft/class_1937;named field_50573Lnet/minecraft/class_9522;field_50573:Lnet/minecraft/world/World;
-
field_50580
- Mappings:
Namespace Name Mixin selector official xLcqv;x:Lczf;intermediary field_50580Lnet/minecraft/class_9522;field_50580:Lnet/minecraft/class_3956;named field_50580Lnet/minecraft/class_9522;field_50580:Lnet/minecraft/recipe/RecipeType;
-
field_50581
- Mappings:
Namespace Name Mixin selector official yLcqv;y:Lcqx;intermediary field_50581Lnet/minecraft/class_9522;field_50581:Lnet/minecraft/class_5421;named field_50581Lnet/minecraft/class_9522;field_50581:Lnet/minecraft/recipe/book/RecipeBookCategory;
-
-
Constructor Details
-
class_9522
-
class_9522
public class_9522(int int2, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate) -
class_9522
private class_9522(ScreenHandlerType<?> screenHandlerType, RecipeType<PotatoRefinementRecipe> recipeType, RecipeBookCategory recipeBookCategory, int int2, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
-
-
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;
-
method_59020
- Mappings:
Namespace Name Mixin selector official cLcqv;c(Lcuh;)Zintermediary method_59020Lnet/minecraft/class_9522;method_59020(Lnet/minecraft/class_1799;)Znamed method_59020Lnet/minecraft/class_9522;method_59020(Lnet/minecraft/item/ItemStack;)Z
-
method_59021
- Mappings:
Namespace Name Mixin selector official dLcqv;d(Lcuh;)Zintermediary method_59021Lnet/minecraft/class_9522;method_59021(Lnet/minecraft/class_1799;)Znamed method_59021Lnet/minecraft/class_9522;method_59021(Lnet/minecraft/item/ItemStack;)Z
-
method_59022
public float method_59022()- Mappings:
Namespace Name Mixin selector official qLcqv;q()Fintermediary method_59022Lnet/minecraft/class_9522;method_59022()Fnamed method_59022Lnet/minecraft/class_9522;method_59022()F
-
method_59023
public float method_59023()- Mappings:
Namespace Name Mixin selector official rLcqv;r()Fintermediary method_59023Lnet/minecraft/class_9522;method_59023()Fnamed method_59023Lnet/minecraft/class_9522;method_59023()F
-
method_59024
public boolean method_59024()- Mappings:
Namespace Name Mixin selector official sLcqv;s()Zintermediary method_59024Lnet/minecraft/class_9522;method_59024()Znamed method_59024Lnet/minecraft/class_9522;method_59024()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
-