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 cyc
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable Identifierprivate final LivingEntityprivate final EquipmentSlotFields inherited from class net.minecraft.screen.slot.Slot
field_58825, field_58826, id, inventory, x, y -
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) intbooleanvoidSets 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, markDirty, method_69553, method_69555, method_69556, 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 aLcyc;a:Lbzf;
-
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 bLcyc;b:Lbyo;
-
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 iLcyc;i:Lamb;
-
-
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>Lcyc;<init>(Lbvu;Lbzf;Lbyo;IIILamb;)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 aLdaf;a(Ldcs;Ldcs;)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 bLdaf;b()I
-
canInsert
-
isEnabled
public boolean isEnabled() -
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 aLdaf;a(Lcuf;)Z
-
getBackgroundSprite
- Overrides:
getBackgroundSpritein classSlot- Mappings:
Namespace Name Mixin selector named getBackgroundSpriteLnet/minecraft/screen/slot/Slot;getBackgroundSprite()Lnet/minecraft/util/Identifier;intermediary method_7679Lnet/minecraft/class_1735;method_7679()Lnet/minecraft/class_2960;official cLdaf;c()Lamb;
-