类 ScreenHandler
- java.lang.Object
-
- net.minecraft.screen.ScreenHandler
-
- 直接已知子类:
AbstractRecipeScreenHandler,BeaconScreenHandler,BrewingStandScreenHandler,CartographyTableScreenHandler,CreativeInventoryScreen.CreativeScreenHandler,EnchantmentScreenHandler,ForgingScreenHandler,Generic3x3ContainerScreenHandler,GenericContainerScreenHandler,GrindstoneScreenHandler,HopperScreenHandler,HorseScreenHandler,LecternScreenHandler,LoomScreenHandler,MerchantScreenHandler,ShulkerBoxScreenHandler,StonecutterScreenHandler
public abstract class ScreenHandler extends Object
- Mappings:
Namespace Name official bllintermediary net/minecraft/class_1703named net/minecraft/screen/ScreenHandler
-
-
字段概要
字段 修饰符和类型 字段 说明 private ItemStackcursorStackprivate booleandisableSyncstatic intEMPTY_SPACE_SLOT_INDEXA special slot index value (-999) indicating that the player has clicked outside the main panel of a screen.static intfield_30731static intfield_30732static intfield_30733static intfield_30734static intfield_30735static intfield_30736static intfield_30737private List<ScreenHandlerListener>listenersprivate ItemStackpreviousCursorStackprivate DefaultedList<ItemStack>previousTrackedStacksprivate List<Property>propertiesprivate intquickCraftButtonprivate Set<Slot>quickCraftSlotsprivate intquickCraftStageDefaultedList<Slot>slotsprivate @Nullable ScreenHandlerSyncHandlersyncHandlerintsyncIdprivate IntListtrackedPropertyValuesprivate DefaultedList<ItemStack>trackedStacksA list of item stacks that is used for tracking changes insendContentUpdates().private @Nullable ScreenHandlerType<?>type
-
构造器概要
构造器 限定符 构造器 说明 protectedScreenHandler(@Nullable ScreenHandlerType<?> type, int syncId)
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 voidaddListener(ScreenHandlerListener listener)protected voidaddProperties(PropertyDelegate propertyDelegate)protected PropertyaddProperty(Property property)protected SlotaddSlot(Slot slot)static intcalculateComparatorOutput(@Nullable BlockEntity entity)static intcalculateComparatorOutput(@Nullable Inventory inventory)static voidcalculateStackSize(Set<Slot> slots, int mode, ItemStack stack, int stackSize)booleancanInsertIntoSlot(ItemStack stack, Slot slot)booleancanInsertIntoSlot(Slot slot)static booleancanInsertItemIntoSlot(@Nullable Slot slot, ItemStack stack, boolean allowOverflow)abstract booleancanUse(PlayerEntity player)protected static booleancanUse(ScreenHandlerContext context, PlayerEntity player, Block block)private voidcheckCursorStackUpdates()protected static voidcheckDataCount(PropertyDelegate data, int expectedCount)Checks that the size of thedatais at least as large as theexpectedCount.private voidcheckPropertyUpdates(int id, int value)protected static voidcheckSize(Inventory inventory, int expectedSize)Checks that the size of the provided inventory is at least as large as theexpectedSize.private voidcheckSlotUpdates(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)voidclose(PlayerEntity player)voidcopySharedSlots(ScreenHandler handler)voiddisableSyncing()protected voiddropInventory(PlayerEntity player, Inventory inventory)voidenableSyncing()protected voidendQuickCraft()private CommandItemSlotgetCursorCommandItemSlot()ItemStackgetCursorStack()SlotgetSlot(int index)DefaultedList<ItemStack>getStacks()ScreenHandlerType<?>getType()protected booleaninsertItem(ItemStack stack, int startIndex, int endIndex, boolean fromLast)private voidinternalOnSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player)The actual logic that handles a slot click.booleanonButtonClick(PlayerEntity player, int id)voidonContentChanged(Inventory inventory)voidonSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player)Performs a slot click.static intpackQuickCraftData(int quickCraftStage, int buttonId)voidremoveListener(ScreenHandlerListener listener)voidsendContentUpdates()Sends updates to listeners if any properties or slot stacks have changed.voidsetCursorStack(ItemStack stack)voidsetPreviousCursorStack(ItemStack stack)voidsetPreviousTrackedSlot(int slot, ItemStack stack)voidsetProperty(int id, int value)voidsetStackInSlot(int slot, ItemStack stack)static booleanshouldQuickCraftContinue(int stage, PlayerEntity player)voidsyncState()ItemStacktransferSlot(PlayerEntity player, int index)static intunpackQuickCraftButton(int quickCraftData)static intunpackQuickCraftStage(int quickCraftData)voidupdateSlotStacks(List<ItemStack> stacks)voidupdateSyncHandler(ScreenHandlerSyncHandler handler)private voidupdateTrackedSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)
-
-
-
字段详细资料
-
EMPTY_SPACE_SLOT_INDEX
public static final int EMPTY_SPACE_SLOT_INDEX
A special slot index value (-999) indicating that the player has clicked outside the main panel of a screen. Used for dropping the cursor stack.- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLbll;a:Iintermediary field_30730Lnet/minecraft/class_1703;field_30730:Inamed EMPTY_SPACE_SLOT_INDEXLnet/minecraft/screen/ScreenHandler;EMPTY_SPACE_SLOT_INDEX:I
-
field_30731
public static final int field_30731
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLbll;b:Iintermediary field_30731Lnet/minecraft/class_1703;field_30731:Inamed field_30731Lnet/minecraft/screen/ScreenHandler;field_30731:I
-
field_30732
public static final int field_30732
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLbll;c:Iintermediary field_30732Lnet/minecraft/class_1703;field_30732:Inamed field_30732Lnet/minecraft/screen/ScreenHandler;field_30732:I
-
field_30733
public static final int field_30733
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official dLbll;d:Iintermediary field_30733Lnet/minecraft/class_1703;field_30733:Inamed field_30733Lnet/minecraft/screen/ScreenHandler;field_30733:I
-
field_30734
public static final int field_30734
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official eLbll;e:Iintermediary field_30734Lnet/minecraft/class_1703;field_30734:Inamed field_30734Lnet/minecraft/screen/ScreenHandler;field_30734:I
-
field_30735
public static final int field_30735
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official fLbll;f:Iintermediary field_30735Lnet/minecraft/class_1703;field_30735:Inamed field_30735Lnet/minecraft/screen/ScreenHandler;field_30735:I
-
field_30736
public static final int field_30736
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official gLbll;g:Iintermediary field_30736Lnet/minecraft/class_1703;field_30736:Inamed field_30736Lnet/minecraft/screen/ScreenHandler;field_30736:I
-
field_30737
public static final int field_30737
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official hLbll;h:Iintermediary field_30737Lnet/minecraft/class_1703;field_30737:Inamed field_30737Lnet/minecraft/screen/ScreenHandler;field_30737:I
-
trackedStacks
private final DefaultedList<ItemStack> trackedStacks
A list of item stacks that is used for tracking changes insendContentUpdates().- Mappings:
Namespace Name Mixin selector official kLbll;k:Lgn;intermediary field_7764Lnet/minecraft/class_1703;field_7764:Lnet/minecraft/class_2371;named trackedStacksLnet/minecraft/screen/ScreenHandler;trackedStacks:Lnet/minecraft/util/collection/DefaultedList;
-
slots
public final DefaultedList<Slot> slots
- Mappings:
Namespace Name Mixin selector official iLbll;i:Lgn;intermediary field_7761Lnet/minecraft/class_1703;field_7761:Lnet/minecraft/class_2371;named slotsLnet/minecraft/screen/ScreenHandler;slots:Lnet/minecraft/util/collection/DefaultedList;
-
properties
private final List<Property> properties
- Mappings:
Namespace Name Mixin selector official lLbll;l:Ljava/util/List;intermediary field_17285Lnet/minecraft/class_1703;field_17285:Ljava/util/List;named propertiesLnet/minecraft/screen/ScreenHandler;properties:Ljava/util/List;
-
cursorStack
private ItemStack cursorStack
- Mappings:
Namespace Name Mixin selector official mLbll;m:Lbpr;intermediary field_29205Lnet/minecraft/class_1703;field_29205:Lnet/minecraft/class_1799;named cursorStackLnet/minecraft/screen/ScreenHandler;cursorStack:Lnet/minecraft/item/ItemStack;
-
previousTrackedStacks
private final DefaultedList<ItemStack> previousTrackedStacks
- Mappings:
Namespace Name Mixin selector official nLbll;n:Lgn;intermediary field_29206Lnet/minecraft/class_1703;field_29206:Lnet/minecraft/class_2371;named previousTrackedStacksLnet/minecraft/screen/ScreenHandler;previousTrackedStacks:Lnet/minecraft/util/collection/DefaultedList;
-
trackedPropertyValues
private final IntList trackedPropertyValues
- Mappings:
Namespace Name Mixin selector official oLbll;o:Lit/unimi/dsi/fastutil/ints/IntList;intermediary field_29559Lnet/minecraft/class_1703;field_29559:Lit/unimi/dsi/fastutil/ints/IntList;named trackedPropertyValuesLnet/minecraft/screen/ScreenHandler;trackedPropertyValues:Lit/unimi/dsi/fastutil/ints/IntList;
-
previousCursorStack
private ItemStack previousCursorStack
- Mappings:
Namespace Name Mixin selector official pLbll;p:Lbpr;intermediary field_29207Lnet/minecraft/class_1703;field_29207:Lnet/minecraft/class_1799;named previousCursorStackLnet/minecraft/screen/ScreenHandler;previousCursorStack:Lnet/minecraft/item/ItemStack;
-
type
@Nullable private final @Nullable ScreenHandlerType<?> type
- Mappings:
Namespace Name Mixin selector official qLbll;q:Lbmp;intermediary field_17493Lnet/minecraft/class_1703;field_17493:Lnet/minecraft/class_3917;named typeLnet/minecraft/screen/ScreenHandler;type:Lnet/minecraft/screen/ScreenHandlerType;
-
syncId
public final int syncId
- Mappings:
Namespace Name Mixin selector official jLbll;j:Iintermediary field_7763Lnet/minecraft/class_1703;field_7763:Inamed syncIdLnet/minecraft/screen/ScreenHandler;syncId:I
-
quickCraftButton
private int quickCraftButton
- Mappings:
Namespace Name Mixin selector official rLbll;r:Iintermediary field_7762Lnet/minecraft/class_1703;field_7762:Inamed quickCraftButtonLnet/minecraft/screen/ScreenHandler;quickCraftButton:I
-
quickCraftStage
private int quickCraftStage
- Mappings:
Namespace Name Mixin selector official sLbll;s:Iintermediary field_7759Lnet/minecraft/class_1703;field_7759:Inamed quickCraftStageLnet/minecraft/screen/ScreenHandler;quickCraftStage:I
-
quickCraftSlots
private final Set<Slot> quickCraftSlots
- Mappings:
Namespace Name Mixin selector official tLbll;t:Ljava/util/Set;intermediary field_7757Lnet/minecraft/class_1703;field_7757:Ljava/util/Set;named quickCraftSlotsLnet/minecraft/screen/ScreenHandler;quickCraftSlots:Ljava/util/Set;
-
listeners
private final List<ScreenHandlerListener> listeners
- Mappings:
Namespace Name Mixin selector official uLbll;u:Ljava/util/List;intermediary field_7765Lnet/minecraft/class_1703;field_7765:Ljava/util/List;named listenersLnet/minecraft/screen/ScreenHandler;listeners:Ljava/util/List;
-
syncHandler
@Nullable private @Nullable ScreenHandlerSyncHandler syncHandler
- Mappings:
Namespace Name Mixin selector official vLbll;v:Lbly;intermediary field_29208Lnet/minecraft/class_1703;field_29208:Lnet/minecraft/class_5916;named syncHandlerLnet/minecraft/screen/ScreenHandler;syncHandler:Lnet/minecraft/screen/ScreenHandlerSyncHandler;
-
disableSync
private boolean disableSync
- Mappings:
Namespace Name Mixin selector official wLbll;w:Zintermediary field_29209Lnet/minecraft/class_1703;field_29209:Znamed disableSyncLnet/minecraft/screen/ScreenHandler;disableSync:Z
-
-
构造器详细资料
-
ScreenHandler
protected ScreenHandler(@Nullable @Nullable ScreenHandlerType<?> type, int syncId)
- Mappings:
Namespace Name Mixin selector official <init>Lbll;<init>(Lbmp;I)Vintermediary <init>Lnet/minecraft/class_1703;<init>(Lnet/minecraft/class_3917;I)Vnamed <init>Lnet/minecraft/screen/ScreenHandler;<init>(Lnet/minecraft/screen/ScreenHandlerType;I)V
-
-
方法详细资料
-
canUse
protected static boolean canUse(ScreenHandlerContext context, PlayerEntity player, Block block)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lblw;Lbjf;Lbyq;)Zintermediary method_17695Lnet/minecraft/class_1703;method_17695(Lnet/minecraft/class_3914;Lnet/minecraft/class_1657;Lnet/minecraft/class_2248;)Znamed canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/screen/ScreenHandlerContext;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/block/Block;)Z
-
getType
public ScreenHandlerType<?> getType()
- Mappings:
Namespace Name Mixin selector official aLbll;a()Lbmp;intermediary method_17358Lnet/minecraft/class_1703;method_17358()Lnet/minecraft/class_3917;named getTypeLnet/minecraft/screen/ScreenHandler;getType()Lnet/minecraft/screen/ScreenHandlerType;
-
checkSize
protected static void checkSize(Inventory inventory, int expectedSize)
Checks that the size of the provided inventory is at least as large as theexpectedSize.- 抛出:
IllegalArgumentException- if the inventory size is smaller thanexpectedSize- Mappings:
Namespace Name Mixin selector official aLbll;a(Laqz;I)Vintermediary method_17359Lnet/minecraft/class_1703;method_17359(Lnet/minecraft/class_1263;I)Vnamed checkSizeLnet/minecraft/screen/ScreenHandler;checkSize(Lnet/minecraft/inventory/Inventory;I)V
-
checkDataCount
protected static void checkDataCount(PropertyDelegate data, int expectedCount)
Checks that the size of thedatais at least as large as theexpectedCount.- 抛出:
IllegalArgumentException- if thedatahas a smaller size thanexpectedCount- Mappings:
Namespace Name Mixin selector official aLbll;a(Lblv;I)Vintermediary method_17361Lnet/minecraft/class_1703;method_17361(Lnet/minecraft/class_3913;I)Vnamed checkDataCountLnet/minecraft/screen/ScreenHandler;checkDataCount(Lnet/minecraft/screen/PropertyDelegate;I)V
-
addSlot
protected Slot addSlot(Slot slot)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lbnc;)Lbnc;intermediary method_7621Lnet/minecraft/class_1703;method_7621(Lnet/minecraft/class_1735;)Lnet/minecraft/class_1735;named addSlotLnet/minecraft/screen/ScreenHandler;addSlot(Lnet/minecraft/screen/slot/Slot;)Lnet/minecraft/screen/slot/Slot;
-
addProperty
protected Property addProperty(Property property)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lbmb;)Lbmb;intermediary method_17362Lnet/minecraft/class_1703;method_17362(Lnet/minecraft/class_3915;)Lnet/minecraft/class_3915;named addPropertyLnet/minecraft/screen/ScreenHandler;addProperty(Lnet/minecraft/screen/Property;)Lnet/minecraft/screen/Property;
-
addProperties
protected void addProperties(PropertyDelegate propertyDelegate)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lblv;)Vintermediary method_17360Lnet/minecraft/class_1703;method_17360(Lnet/minecraft/class_3913;)Vnamed addPropertiesLnet/minecraft/screen/ScreenHandler;addProperties(Lnet/minecraft/screen/PropertyDelegate;)V
-
addListener
public void addListener(ScreenHandlerListener listener)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lblx;)Vintermediary method_7596Lnet/minecraft/class_1703;method_7596(Lnet/minecraft/class_1712;)Vnamed addListenerLnet/minecraft/screen/ScreenHandler;addListener(Lnet/minecraft/screen/ScreenHandlerListener;)V
-
updateSyncHandler
public void updateSyncHandler(ScreenHandlerSyncHandler handler)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lbly;)Vintermediary method_34248Lnet/minecraft/class_1703;method_34248(Lnet/minecraft/class_5916;)Vnamed updateSyncHandlerLnet/minecraft/screen/ScreenHandler;updateSyncHandler(Lnet/minecraft/screen/ScreenHandlerSyncHandler;)V
-
syncState
public void syncState()
- Mappings:
Namespace Name Mixin selector official bLbll;b()Vintermediary method_34252Lnet/minecraft/class_1703;method_34252()Vnamed syncStateLnet/minecraft/screen/ScreenHandler;syncState()V
-
removeListener
public void removeListener(ScreenHandlerListener listener)
- Mappings:
Namespace Name Mixin selector official bLbll;b(Lblx;)Vintermediary method_7603Lnet/minecraft/class_1703;method_7603(Lnet/minecraft/class_1712;)Vnamed removeListenerLnet/minecraft/screen/ScreenHandler;removeListener(Lnet/minecraft/screen/ScreenHandlerListener;)V
-
getStacks
public DefaultedList<ItemStack> getStacks()
- Mappings:
Namespace Name Mixin selector official cLbll;c()Lgn;intermediary method_7602Lnet/minecraft/class_1703;method_7602()Lnet/minecraft/class_2371;named getStacksLnet/minecraft/screen/ScreenHandler;getStacks()Lnet/minecraft/util/collection/DefaultedList;
-
sendContentUpdates
public void sendContentUpdates()
Sends updates to listeners if any properties or slot stacks have changed.- Mappings:
Namespace Name Mixin selector official dLbll;d()Vintermediary method_7623Lnet/minecraft/class_1703;method_7623()Vnamed sendContentUpdatesLnet/minecraft/screen/ScreenHandler;sendContentUpdates()V
-
updateTrackedSlot
private void updateTrackedSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)- Mappings:
Namespace Name Mixin selector official aLbll;a(ILbpr;Ljava/util/function/Supplier;)Vintermediary method_34246Lnet/minecraft/class_1703;method_34246(ILnet/minecraft/class_1799;Ljava/util/function/Supplier;)Vnamed updateTrackedSlotLnet/minecraft/screen/ScreenHandler;updateTrackedSlot(ILnet/minecraft/item/ItemStack;Ljava/util/function/Supplier;)V
-
checkSlotUpdates
private void checkSlotUpdates(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)- Mappings:
Namespace Name Mixin selector official bLbll;b(ILbpr;Ljava/util/function/Supplier;)Vintermediary method_34253Lnet/minecraft/class_1703;method_34253(ILnet/minecraft/class_1799;Ljava/util/function/Supplier;)Vnamed checkSlotUpdatesLnet/minecraft/screen/ScreenHandler;checkSlotUpdates(ILnet/minecraft/item/ItemStack;Ljava/util/function/Supplier;)V
-
checkPropertyUpdates
private void checkPropertyUpdates(int id, int value)- Mappings:
Namespace Name Mixin selector official cLbll;c(II)Vintermediary method_34715Lnet/minecraft/class_1703;method_34715(II)Vnamed checkPropertyUpdatesLnet/minecraft/screen/ScreenHandler;checkPropertyUpdates(II)V
-
checkCursorStackUpdates
private void checkCursorStackUpdates()
- Mappings:
Namespace Name Mixin selector official iLbll;i()Vintermediary method_34258Lnet/minecraft/class_1703;method_34258()Vnamed checkCursorStackUpdatesLnet/minecraft/screen/ScreenHandler;checkCursorStackUpdates()V
-
setPreviousTrackedSlot
public void setPreviousTrackedSlot(int slot, ItemStack stack)- Mappings:
Namespace Name Mixin selector official aLbll;a(ILbpr;)Vintermediary method_34245Lnet/minecraft/class_1703;method_34245(ILnet/minecraft/class_1799;)Vnamed setPreviousTrackedSlotLnet/minecraft/screen/ScreenHandler;setPreviousTrackedSlot(ILnet/minecraft/item/ItemStack;)V
-
setPreviousCursorStack
public void setPreviousCursorStack(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lbpr;)Vintermediary method_34250Lnet/minecraft/class_1703;method_34250(Lnet/minecraft/class_1799;)Vnamed setPreviousCursorStackLnet/minecraft/screen/ScreenHandler;setPreviousCursorStack(Lnet/minecraft/item/ItemStack;)V
-
onButtonClick
public boolean onButtonClick(PlayerEntity player, int id)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lbjf;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
-
getSlot
public Slot getSlot(int index)
- Mappings:
Namespace Name Mixin selector official aLbll;a(I)Lbnc;intermediary method_7611Lnet/minecraft/class_1703;method_7611(I)Lnet/minecraft/class_1735;named getSlotLnet/minecraft/screen/ScreenHandler;getSlot(I)Lnet/minecraft/screen/slot/Slot;
-
transferSlot
public ItemStack transferSlot(PlayerEntity player, int index)
- Mappings:
Namespace Name Mixin selector official bLbll;b(Lbjf;I)Lbpr;intermediary method_7601Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;named transferSlotLnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
-
onSlotClick
public void onSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player)Performs a slot click. This can behave in many different ways depending mainly on the action type.- 参数:
actionType- The type of slot click. Check the docs for each SlotActionType value for details- Mappings:
Namespace Name Mixin selector official aLbll;a(IILblu;Lbjf;)Vintermediary method_7593Lnet/minecraft/class_1703;method_7593(IILnet/minecraft/class_1713;Lnet/minecraft/class_1657;)Vnamed onSlotClickLnet/minecraft/screen/ScreenHandler;onSlotClick(IILnet/minecraft/screen/slot/SlotActionType;Lnet/minecraft/entity/player/PlayerEntity;)V
-
internalOnSlotClick
private void internalOnSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player)The actual logic that handles a slot click. Called by(int, int, SlotActionType, PlayerEntity)in a try-catch block that wraps exceptions from this method into a crash report.- Mappings:
Namespace Name Mixin selector official bLbll;b(IILblu;Lbjf;)Vintermediary method_30010Lnet/minecraft/class_1703;method_30010(IILnet/minecraft/class_1713;Lnet/minecraft/class_1657;)Vnamed internalOnSlotClickLnet/minecraft/screen/ScreenHandler;internalOnSlotClick(IILnet/minecraft/screen/slot/SlotActionType;Lnet/minecraft/entity/player/PlayerEntity;)V
-
getCursorCommandItemSlot
private CommandItemSlot getCursorCommandItemSlot()
- Mappings:
Namespace Name Mixin selector official jLbll;j()Lato;intermediary method_34259Lnet/minecraft/class_1703;method_34259()Lnet/minecraft/class_5630;named getCursorCommandItemSlotLnet/minecraft/screen/ScreenHandler;getCursorCommandItemSlot()Lnet/minecraft/inventory/CommandItemSlot;
-
canInsertIntoSlot
public boolean canInsertIntoSlot(ItemStack stack, Slot slot)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lbpr;Lbnc;)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
-
close
public void close(PlayerEntity player)
- Mappings:
Namespace Name Mixin selector official bLbll;b(Lbjf;)Vintermediary method_7595Lnet/minecraft/class_1703;method_7595(Lnet/minecraft/class_1657;)Vnamed closeLnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
-
dropInventory
protected void dropInventory(PlayerEntity player, Inventory inventory)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lbjf;Laqz;)Vintermediary method_7607Lnet/minecraft/class_1703;method_7607(Lnet/minecraft/class_1657;Lnet/minecraft/class_1263;)Vnamed dropInventoryLnet/minecraft/screen/ScreenHandler;dropInventory(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/inventory/Inventory;)V
-
onContentChanged
public void onContentChanged(Inventory inventory)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Laqz;)Vintermediary method_7609Lnet/minecraft/class_1703;method_7609(Lnet/minecraft/class_1263;)Vnamed onContentChangedLnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
-
setStackInSlot
public void setStackInSlot(int slot, ItemStack stack)- Mappings:
Namespace Name Mixin selector official bLbll;b(ILbpr;)Vintermediary method_7619Lnet/minecraft/class_1703;method_7619(ILnet/minecraft/class_1799;)Vnamed setStackInSlotLnet/minecraft/screen/ScreenHandler;setStackInSlot(ILnet/minecraft/item/ItemStack;)V
-
updateSlotStacks
public void updateSlotStacks(List<ItemStack> stacks)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Ljava/util/List;)Vintermediary method_7610Lnet/minecraft/class_1703;method_7610(Ljava/util/List;)Vnamed updateSlotStacksLnet/minecraft/screen/ScreenHandler;updateSlotStacks(Ljava/util/List;)V
-
setProperty
public void setProperty(int id, int value)- Mappings:
Namespace Name Mixin selector official aLbll;a(II)Vintermediary method_7606Lnet/minecraft/class_1703;method_7606(II)Vnamed setPropertyLnet/minecraft/screen/ScreenHandler;setProperty(II)V
-
canUse
public abstract boolean canUse(PlayerEntity player)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lbjf;)Zintermediary method_7597Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Znamed canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
insertItem
protected boolean insertItem(ItemStack stack, int startIndex, int endIndex, boolean fromLast)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lbpr;IIZ)Zintermediary method_7616Lnet/minecraft/class_1703;method_7616(Lnet/minecraft/class_1799;IIZ)Znamed insertItemLnet/minecraft/screen/ScreenHandler;insertItem(Lnet/minecraft/item/ItemStack;IIZ)Z
-
unpackQuickCraftButton
public static int unpackQuickCraftButton(int quickCraftData)
- Mappings:
Namespace Name Mixin selector official bLbll;b(I)Iintermediary method_7620Lnet/minecraft/class_1703;method_7620(I)Inamed unpackQuickCraftButtonLnet/minecraft/screen/ScreenHandler;unpackQuickCraftButton(I)I
-
unpackQuickCraftStage
public static int unpackQuickCraftStage(int quickCraftData)
- Mappings:
Namespace Name Mixin selector official cLbll;c(I)Iintermediary method_7594Lnet/minecraft/class_1703;method_7594(I)Inamed unpackQuickCraftStageLnet/minecraft/screen/ScreenHandler;unpackQuickCraftStage(I)I
-
packQuickCraftData
public static int packQuickCraftData(int quickCraftStage, int buttonId)- Mappings:
Namespace Name Mixin selector official bLbll;b(II)Iintermediary method_7591Lnet/minecraft/class_1703;method_7591(II)Inamed packQuickCraftDataLnet/minecraft/screen/ScreenHandler;packQuickCraftData(II)I
-
shouldQuickCraftContinue
public static boolean shouldQuickCraftContinue(int stage, PlayerEntity player)- Mappings:
Namespace Name Mixin selector official aLbll;a(ILbjf;)Zintermediary method_7600Lnet/minecraft/class_1703;method_7600(ILnet/minecraft/class_1657;)Znamed shouldQuickCraftContinueLnet/minecraft/screen/ScreenHandler;shouldQuickCraftContinue(ILnet/minecraft/entity/player/PlayerEntity;)Z
-
endQuickCraft
protected void endQuickCraft()
- Mappings:
Namespace Name Mixin selector official eLbll;e()Vintermediary method_7605Lnet/minecraft/class_1703;method_7605()Vnamed endQuickCraftLnet/minecraft/screen/ScreenHandler;endQuickCraft()V
-
canInsertItemIntoSlot
public static boolean canInsertItemIntoSlot(@Nullable @Nullable Slot slot, ItemStack stack, boolean allowOverflow)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lbnc;Lbpr;Z)Zintermediary method_7592Lnet/minecraft/class_1703;method_7592(Lnet/minecraft/class_1735;Lnet/minecraft/class_1799;Z)Znamed canInsertItemIntoSlotLnet/minecraft/screen/ScreenHandler;canInsertItemIntoSlot(Lnet/minecraft/screen/slot/Slot;Lnet/minecraft/item/ItemStack;Z)Z
-
calculateStackSize
public static void calculateStackSize(Set<Slot> slots, int mode, ItemStack stack, int stackSize)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Ljava/util/Set;ILbpr;I)Vintermediary method_7617Lnet/minecraft/class_1703;method_7617(Ljava/util/Set;ILnet/minecraft/class_1799;I)Vnamed calculateStackSizeLnet/minecraft/screen/ScreenHandler;calculateStackSize(Ljava/util/Set;ILnet/minecraft/item/ItemStack;I)V
-
canInsertIntoSlot
public boolean canInsertIntoSlot(Slot slot)
- Mappings:
Namespace Name Mixin selector official bLbll;b(Lbnc;)Zintermediary method_7615Lnet/minecraft/class_1703;method_7615(Lnet/minecraft/class_1735;)Znamed canInsertIntoSlotLnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/screen/slot/Slot;)Z
-
calculateComparatorOutput
public static int calculateComparatorOutput(@Nullable @Nullable BlockEntity entity)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lchp;)Iintermediary method_7608Lnet/minecraft/class_1703;method_7608(Lnet/minecraft/class_2586;)Inamed calculateComparatorOutputLnet/minecraft/screen/ScreenHandler;calculateComparatorOutput(Lnet/minecraft/block/entity/BlockEntity;)I
-
calculateComparatorOutput
public static int calculateComparatorOutput(@Nullable @Nullable Inventory inventory)
- Mappings:
Namespace Name Mixin selector official bLbll;b(Laqz;)Iintermediary method_7618Lnet/minecraft/class_1703;method_7618(Lnet/minecraft/class_1263;)Inamed calculateComparatorOutputLnet/minecraft/screen/ScreenHandler;calculateComparatorOutput(Lnet/minecraft/inventory/Inventory;)I
-
setCursorStack
public void setCursorStack(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official bLbll;b(Lbpr;)Vintermediary method_34254Lnet/minecraft/class_1703;method_34254(Lnet/minecraft/class_1799;)Vnamed setCursorStackLnet/minecraft/screen/ScreenHandler;setCursorStack(Lnet/minecraft/item/ItemStack;)V
-
getCursorStack
public ItemStack getCursorStack()
- Mappings:
Namespace Name Mixin selector official fLbll;f()Lbpr;intermediary method_34255Lnet/minecraft/class_1703;method_34255()Lnet/minecraft/class_1799;named getCursorStackLnet/minecraft/screen/ScreenHandler;getCursorStack()Lnet/minecraft/item/ItemStack;
-
disableSyncing
public void disableSyncing()
- Mappings:
Namespace Name Mixin selector official gLbll;g()Vintermediary method_34256Lnet/minecraft/class_1703;method_34256()Vnamed disableSyncingLnet/minecraft/screen/ScreenHandler;disableSyncing()V
-
enableSyncing
public void enableSyncing()
- Mappings:
Namespace Name Mixin selector official hLbll;h()Vintermediary method_34257Lnet/minecraft/class_1703;method_34257()Vnamed enableSyncingLnet/minecraft/screen/ScreenHandler;enableSyncing()V
-
copySharedSlots
public void copySharedSlots(ScreenHandler handler)
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lbll;)Vintermediary method_34247Lnet/minecraft/class_1703;method_34247(Lnet/minecraft/class_1703;)Vnamed copySharedSlotsLnet/minecraft/screen/ScreenHandler;copySharedSlots(Lnet/minecraft/screen/ScreenHandler;)V
-
-