Class class_11043
- Mappings:
Namespace Name named net/minecraft/class_11043intermediary net/minecraft/class_11043official czq
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate final Optional<ServerWorld> private final Optional<ServerPlayerEntity> static final intstatic final intprivate final class_11039private final ScreenHandlerContextprivate final Consumer<RegistryKey<DimensionOptions>> private final List<class_11045> private final class_11044private final List<class_11041> private final List<class_11042> private static final intprivate static final intprivate intprivate intFields 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, field_52557, field_52558, slots, syncId -
Constructor Summary
ConstructorsConstructorDescriptionclass_11043(int int2, PlayerInventory playerInventory, List<Integer> list) class_11043(int int2, PlayerInventory playerInventory, ScreenHandlerContext screenHandlerContext, Inventory inventory, Consumer<RegistryKey<DimensionOptions>> consumer, List<Integer> list) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse(PlayerEntity player) Returns whether the screen handler can be used.protected voidinternalOnSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player) The actual logic that handles a slot click.voidmethod_69454(List<Integer> list) private List<class_11109> private intprivate voidprivate voidprivate Textstatic Optional<class_11109> method_69525(ServerWorld serverWorld, List<class_11109> list, Set<class_11109> set) protected voidmethod_69526(ServerPlayerEntity serverPlayerEntity, ItemStack itemStack) private static booleanmethod_69532(class_11109 class_11109, Map<class_11112, class_11109> map) private class_11109method_69533(List<class_11109> list, List<class_11109> list2, Random random) private voidmethod_69537(List<Integer> list) private voidmethod_69538(Inventory inventory) intintbooleanprotected Stream<class_11109> booleanbooleanbooleanbooleanprivate voidprivate voidvoidonClosed(PlayerEntity player) Called when this screen handler is closed.voidonContentChanged(Inventory inventory) Called when a slot's content has changed.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.ScreenHandler
addListener, addPlayerHotbarSlots, addPlayerInventorySlots, addPlayerSlots, 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, method_69453, method_69455, nextRevision, onButtonClick, onSlotClick, packQuickCraftData, removeListener, selectBundleStack, sendContentUpdates, setCursorStack, setProperty, setReceivedCursorHash, setReceivedHash, setReceivedStack, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler, updateToClient
-
Field Details
-
field_58807
- Mappings:
Namespace Name Mixin selector named field_58807Lnet/minecraft/class_11043;field_58807:Ljava/util/List;intermediary field_58807Lnet/minecraft/class_11043;field_58807:Ljava/util/List;official mLczq;m:Ljava/util/List;
-
field_58808
public static final int field_58808- See Also:
- Mappings:
Namespace Name Mixin selector named field_58808Lnet/minecraft/class_11043;field_58808:Iintermediary field_58808Lnet/minecraft/class_11043;field_58808:Iofficial nLczq;n:I
-
field_58809
public static final int field_58809- See Also:
- Mappings:
Namespace Name Mixin selector named field_58809Lnet/minecraft/class_11043;field_58809:Iintermediary field_58809Lnet/minecraft/class_11043;field_58809:Iofficial oLczq;o:I
-
field_58817
private static final int field_58817- See Also:
- Mappings:
Namespace Name Mixin selector named field_58817Lnet/minecraft/class_11043;field_58817:Iintermediary field_58817Lnet/minecraft/class_11043;field_58817:Iofficial wLczq;w:I
-
field_58818
private static final int field_58818- See Also:
- Mappings:
Namespace Name Mixin selector named field_58818Lnet/minecraft/class_11043;field_58818:Iintermediary field_58818Lnet/minecraft/class_11043;field_58818:Iofficial xLczq;x:I
-
field_58810
- Mappings:
Namespace Name Mixin selector named field_58810Lnet/minecraft/class_11043;field_58810:Lnet/minecraft/class_11039;intermediary field_58810Lnet/minecraft/class_11043;field_58810:Lnet/minecraft/class_11039;official pLczq;p:Lcza;
-
field_58811
- Mappings:
Namespace Name Mixin selector named field_58811Lnet/minecraft/class_11043;field_58811:Lnet/minecraft/screen/ScreenHandlerContext;intermediary field_58811Lnet/minecraft/class_11043;field_58811:Lnet/minecraft/class_3914;official qLczq;q:Lcyl;
-
field_58812
- Mappings:
Namespace Name Mixin selector named field_58812Lnet/minecraft/class_11043;field_58812:Ljava/util/function/Consumer;intermediary field_58812Lnet/minecraft/class_11043;field_58812:Ljava/util/function/Consumer;official rLczq;r:Ljava/util/function/Consumer;
-
field_58813
- Mappings:
Namespace Name Mixin selector named field_58813Lnet/minecraft/class_11043;field_58813:Ljava/util/List;intermediary field_58813Lnet/minecraft/class_11043;field_58813:Ljava/util/List;official sLczq;s:Ljava/util/List;
-
field_58814
- Mappings:
Namespace Name Mixin selector named field_58814Lnet/minecraft/class_11043;field_58814:Lnet/minecraft/class_11044;intermediary field_58814Lnet/minecraft/class_11043;field_58814:Lnet/minecraft/class_11044;official tLczq;t:Lczr;
-
field_58815
- Mappings:
Namespace Name Mixin selector named field_58815Lnet/minecraft/class_11043;field_58815:Ljava/util/List;intermediary field_58815Lnet/minecraft/class_11043;field_58815:Ljava/util/List;official uLczq;u:Ljava/util/List;
-
field_58816
- Mappings:
Namespace Name Mixin selector named field_58816Lnet/minecraft/class_11043;field_58816:Ljava/util/List;intermediary field_58816Lnet/minecraft/class_11043;field_58816:Ljava/util/List;official vLczq;v:Ljava/util/List;
-
field_58819
private int field_58819- Mappings:
Namespace Name Mixin selector named field_58819Lnet/minecraft/class_11043;field_58819:Iintermediary field_58819Lnet/minecraft/class_11043;field_58819:Iofficial yLczq;y:I
-
field_58820
private int field_58820- Mappings:
Namespace Name Mixin selector named field_58820Lnet/minecraft/class_11043;field_58820:Iintermediary field_58820Lnet/minecraft/class_11043;field_58820:Iofficial zLczq;z:I
-
field_58802
private int field_58802- Mappings:
Namespace Name Mixin selector named field_58802Lnet/minecraft/class_11043;field_58802:Iintermediary field_58802Lnet/minecraft/class_11043;field_58802:Iofficial ALczq;A:I
-
field_58803
private int field_58803- Mappings:
Namespace Name Mixin selector named field_58803Lnet/minecraft/class_11043;field_58803:Iintermediary field_58803Lnet/minecraft/class_11043;field_58803:Iofficial BLczq;B:I
-
field_58804
- Mappings:
Namespace Name Mixin selector named field_58804Lnet/minecraft/class_11043;field_58804:Ljava/util/Optional;intermediary field_58804Lnet/minecraft/class_11043;field_58804:Ljava/util/Optional;official CLczq;C:Ljava/util/Optional;
-
field_58805
- Mappings:
Namespace Name Mixin selector named field_58805Lnet/minecraft/class_11043;field_58805:Ljava/util/Optional;intermediary field_58805Lnet/minecraft/class_11043;field_58805:Ljava/util/Optional;official DLczq;D:Ljava/util/Optional;
-
field_58806
- Mappings:
Namespace Name Mixin selector named field_58806Lnet/minecraft/class_11043;field_58806:Ljava/util/Optional;intermediary field_58806Lnet/minecraft/class_11043;field_58806:Ljava/util/Optional;official ELczq;E:Ljava/util/Optional;
-
-
Constructor Details
-
class_11043
-
class_11043
public class_11043(int int2, PlayerInventory playerInventory, ScreenHandlerContext screenHandlerContext, Inventory inventory, Consumer<RegistryKey<DimensionOptions>> consumer, List<Integer> list)
-
-
Method Details
-
method_69537
- Mappings:
Namespace Name Mixin selector named method_69537Lnet/minecraft/class_11043;method_69537(Ljava/util/List;)Vintermediary method_69537Lnet/minecraft/class_11043;method_69537(Ljava/util/List;)Vofficial bLczq;b(Ljava/util/List;)V
-
method_69539
public int method_69539()- Mappings:
Namespace Name Mixin selector named method_69539Lnet/minecraft/class_11043;method_69539()Iintermediary method_69539Lnet/minecraft/class_11043;method_69539()Iofficial mLczq;m()I
-
method_69540
public int method_69540()- Mappings:
Namespace Name Mixin selector named method_69540Lnet/minecraft/class_11043;method_69540()Iintermediary method_69540Lnet/minecraft/class_11043;method_69540()Iofficial nLczq;n()I
-
method_69538
- Mappings:
Namespace Name Mixin selector named method_69538Lnet/minecraft/class_11043;method_69538(Lnet/minecraft/inventory/Inventory;)Vintermediary method_69538Lnet/minecraft/class_11043;method_69538(Lnet/minecraft/class_1263;)Vofficial cLczq;c(Lbvu;)V
-
method_69551
private void method_69551()- Mappings:
Namespace Name Mixin selector named method_69551Lnet/minecraft/class_11043;method_69551()Vintermediary method_69551Lnet/minecraft/class_11043;method_69551()Vofficial yLczq;y()V
-
method_69552
private void method_69552()- Mappings:
Namespace Name Mixin selector named method_69552Lnet/minecraft/class_11043;method_69552()Vintermediary method_69552Lnet/minecraft/class_11043;method_69552()Vofficial zLczq;z()V
-
method_69541
public boolean method_69541()- Mappings:
Namespace Name Mixin selector named method_69541Lnet/minecraft/class_11043;method_69541()Zintermediary method_69541Lnet/minecraft/class_11043;method_69541()Zofficial oLczq;o()Z
-
method_69525
public static Optional<class_11109> method_69525(ServerWorld serverWorld, List<class_11109> list, Set<class_11109> set) - Mappings:
Namespace Name Mixin selector named method_69525Lnet/minecraft/class_11043;method_69525(Lnet/minecraft/server/world/ServerWorld;Ljava/util/List;Ljava/util/Set;)Ljava/util/Optional;intermediary method_69525Lnet/minecraft/class_11043;method_69525(Lnet/minecraft/class_3218;Ljava/util/List;Ljava/util/Set;)Ljava/util/Optional;official aLczq;a(Last;Ljava/util/List;Ljava/util/Set;)Ljava/util/Optional;
-
method_69518
- Mappings:
Namespace Name Mixin selector named method_69518Lnet/minecraft/class_11043;method_69518()Ljava/util/List;intermediary method_69518Lnet/minecraft/class_11043;method_69518()Ljava/util/List;official ALczq;A()Ljava/util/List;
-
method_69533
- Mappings:
Namespace Name Mixin selector named method_69533Lnet/minecraft/class_11043;method_69533(Ljava/util/List;Ljava/util/List;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/class_11109;intermediary method_69533Lnet/minecraft/class_11043;method_69533(Ljava/util/List;Ljava/util/List;Lnet/minecraft/class_5819;)Lnet/minecraft/class_11109;official aLczq;a(Ljava/util/List;Ljava/util/List;Lbbg;)Lfca;
-
method_69519
private int method_69519()- Mappings:
Namespace Name Mixin selector named method_69519Lnet/minecraft/class_11043;method_69519()Iintermediary method_69519Lnet/minecraft/class_11043;method_69519()Iofficial BLczq;B()I
-
method_69520
private void method_69520()- Mappings:
Namespace Name Mixin selector named method_69520Lnet/minecraft/class_11043;method_69520()Vintermediary method_69520Lnet/minecraft/class_11043;method_69520()Vofficial CLczq;C()V
-
method_69521
private void method_69521()- Mappings:
Namespace Name Mixin selector named method_69521Lnet/minecraft/class_11043;method_69521()Vintermediary method_69521Lnet/minecraft/class_11043;method_69521()Vofficial DLczq;D()V
-
method_69542
- Mappings:
Namespace Name Mixin selector named method_69542Lnet/minecraft/class_11043;method_69542()Lnet/minecraft/class_11039;intermediary method_69542Lnet/minecraft/class_11043;method_69542()Lnet/minecraft/class_11039;official pLczq;p()Lcza;
-
method_69454
- Overrides:
method_69454in classScreenHandler- Mappings:
Namespace Name Mixin selector named method_69454Lnet/minecraft/screen/ScreenHandler;method_69454(Ljava/util/List;)Vintermediary method_69454Lnet/minecraft/class_1703;method_69454(Ljava/util/List;)Vofficial aLcxy;a(Ljava/util/List;)V
-
method_69526
- Mappings:
Namespace Name Mixin selector named method_69526Lnet/minecraft/class_11043;method_69526(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/item/ItemStack;)Vintermediary method_69526Lnet/minecraft/class_11043;method_69526(Lnet/minecraft/class_3222;Lnet/minecraft/class_1799;)Vofficial aLczq;a(Lasu;Ldcs;)V
-
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 named canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_7597Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Zofficial bLcxy;b(Lcuf;)Z
-
onContentChanged
Called when a slot's content has changed.This is not called by default; subclasses that override this method should also use a custom
InventorywhosemarkDirtymethod is overridden to call this method as a backing inventory of the slot.This can be used to update the output slot when input changes.
- Overrides:
onContentChangedin classScreenHandler- Mappings:
Namespace Name Mixin selector named onContentChangedLnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)Vintermediary method_7609Lnet/minecraft/class_1703;method_7609(Lnet/minecraft/class_1263;)Vofficial aLcxy;a(Lbvu;)V
-
method_69522
- Mappings:
Namespace Name Mixin selector named method_69522Lnet/minecraft/class_11043;method_69522()Lnet/minecraft/text/Text;intermediary method_69522Lnet/minecraft/class_11043;method_69522()Lnet/minecraft/class_2561;official ELczq;E()Lxi;
-
method_69543
- Mappings:
Namespace Name Mixin selector named method_69543Lnet/minecraft/class_11043;method_69543()Ljava/util/stream/Stream;intermediary method_69543Lnet/minecraft/class_11043;method_69543()Ljava/util/stream/Stream;official qLczq;q()Ljava/util/stream/Stream;
-
method_69532
- Mappings:
Namespace Name Mixin selector named method_69532Lnet/minecraft/class_11043;method_69532(Lnet/minecraft/class_11109;Ljava/util/Map;)Zintermediary method_69532Lnet/minecraft/class_11043;method_69532(Lnet/minecraft/class_11109;Ljava/util/Map;)Zofficial aLczq;a(Lfca;Ljava/util/Map;)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 named quickMoveLnet/minecraft/screen/ScreenHandler;quickMove(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;intermediary method_7601Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;official bLcxy;b(Lcuf;I)Ldcs;
-
internalOnSlotClick
protected 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.- Overrides:
internalOnSlotClickin classScreenHandler- Mappings:
Namespace Name Mixin selector named internalOnSlotClickLnet/minecraft/screen/ScreenHandler;internalOnSlotClick(IILnet/minecraft/screen/slot/SlotActionType;Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_30010Lnet/minecraft/class_1703;method_30010(IILnet/minecraft/class_1713;Lnet/minecraft/class_1657;)Vofficial bLcxy;b(IILcyj;Lcuf;)V
-
method_69544
- Mappings:
Namespace Name Mixin selector named method_69544Lnet/minecraft/class_11043;method_69544()Lnet/minecraft/class_11044;intermediary method_69544Lnet/minecraft/class_11043;method_69544()Lnet/minecraft/class_11044;official rLczq;r()Lczr;
-
method_69545
- Mappings:
Namespace Name Mixin selector named method_69545Lnet/minecraft/class_11043;method_69545()Ljava/util/List;intermediary method_69545Lnet/minecraft/class_11043;method_69545()Ljava/util/List;official sLczq;s()Ljava/util/List;
-
method_69546
- Mappings:
Namespace Name Mixin selector named method_69546Lnet/minecraft/class_11043;method_69546()Ljava/util/List;intermediary method_69546Lnet/minecraft/class_11043;method_69546()Ljava/util/List;official tLczq;t()Ljava/util/List;
-
method_69547
public boolean method_69547()- Mappings:
Namespace Name Mixin selector named method_69547Lnet/minecraft/class_11043;method_69547()Zintermediary method_69547Lnet/minecraft/class_11043;method_69547()Zofficial uLczq;u()Z
-
method_69548
public boolean method_69548()- Mappings:
Namespace Name Mixin selector named method_69548Lnet/minecraft/class_11043;method_69548()Zintermediary method_69548Lnet/minecraft/class_11043;method_69548()Zofficial vLczq;v()Z
-
method_69549
public boolean method_69549()- Mappings:
Namespace Name Mixin selector named method_69549Lnet/minecraft/class_11043;method_69549()Zintermediary method_69549Lnet/minecraft/class_11043;method_69549()Zofficial wLczq;w()Z
-
method_69550
public boolean method_69550()- Mappings:
Namespace Name Mixin selector named method_69550Lnet/minecraft/class_11043;method_69550()Zintermediary method_69550Lnet/minecraft/class_11043;method_69550()Zofficial xLczq;x()Z
-
onClosed
Called when this screen handler is closed.To close a screen handler, call
PlayerEntity.closeHandledScreen()on the server instead of this method.This drops the cursor stack by default. Subclasses that have slots not backed by a persistent inventory should call
ScreenHandler.dropInventory(net.minecraft.entity.player.PlayerEntity, net.minecraft.inventory.Inventory)to drop the stacks.- Overrides:
onClosedin classScreenHandler- Mappings:
Namespace Name Mixin selector named onClosedLnet/minecraft/screen/ScreenHandler;onClosed(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_7595Lnet/minecraft/class_1703;method_7595(Lnet/minecraft/class_1657;)Vofficial aLcxy;a(Lcuf;)V
-