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 ddk
-
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) 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, 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 aLddk;a:Lcew;
-
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 bLddk;b:Lcef;
-
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 gLddk;g:Lamj;
-
-
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>Lddk;<init>(Lcbj;Lcew;Lcef;IIILamj;)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 aLdfe;a(Ldhp;Ldhp;)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 aLdfe;a()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 aLdfe;a(Lczl;)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 cLdfe;c()Lamj;
-