Package net.minecraft.screen.slot
Class ArmorSlot
java.lang.Object
net.minecraft.screen.slot.Slot
net.minecraft.screen.slot.ArmorSlot
- Mappings:
Namespace Name named net/minecraft/screen/slot/ArmorSlotintermediary net/minecraft/class_9692official cpx
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable Identifierprivate final LivingEntityprivate final EquipmentSlot -
Constructor Summary
ConstructorsConstructorDescriptionArmorSlot(Inventory inventory, LivingEntity entity, EquipmentSlot equipmentSlot, int index, int x, int y, @Nullable Identifier backgroundSprite) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanTakeItems(PlayerEntity playerEntity) com.mojang.datafixers.util.Pair<Identifier, Identifier> intvoidSets the slot's stack tostackand marks the slot as dirty.Methods inherited from class net.minecraft.screen.slot.Slot
canBeHighlighted, canTakePartial, disablesDynamicDisplay, getIndex, getMaxItemCount, getStack, hasStack, insertStack, insertStack, isEnabled, markDirty, onCrafted, onCrafted, onQuickTransfer, onTake, onTakeItem, setStack, setStackNoCallbacks, takeStack, takeStackRange, tryTakeStackRange
-
Field Details
-
entity
- Mappings:
Namespace Name Mixin selector named entityLnet/minecraft/screen/slot/ArmorSlot;entity:Lnet/minecraft/entity/LivingEntity;intermediary field_51622Lnet/minecraft/class_9692;field_51622:Lnet/minecraft/class_1309;official aLcpx;a:Lbtn;
-
equipmentSlot
- Mappings:
Namespace Name Mixin selector named equipmentSlotLnet/minecraft/screen/slot/ArmorSlot;equipmentSlot:Lnet/minecraft/entity/EquipmentSlot;intermediary field_51623Lnet/minecraft/class_9692;field_51623:Lnet/minecraft/class_1304;official bLcpx;b:Lbsy;
-
backgroundSprite
- Mappings:
Namespace Name Mixin selector named backgroundSpriteLnet/minecraft/screen/slot/ArmorSlot;backgroundSprite:Lnet/minecraft/util/Identifier;intermediary field_51624Lnet/minecraft/class_9692;field_51624:Lnet/minecraft/class_2960;official gLcpx;g:Lakr;
-
-
Constructor Details
-
ArmorSlot
public ArmorSlot(Inventory inventory, LivingEntity entity, EquipmentSlot equipmentSlot, int index, int x, int y, @Nullable @Nullable Identifier backgroundSprite) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/screen/slot/ArmorSlot;<init>(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/EquipmentSlot;IIILnet/minecraft/util/Identifier;)Vintermediary <init>Lnet/minecraft/class_9692;<init>(Lnet/minecraft/class_1263;Lnet/minecraft/class_1309;Lnet/minecraft/class_1304;IIILnet/minecraft/class_2960;)Vofficial <init>Lcpx;<init>(Lbqk;Lbtn;Lbsy;IIILakr;)V
-
-
Method Details
-
setStack
Sets the slot's stack tostackand marks the slot as dirty. Subclasses may override this method to perform additional operations.- Overrides:
setStackin classSlot- Mappings:
Namespace Name Mixin selector named setStackLnet/minecraft/screen/slot/Slot;setStack(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Vintermediary method_48931Lnet/minecraft/class_1735;method_48931(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Vofficial aLcrq;a(Lcuq;Lcuq;)V
-
getMaxItemCount
public int getMaxItemCount()- Overrides:
getMaxItemCountin classSlot- Mappings:
Namespace Name Mixin selector named getMaxItemCountLnet/minecraft/screen/slot/Slot;getMaxItemCount()Iintermediary method_7675Lnet/minecraft/class_1735;method_7675()Iofficial aLcrq;a()I
-
canInsert
-
canTakeItems
- Overrides:
canTakeItemsin classSlot- Mappings:
Namespace Name Mixin selector named canTakeItemsLnet/minecraft/screen/slot/Slot;canTakeItems(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_7674Lnet/minecraft/class_1735;method_7674(Lnet/minecraft/class_1657;)Zofficial aLcrq;a(Lcmx;)Z
-
getBackgroundSprite
- Overrides:
getBackgroundSpritein classSlot- Mappings:
Namespace Name Mixin selector named getBackgroundSpriteLnet/minecraft/screen/slot/Slot;getBackgroundSprite()Lcom/mojang/datafixers/util/Pair;intermediary method_7679Lnet/minecraft/class_1735;method_7679()Lcom/mojang/datafixers/util/Pair;official bLcrq;b()Lcom/mojang/datafixers/util/Pair;
-