Package net.minecraft
Class class_9519
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.class_9519
- Mappings:
Namespace Name official cqbintermediary net/minecraft/class_9519named net/minecraft/class_9519
-
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 Inventoryprivate final PropertyDelegateprivate final SlotFields 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
ConstructorsConstructorDescriptionclass_9519(int int2, PlayerInventory playerInventory) class_9519(int int2, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse(PlayerEntity player) Returns whether the screen handler can be used.intcharcharcharintbooleanquickMove(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/class_9519;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/class_9519;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/class_9519;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/class_9519;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/class_9519;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/class_9519;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/class_9519;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/class_9519;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/class_9519;field_50533:I
-
field_50539
- Mappings:
Namespace Name Mixin selector official tLcqb;t:Lbpt;intermediary field_50539Lnet/minecraft/class_9519;field_50539:Lnet/minecraft/class_1263;named field_50539Lnet/minecraft/class_9519;field_50539:Lnet/minecraft/inventory/Inventory;
-
field_50540
- Mappings:
Namespace Name Mixin selector official uLcqb;u:Lcpq;intermediary field_50540Lnet/minecraft/class_9519;field_50540:Lnet/minecraft/class_3913;named field_50540Lnet/minecraft/class_9519;field_50540:Lnet/minecraft/screen/PropertyDelegate;
-
field_50541
- Mappings:
Namespace Name Mixin selector official vLcqb;v:Lcre;intermediary field_50541Lnet/minecraft/class_9519;field_50541:Lnet/minecraft/class_1735;named field_50541Lnet/minecraft/class_9519;field_50541:Lnet/minecraft/screen/slot/Slot;
-
-
Constructor Details
-
class_9519
-
class_9519
public class_9519(int int2, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
-
-
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;
-
method_59001
public int method_59001()- Mappings:
Namespace Name Mixin selector official lLcqb;l()Iintermediary method_59001Lnet/minecraft/class_9519;method_59001()Inamed method_59001Lnet/minecraft/class_9519;method_59001()I
-
method_59002
public char method_59002()- Mappings:
Namespace Name Mixin selector official mLcqb;m()Cintermediary method_59002Lnet/minecraft/class_9519;method_59002()Cnamed method_59002Lnet/minecraft/class_9519;method_59002()C
-
method_59003
public char method_59003()- Mappings:
Namespace Name Mixin selector official nLcqb;n()Cintermediary method_59003Lnet/minecraft/class_9519;method_59003()Cnamed method_59003Lnet/minecraft/class_9519;method_59003()C
-
method_59004
public char method_59004()- Mappings:
Namespace Name Mixin selector official oLcqb;o()Cintermediary method_59004Lnet/minecraft/class_9519;method_59004()Cnamed method_59004Lnet/minecraft/class_9519;method_59004()C
-
method_59005
public int method_59005()- Mappings:
Namespace Name Mixin selector official pLcqb;p()Iintermediary method_59005Lnet/minecraft/class_9519;method_59005()Inamed method_59005Lnet/minecraft/class_9519;method_59005()I
-
method_59006
public boolean method_59006()- Mappings:
Namespace Name Mixin selector official qLcqb;q()Zintermediary method_59006Lnet/minecraft/class_9519;method_59006()Znamed method_59006Lnet/minecraft/class_9519;method_59006()Z
-