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/ArmorSlot
intermediary net/minecraft/class_9692
official cpl
-
Field Summary
Modifier and TypeFieldDescriptionprivate final @Nullable Identifier
private final LivingEntity
private final EquipmentSlot
-
Constructor Summary
ConstructorDescriptionArmorSlot
(Inventory inventory, LivingEntity entity, EquipmentSlot equipmentSlot, int index, int x, int y, @Nullable Identifier backgroundSprite) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canTakeItems
(PlayerEntity playerEntity) com.mojang.datafixers.util.Pair
<Identifier, Identifier> int
void
Sets the slot's stack tostack
and 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 entity
Lnet/minecraft/screen/slot/ArmorSlot;entity:Lnet/minecraft/entity/LivingEntity;
intermediary field_51622
Lnet/minecraft/class_9692;field_51622:Lnet/minecraft/class_1309;
official a
Lcpl;a:Lbtc;
-
equipmentSlot
- Mappings:
Namespace Name Mixin selector named equipmentSlot
Lnet/minecraft/screen/slot/ArmorSlot;equipmentSlot:Lnet/minecraft/entity/EquipmentSlot;
intermediary field_51623
Lnet/minecraft/class_9692;field_51623:Lnet/minecraft/class_1304;
official b
Lcpl;b:Lbso;
-
backgroundSprite
- Mappings:
Namespace Name Mixin selector named backgroundSprite
Lnet/minecraft/screen/slot/ArmorSlot;backgroundSprite:Lnet/minecraft/util/Identifier;
intermediary field_51624
Lnet/minecraft/class_9692;field_51624:Lnet/minecraft/class_2960;
official g
Lcpl;g:Lakk;
-
-
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;)V
intermediary <init>
Lnet/minecraft/class_9692;<init>(Lnet/minecraft/class_1263;Lnet/minecraft/class_1309;Lnet/minecraft/class_1304;IIILnet/minecraft/class_2960;)V
official <init>
Lcpl;<init>(Lbqa;Lbtc;Lbso;IIILakk;)V
-
-
Method Details
-
setStack
Sets the slot's stack tostack
and marks the slot as dirty. Subclasses may override this method to perform additional operations.- Overrides:
setStack
in classSlot
- Mappings:
Namespace Name Mixin selector named setStack
Lnet/minecraft/screen/slot/Slot;setStack(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)V
intermediary method_48931
Lnet/minecraft/class_1735;method_48931(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)V
official a
Lcre;a(Lcud;Lcud;)V
-
getMaxItemCount
public int getMaxItemCount()- Overrides:
getMaxItemCount
in classSlot
- Mappings:
Namespace Name Mixin selector named getMaxItemCount
Lnet/minecraft/screen/slot/Slot;getMaxItemCount()I
intermediary method_7675
Lnet/minecraft/class_1735;method_7675()I
official a
Lcre;a()I
-
canInsert
-
canTakeItems
- Overrides:
canTakeItems
in classSlot
- Mappings:
Namespace Name Mixin selector named canTakeItems
Lnet/minecraft/screen/slot/Slot;canTakeItems(Lnet/minecraft/entity/player/PlayerEntity;)Z
intermediary method_7674
Lnet/minecraft/class_1735;method_7674(Lnet/minecraft/class_1657;)Z
official a
Lcre;a(Lcml;)Z
-
getBackgroundSprite
- Overrides:
getBackgroundSprite
in classSlot
- Mappings:
Namespace Name Mixin selector named getBackgroundSprite
Lnet/minecraft/screen/slot/Slot;getBackgroundSprite()Lcom/mojang/datafixers/util/Pair;
intermediary method_7679
Lnet/minecraft/class_1735;method_7679()Lcom/mojang/datafixers/util/Pair;
official b
Lcre;b()Lcom/mojang/datafixers/util/Pair;
-