Package net.minecraft.screen
Class FletchingScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.FletchingScreenHandler
- Mappings:
Namespace Name official cqbintermediary net/minecraft/class_9519named net/minecraft/screen/FletchingScreenHandler
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final Slotprivate final Inventoryprivate final PropertyDelegateFields 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
ConstructorsConstructorDescriptionFletchingScreenHandler(int syncId, PlayerInventory playerInventory) FletchingScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse(PlayerEntity player) Returns whether the screen handler can be used.charcharintintcharbooleanquickMove(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.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_50530
public static final int field_50530- See Also:
- Mappings:
Namespace Name Mixin selector official kLcqb;k:Iintermediary field_50530Lnet/minecraft/class_9519;field_50530:Inamed field_50530Lnet/minecraft/screen/FletchingScreenHandler;field_50530:I
-
field_50531
public static final int field_50531- See Also:
- Mappings:
Namespace Name Mixin selector official lLcqb;l:Iintermediary field_50531Lnet/minecraft/class_9519;field_50531:Inamed field_50531Lnet/minecraft/screen/FletchingScreenHandler;field_50531:I
-
field_50532
public static final int field_50532- See Also:
- Mappings:
Namespace Name Mixin selector official mLcqb;m:Iintermediary field_50532Lnet/minecraft/class_9519;field_50532:Inamed field_50532Lnet/minecraft/screen/FletchingScreenHandler;field_50532:I
-
field_50534
private static final int field_50534- See Also:
- Mappings:
Namespace Name Mixin selector official oLcqb;o:Iintermediary field_50534Lnet/minecraft/class_9519;field_50534:Inamed field_50534Lnet/minecraft/screen/FletchingScreenHandler;field_50534:I
-
field_50535
private static final int field_50535- See Also:
- Mappings:
Namespace Name Mixin selector official pLcqb;p:Iintermediary field_50535Lnet/minecraft/class_9519;field_50535:Inamed field_50535Lnet/minecraft/screen/FletchingScreenHandler;field_50535:I
-
field_50536
private static final int field_50536- See Also:
- Mappings:
Namespace Name Mixin selector official qLcqb;q:Iintermediary field_50536Lnet/minecraft/class_9519;field_50536:Inamed field_50536Lnet/minecraft/screen/FletchingScreenHandler;field_50536:I
-
field_50537
private static final int field_50537- See Also:
- Mappings:
Namespace Name Mixin selector official rLcqb;r:Iintermediary field_50537Lnet/minecraft/class_9519;field_50537:Inamed field_50537Lnet/minecraft/screen/FletchingScreenHandler;field_50537:I
-
field_50538
private static final int field_50538- See Also:
- Mappings:
Namespace Name Mixin selector official sLcqb;s:Iintermediary field_50538Lnet/minecraft/class_9519;field_50538:Inamed field_50538Lnet/minecraft/screen/FletchingScreenHandler;field_50538:I
-
field_50533
public static final int field_50533- See Also:
- Mappings:
Namespace Name Mixin selector official nLcqb;n:Iintermediary field_50533Lnet/minecraft/class_9519;field_50533:Inamed field_50533Lnet/minecraft/screen/FletchingScreenHandler;field_50533:I
-
inventory
- Mappings:
Namespace Name Mixin selector official tLcqb;t:Lbpt;intermediary field_50539Lnet/minecraft/class_9519;field_50539:Lnet/minecraft/class_1263;named inventoryLnet/minecraft/screen/FletchingScreenHandler;inventory:Lnet/minecraft/inventory/Inventory;
-
propertyDelegate
- Mappings:
Namespace Name Mixin selector official uLcqb;u:Lcpq;intermediary field_50540Lnet/minecraft/class_9519;field_50540:Lnet/minecraft/class_3913;named propertyDelegateLnet/minecraft/screen/FletchingScreenHandler;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
-
inputSlot
- Mappings:
Namespace Name Mixin selector official vLcqb;v:Lcre;intermediary field_50541Lnet/minecraft/class_9519;field_50541:Lnet/minecraft/class_1735;named inputSlotLnet/minecraft/screen/FletchingScreenHandler;inputSlot:Lnet/minecraft/screen/slot/Slot;
-
-
Constructor Details
-
FletchingScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Lcqb;<init>(ILclx;)Vintermediary <init>Lnet/minecraft/class_9519;<init>(ILnet/minecraft/class_1661;)Vnamed <init>Lnet/minecraft/screen/FletchingScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
-
FletchingScreenHandler
public FletchingScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate) - Mappings:
Namespace Name Mixin selector official <init>Lcqb;<init>(ILclx;Lbpt;Lcpq;)Vintermediary <init>Lnet/minecraft/class_9519;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_1263;Lnet/minecraft/class_3913;)Vnamed <init>Lnet/minecraft/screen/FletchingScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/screen/PropertyDelegate;)V
-
-
Method Details
-
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;
-
getProgress
public int getProgress()- Mappings:
Namespace Name Mixin selector official lLcqb;l()Iintermediary method_59001Lnet/minecraft/class_9519;method_59001()Inamed getProgressLnet/minecraft/screen/FletchingScreenHandler;getProgress()I
-
getQuality
public char getQuality()- Mappings:
Namespace Name Mixin selector official mLcqb;m()Cintermediary method_59002Lnet/minecraft/class_9519;method_59002()Cnamed getQualityLnet/minecraft/screen/FletchingScreenHandler;getQuality()C
-
getImpurities
public char getImpurities()- Mappings:
Namespace Name Mixin selector official nLcqb;n()Cintermediary method_59003Lnet/minecraft/class_9519;method_59003()Cnamed getImpuritiesLnet/minecraft/screen/FletchingScreenHandler;getImpurities()C
-
getNextLevelImpurities
public char getNextLevelImpurities()- Mappings:
Namespace Name Mixin selector official oLcqb;o()Cintermediary method_59004Lnet/minecraft/class_9519;method_59004()Cnamed getNextLevelImpuritiesLnet/minecraft/screen/FletchingScreenHandler;getNextLevelImpurities()C
-
getProcessTime
public int getProcessTime()- Mappings:
Namespace Name Mixin selector official pLcqb;p()Iintermediary method_59005Lnet/minecraft/class_9519;method_59005()Inamed getProcessTimeLnet/minecraft/screen/FletchingScreenHandler;getProcessTime()I
-
isExplored
public boolean isExplored()- Mappings:
Namespace Name Mixin selector official qLcqb;q()Zintermediary method_59006Lnet/minecraft/class_9519;method_59006()Znamed isExploredLnet/minecraft/screen/FletchingScreenHandler;isExplored()Z
-