Class class_11034
- Mappings:
Namespace Name named net/minecraft/class_11034intermediary net/minecraft/class_11034official cyv
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic final recordprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final class_11034.class_11036private static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final ScreenHandlerContextprivate final List<class_11034.class_11036> private final @Nullable List<class_11034.class_11037> private final Propertyprivate final SimpleInventoryFields 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_11034(int int2, PlayerInventory playerInventory, List<class_11034.class_11036> list) class_11034(int int2, PlayerInventory playerInventory, ScreenHandlerContext screenHandlerContext, List<class_11034.class_11036> list, @Nullable List<class_11034.class_11037> list2) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse(PlayerEntity player) Returns whether the screen handler can be used.method_69464(ColumnPos columnPos) private static @Nullable Map<ColumnPos, class_11034.class_11035> method_69465(ServerWorld serverWorld, BlockPos blockPos, BlockPos blockPos2, List<StructureTemplate.StructureBlockInfo> list, Map<ColumnPos, class_11034.class_11035> map, Map<BlockPos, BlockState> map2, Set<BlockPos> set) private static voidmethod_69466(ServerWorld serverWorld, BlockPos blockPos, List<StructureTemplate.StructureBlockInfo> list, Map<ColumnPos, class_11034.class_11035> map) private static voidmethod_69468(ServerWorld serverWorld, BlockPos blockPos, Map<BlockPos, BlockState> map, Object2ObjectMap<ColumnPos, class_11034.class_11035> object2ObjectMap, Set<BlockPos> set) static List<com.mojang.datafixers.util.Pair<class_11034.class_11036, class_11034.class_11037>> method_69469(ServerWorld serverWorld, BlockPos blockPos, Direction direction, DoubleBlockHalf doubleBlockHalf, class_11055 class_11055) private static booleanmethod_69471(class_11034.class_11035 class_11035) private static class_11034.class_11036method_69472(class_11034.class_11035 class_11035, String[] string) private static booleanmethod_69473(BlockState blockState) private static booleanmethod_69474(BlockState blockState, DoubleBlockHalf doubleBlockHalf, Direction direction) private static voidmethod_69479(Object2ObjectMap<ColumnPos, class_11034.class_11035> object2ObjectMap, Set<ColumnPos> set) private static ColumnPosmethod_69480(BlockPos blockPos) private static voidmethod_69485(BlockPos blockPos, Map<ColumnPos, class_11034.class_11035> map, Object2ObjectMap<ColumnPos, class_11034.class_11035> object2ObjectMap) private static @Nullable class_11034.class_11036private static booleanmethod_69492(class_11034.class_11035 class_11035) voidmethod_69493(ItemStack itemStack) method_69494(BlockPos blockPos) private static Map<BlockPos, BlockState> private static Object2ObjectMap<ColumnPos, class_11034.class_11035> private static class_11034.class_11035booleanonButtonClick(PlayerEntity player, int id) Called whenplayerclicks a button withid.voidonClosed(PlayerEntity player) Called when this screen handler is closed.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, internalOnSlotClick, isValid, method_69453, method_69454, method_69455, nextRevision, onContentChanged, onSlotClick, packQuickCraftData, removeListener, selectBundleStack, sendContentUpdates, setCursorStack, setProperty, setReceivedCursorHash, setReceivedHash, setReceivedStack, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler, updateToClient
-
Field Details
-
field_58763
public static final int field_58763- See Also:
- Mappings:
Namespace Name Mixin selector named field_58763Lnet/minecraft/class_11034;field_58763:Iintermediary field_58763Lnet/minecraft/class_11034;field_58763:Iofficial mLcyv;m:I
-
field_58764
public static final int field_58764- See Also:
- Mappings:
Namespace Name Mixin selector named field_58764Lnet/minecraft/class_11034;field_58764:Iintermediary field_58764Lnet/minecraft/class_11034;field_58764:Iofficial nLcyv;n:I
-
field_58765
public static final int field_58765- See Also:
- Mappings:
Namespace Name Mixin selector named field_58765Lnet/minecraft/class_11034;field_58765:Iintermediary field_58765Lnet/minecraft/class_11034;field_58765:Iofficial oLcyv;o:I
-
field_58767
private static final int field_58767- See Also:
- Mappings:
Namespace Name Mixin selector named field_58767Lnet/minecraft/class_11034;field_58767:Iintermediary field_58767Lnet/minecraft/class_11034;field_58767:Iofficial qLcyv;q:I
-
field_58768
private static final int field_58768- See Also:
- Mappings:
Namespace Name Mixin selector named field_58768Lnet/minecraft/class_11034;field_58768:Iintermediary field_58768Lnet/minecraft/class_11034;field_58768:Iofficial rLcyv;r:I
-
field_58769
private static final int field_58769- See Also:
- Mappings:
Namespace Name Mixin selector named field_58769Lnet/minecraft/class_11034;field_58769:Iintermediary field_58769Lnet/minecraft/class_11034;field_58769:Iofficial sLcyv;s:I
-
field_58770
private static final int field_58770- See Also:
- Mappings:
Namespace Name Mixin selector named field_58770Lnet/minecraft/class_11034;field_58770:Iintermediary field_58770Lnet/minecraft/class_11034;field_58770:Iofficial tLcyv;t:I
-
field_58771
private static final int field_58771- See Also:
- Mappings:
Namespace Name Mixin selector named field_58771Lnet/minecraft/class_11034;field_58771:Iintermediary field_58771Lnet/minecraft/class_11034;field_58771:Iofficial uLcyv;u:I
-
field_58766
- Mappings:
Namespace Name Mixin selector named field_58766Lnet/minecraft/class_11034;field_58766:Lnet/minecraft/class_11034$class_11036;intermediary field_58766Lnet/minecraft/class_11034;field_58766:Lnet/minecraft/class_11034$class_11036;official pLcyv;p:Lcyv$b;
-
field_58772
- Mappings:
Namespace Name Mixin selector named field_58772Lnet/minecraft/class_11034;field_58772:Lnet/minecraft/screen/ScreenHandlerContext;intermediary field_58772Lnet/minecraft/class_11034;field_58772:Lnet/minecraft/class_3914;official vLcyv;v:Lcyl;
-
field_58773
- Mappings:
Namespace Name Mixin selector named field_58773Lnet/minecraft/class_11034;field_58773:Ljava/util/List;intermediary field_58773Lnet/minecraft/class_11034;field_58773:Ljava/util/List;official wLcyv;w:Ljava/util/List;
-
field_58774
- Mappings:
Namespace Name Mixin selector named field_58774Lnet/minecraft/class_11034;field_58774:Ljava/util/List;intermediary field_58774Lnet/minecraft/class_11034;field_58774:Ljava/util/List;official xLcyv;x:Ljava/util/List;
-
field_58775
- Mappings:
Namespace Name Mixin selector named field_58775Lnet/minecraft/class_11034;field_58775:Lnet/minecraft/screen/Property;intermediary field_58775Lnet/minecraft/class_11034;field_58775:Lnet/minecraft/class_3915;official yLcyv;y:Lcys;
-
field_58776
- Mappings:
Namespace Name Mixin selector named field_58776Lnet/minecraft/class_11034;field_58776:Lnet/minecraft/inventory/SimpleInventory;intermediary field_58776Lnet/minecraft/class_11034;field_58776:Lnet/minecraft/class_1277;official zLcyv;z:Lbwj;
-
-
Constructor Details
-
class_11034
-
class_11034
public class_11034(int int2, PlayerInventory playerInventory, ScreenHandlerContext screenHandlerContext, List<class_11034.class_11036> list, @Nullable @Nullable List<class_11034.class_11037> list2)
-
-
Method Details
-
method_69472
private static class_11034.class_11036 method_69472(class_11034.class_11035 class_11035, String[] string) - Mappings:
Namespace Name Mixin selector named method_69472Lnet/minecraft/class_11034;method_69472(Lnet/minecraft/class_11034$class_11035;[Ljava/lang/String;)Lnet/minecraft/class_11034$class_11036;intermediary method_69472Lnet/minecraft/class_11034;method_69472(Lnet/minecraft/class_11034$class_11035;[Ljava/lang/String;)Lnet/minecraft/class_11034$class_11036;official aLcyv;a(Lcyv$a;[Ljava/lang/String;)Lcyv$b;
-
method_69493
- Mappings:
Namespace Name Mixin selector named method_69493Lnet/minecraft/class_11034;method_69493(Lnet/minecraft/item/ItemStack;)Vintermediary method_69493Lnet/minecraft/class_11034;method_69493(Lnet/minecraft/class_1799;)Vofficial bLcyv;b(Ldcs;)V
-
method_69503
- Mappings:
Namespace Name Mixin selector named method_69503Lnet/minecraft/class_11034;method_69503()Lnet/minecraft/item/ItemStack;intermediary method_69503Lnet/minecraft/class_11034;method_69503()Lnet/minecraft/class_1799;official mLcyv;m()Ldcs;
-
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;
-
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
-
method_69504
- Mappings:
Namespace Name Mixin selector named method_69504Lnet/minecraft/class_11034;method_69504()Lnet/minecraft/class_11034$class_11036;intermediary method_69504Lnet/minecraft/class_11034;method_69504()Lnet/minecraft/class_11034$class_11036;official nLcyv;n()Lcyv$b;
-
onButtonClick
Called whenplayerclicks a button withid."Button click" is an abstract concept; it does not have to be triggered by a button. Examples of button clicks include selecting a recipe for a stonecutter, turning a page of a lectern's book, or selecting an enchantment on an enchanting table. Buttons are identified by an integer.
- Overrides:
onButtonClickin classScreenHandler- Returns:
- whether the button click is handled successfully
- Implementation Note:
- This is normally only called by the server; however, screens that use buttons can call this on the client.
- Mappings:
Namespace Name Mixin selector named onButtonClickLnet/minecraft/screen/ScreenHandler;onButtonClick(Lnet/minecraft/entity/player/PlayerEntity;I)Zintermediary method_7604Lnet/minecraft/class_1703;method_7604(Lnet/minecraft/class_1657;I)Zofficial aLcxy;a(Lcuf;I)Z
-
method_69480
- Mappings:
Namespace Name Mixin selector named method_69480Lnet/minecraft/class_11034;method_69480(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/ColumnPos;intermediary method_69480Lnet/minecraft/class_11034;method_69480(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2265;official aLcyv;a(Lix;)Lasd;
-
method_69464
- Mappings:
Namespace Name Mixin selector named method_69464Lnet/minecraft/class_11034;method_69464(Lnet/minecraft/util/math/ColumnPos;)Ljava/util/List;intermediary method_69464Lnet/minecraft/class_11034;method_69464(Lnet/minecraft/class_2265;)Ljava/util/List;official aLcyv;a(Lasd;)Ljava/util/List;
-
method_69469
public static List<com.mojang.datafixers.util.Pair<class_11034.class_11036,class_11034.class_11037>> method_69469(ServerWorld serverWorld, BlockPos blockPos, Direction direction, DoubleBlockHalf doubleBlockHalf, class_11055 class_11055) - Mappings:
Namespace Name Mixin selector named method_69469Lnet/minecraft/class_11034;method_69469(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/enums/DoubleBlockHalf;Lnet/minecraft/class_11055;)Ljava/util/List;intermediary method_69469Lnet/minecraft/class_11034;method_69469(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2756;Lnet/minecraft/class_11055;)Ljava/util/List;official aLcyv;a(Last;Lix;Ljd;Lefo;Ldfy;)Ljava/util/List;
-
method_69494
- Mappings:
Namespace Name Mixin selector named method_69494Lnet/minecraft/class_11034;method_69494(Lnet/minecraft/util/math/BlockPos;)Ljava/util/List;intermediary method_69494Lnet/minecraft/class_11034;method_69494(Lnet/minecraft/class_2338;)Ljava/util/List;official bLcyv;b(Lix;)Ljava/util/List;
-
method_69465
@Nullable private static @Nullable Map<ColumnPos,class_11034.class_11035> method_69465(ServerWorld serverWorld, BlockPos blockPos, BlockPos blockPos2, List<StructureTemplate.StructureBlockInfo> list, Map<ColumnPos, class_11034.class_11035> map, Map<BlockPos, BlockState> map2, Set<BlockPos> set) - Mappings:
Namespace Name Mixin selector named method_69465Lnet/minecraft/class_11034;method_69465(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;Ljava/util/Map;Ljava/util/Map;Ljava/util/Set;)Ljava/util/Map;intermediary method_69465Lnet/minecraft/class_11034;method_69465(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Ljava/util/List;Ljava/util/Map;Ljava/util/Map;Ljava/util/Set;)Ljava/util/Map;official aLcyv;a(Last;Lix;Lix;Ljava/util/List;Ljava/util/Map;Ljava/util/Map;Ljava/util/Set;)Ljava/util/Map;
-
method_69468
private static void method_69468(ServerWorld serverWorld, BlockPos blockPos, Map<BlockPos, BlockState> map, Object2ObjectMap<ColumnPos, class_11034.class_11035> object2ObjectMap, Set<BlockPos> set) - Mappings:
Namespace Name Mixin selector named method_69468Lnet/minecraft/class_11034;method_69468(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Map;Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;Ljava/util/Set;)Vintermediary method_69468Lnet/minecraft/class_11034;method_69468(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Map;Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;Ljava/util/Set;)Vofficial aLcyv;a(Last;Lix;Ljava/util/Map;Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;Ljava/util/Set;)V
-
method_69485
private static void method_69485(BlockPos blockPos, Map<ColumnPos, class_11034.class_11035> map, Object2ObjectMap<ColumnPos, class_11034.class_11035> object2ObjectMap) - Mappings:
Namespace Name Mixin selector named method_69485Lnet/minecraft/class_11034;method_69485(Lnet/minecraft/util/math/BlockPos;Ljava/util/Map;Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;)Vintermediary method_69485Lnet/minecraft/class_11034;method_69485(Lnet/minecraft/class_2338;Ljava/util/Map;Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;)Vofficial aLcyv;a(Lix;Ljava/util/Map;Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;)V
-
method_69466
private static void method_69466(ServerWorld serverWorld, BlockPos blockPos, List<StructureTemplate.StructureBlockInfo> list, Map<ColumnPos, class_11034.class_11035> map) - Mappings:
Namespace Name Mixin selector named method_69466Lnet/minecraft/class_11034;method_69466(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;Ljava/util/Map;)Vintermediary method_69466Lnet/minecraft/class_11034;method_69466(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/List;Ljava/util/Map;)Vofficial aLcyv;a(Last;Lix;Ljava/util/List;Ljava/util/Map;)V
-
method_69495
private static Map<BlockPos,BlockState> method_69495(List<StructureTemplate.StructureBlockInfo> list) - Mappings:
Namespace Name Mixin selector named method_69495Lnet/minecraft/class_11034;method_69495(Ljava/util/List;)Ljava/util/Map;intermediary method_69495Lnet/minecraft/class_11034;method_69495(Ljava/util/List;)Ljava/util/Map;official bLcyv;b(Ljava/util/List;)Ljava/util/Map;
-
method_69473
- Mappings:
Namespace Name Mixin selector named method_69473Lnet/minecraft/class_11034;method_69473(Lnet/minecraft/block/BlockState;)Zintermediary method_69473Lnet/minecraft/class_11034;method_69473(Lnet/minecraft/class_2680;)Zofficial aLcyv;a(Lees;)Z
-
method_69474
private static boolean method_69474(BlockState blockState, DoubleBlockHalf doubleBlockHalf, Direction direction) - Mappings:
Namespace Name Mixin selector named method_69474Lnet/minecraft/class_11034;method_69474(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/enums/DoubleBlockHalf;Lnet/minecraft/util/math/Direction;)Zintermediary method_69474Lnet/minecraft/class_11034;method_69474(Lnet/minecraft/class_2680;Lnet/minecraft/class_2756;Lnet/minecraft/class_2350;)Zofficial aLcyv;a(Lees;Lefo;Ljd;)Z
-
method_69498
private static Object2ObjectMap<ColumnPos,class_11034.class_11035> method_69498(List<StructureTemplate.StructureBlockInfo> list) - Mappings:
Namespace Name Mixin selector named method_69498Lnet/minecraft/class_11034;method_69498(Ljava/util/List;)Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;intermediary method_69498Lnet/minecraft/class_11034;method_69498(Ljava/util/List;)Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;official cLcyv;c(Ljava/util/List;)Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
-
method_69488
@Nullable private static @Nullable class_11034.class_11036 method_69488(Map<ColumnPos, class_11034.class_11035> map) - Mappings:
Namespace Name Mixin selector named method_69488Lnet/minecraft/class_11034;method_69488(Ljava/util/Map;)Lnet/minecraft/class_11034$class_11036;intermediary method_69488Lnet/minecraft/class_11034;method_69488(Ljava/util/Map;)Lnet/minecraft/class_11034$class_11036;official aLcyv;a(Ljava/util/Map;)Lcyv$b;
-
method_69479
private static void method_69479(Object2ObjectMap<ColumnPos, class_11034.class_11035> object2ObjectMap, Set<ColumnPos> set) - Mappings:
Namespace Name Mixin selector named method_69479Lnet/minecraft/class_11034;method_69479(Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;Ljava/util/Set;)Vintermediary method_69479Lnet/minecraft/class_11034;method_69479(Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;Ljava/util/Set;)Vofficial aLcyv;a(Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;Ljava/util/Set;)V
-
method_69471
- Mappings:
Namespace Name Mixin selector named method_69471Lnet/minecraft/class_11034;method_69471(Lnet/minecraft/class_11034$class_11035;)Zintermediary method_69471Lnet/minecraft/class_11034;method_69471(Lnet/minecraft/class_11034$class_11035;)Zofficial aLcyv;a(Lcyv$a;)Z
-
method_69492
- Mappings:
Namespace Name Mixin selector named method_69492Lnet/minecraft/class_11034;method_69492(Lnet/minecraft/class_11034$class_11035;)Zintermediary method_69492Lnet/minecraft/class_11034;method_69492(Lnet/minecraft/class_11034$class_11035;)Zofficial bLcyv;b(Lcyv$a;)Z
-
method_69501
private static class_11034.class_11035 method_69501(List<StructureTemplate.StructureBlockInfo> list) - Mappings:
Namespace Name Mixin selector named method_69501Lnet/minecraft/class_11034;method_69501(Ljava/util/List;)Lnet/minecraft/class_11034$class_11035;intermediary method_69501Lnet/minecraft/class_11034;method_69501(Ljava/util/List;)Lnet/minecraft/class_11034$class_11035;official dLcyv;d(Ljava/util/List;)Lcyv$a;
-
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
-