Package net.minecraft.item
Interface Wearable
- All Superinterfaces:
Vanishable
- All Known Implementing Classes:
AbstractSkullBlock
,ArmorItem
,CarvedPumpkinBlock
,DyeableArmorItem
,ElytraItem
,PlayerSkullBlock
,ShieldItem
,SkullBlock
,WallPiglinHeadBlock
,WallPlayerSkullBlock
,WallSkullBlock
,WallWitherSkullBlock
,WitherSkullBlock
Represents a type of item that is wearable in an armor equipment slot.
This type of item can be targeted by the minecraft:binding_curse
enchantment.
- Mappings:
Namespace Name official cek
intermediary net/minecraft/class_5151
named net/minecraft/item/Wearable
-
Method Summary
Modifier and TypeMethodDescriptiondefault TypedActionResult<ItemStack>
equipAndSwap
(Item item, World world, PlayerEntity user, Hand hand) default SoundEvent
method_48957
(ItemStack itemStack)
-
Method Details
-
getSlotType
EquipmentSlot getSlotType()- Mappings:
Namespace Name Mixin selector official g
Lcek;g()Lbfd;
intermediary method_7685
Lnet/minecraft/class_5151;method_7685()Lnet/minecraft/class_1304;
named getSlotType
Lnet/minecraft/item/Wearable;getSlotType()Lnet/minecraft/entity/EquipmentSlot;
-
getEquipSound
- Mappings:
Namespace Name Mixin selector official ag_
Lcek;ag_()Lamj;
intermediary method_31570
Lnet/minecraft/class_5151;method_31570()Lnet/minecraft/class_3414;
named getEquipSound
Lnet/minecraft/item/Wearable;getEquipSound()Lnet/minecraft/sound/SoundEvent;
-
equipAndSwap
default TypedActionResult<ItemStack> equipAndSwap(Item item, World world, PlayerEntity user, Hand hand) - Mappings:
Namespace Name Mixin selector official a
Lcek;a(Lcfc;Lclt;Lbxz;Lbdp;)Lbdr;
intermediary method_48576
Lnet/minecraft/class_5151;method_48576(Lnet/minecraft/class_1792;Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1271;
named equipAndSwap
Lnet/minecraft/item/Wearable;equipAndSwap(Lnet/minecraft/item/Item;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;
-
method_48957
- Mappings:
Namespace Name Mixin selector official c_
Lcek;c_(Lcfh;)Lcek;
intermediary method_48957
Lnet/minecraft/class_5151;method_48957(Lnet/minecraft/class_1799;)Lnet/minecraft/class_5151;
named method_48957
Lnet/minecraft/item/Wearable;method_48957(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/Wearable;
-