net.minecraft.world.item.equipment

public record Equippable

dhm
net.minecraft.world.item.equipment.Equippable
net.minecraft.class_10192
net.minecraft.unmapped.C_duiqsjgf
net.minecraft.component.type.EquippableComponent
net.minecraft.component.type.EquippableComponent

Field summary

Modifier and TypeField
private final EquipmentSlot
c
slot
comp_3174
f_yyrypajc
slot
slot
private final Holder<SoundEvent>
d
equipSound
comp_3175
f_dxnqysdj
equipSound
equipSound
private final Optional<ResourceKey<EquipmentAsset>>
e
assetId
comp_3176
f_fqkgtjmq
assetId
assetId
private final Optional<ResourceLocation>
f
cameraOverlay
comp_3306
f_sarzggao
cameraOverlay
cameraOverlay
private final Optional<HolderSet<EntityType<?>>>
g
allowedEntities
comp_3177
f_kfkbbnbj
allowedEntities
allowedEntities
private final boolean
h
dispensable
comp_3178
f_qgqwpocs
dispensable
dispensable
private final boolean
i
swappable
comp_3213
f_wpjzqren
swappable
swappable
private final boolean
j
damageOnHurt
comp_3214
f_pdakrnom
damageOnHurt
damageOnHurt
private final boolean
k
equipOnInteract
comp_3523
f_zqllxrlk
equipOnInteract
equipOnInteract
public static final com.mojang.serialization.Codec<Equippable>
a
CODEC
field_54145
f_aiviejys
CODEC
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, Equippable>
b
STREAM_CODEC
field_54146
f_rcjvtbij
PACKET_CODEC
PACKET_CODEC

Constructor summary

ModifierConstructor
public (EquipmentSlot slot, Holder<SoundEvent> equipSound, Optional<ResourceKey<EquipmentAsset>> assetId, Optional<ResourceLocation> cameraOverlay, Optional<HolderSet<EntityType<?>>> allowedEntities, boolean dispensable, boolean swappable, boolean damageOnHurt, boolean equipOnInteract)

Method summary

Modifier and TypeMethod
public static Equippable
a(cyb arg0)
llamaSwag(DyeColor arg0)
method_64017(class_1767 arg0)
m_vrowzmfm(C_arllgqae arg0)
ofCarpet(DyeColor color)
createLlamaCarpet(DyeColor color)
public static Equippable
a()
saddle()
method_66699()
m_qejodejq()
ofSaddle()
public static Equippable$Builder
a(bwp arg0)
builder(EquipmentSlot arg0)
method_64202(class_1304 arg0)
m_dvyqpxuk(C_yuycoehb arg0)
builder(EquipmentSlot slot)
builder(EquipmentSlot slot)
public InteractionResult
a(czd arg0, crc arg1)
swapWithEquipmentSlot(ItemStack arg0, Player arg1)
method_64018(class_1799 arg0, class_1657 arg1)
m_gmylyrjl(C_sddaxwyk arg0, C_jzrpycqo arg1)
equip(ItemStack stack, PlayerEntity player)
tryEquip(ItemStack stack, PlayerEntity player)
public InteractionResult
a(crc arg0, bxe arg1, czd arg2)
equipOnTarget(Player arg0, LivingEntity arg1, ItemStack arg2)
method_66700(class_1657 arg0, class_1309 arg1, class_1799 arg2)
m_ishefkzw(C_jzrpycqo arg0, C_usxaxydn arg1, C_sddaxwyk arg2)
equipOnInteract(PlayerEntity player, LivingEntity entity, ItemStack stack)
m_ishefkzw(PlayerEntity player, LivingEntity entity, ItemStack stack)
public boolean
a(bwo<?> arg0)
canBeEquippedBy(EntityType<?> arg0)
method_64015(class_1299<?> arg0)
m_yijfomsq(C_ogavsvbr<?> arg0)
allows(EntityType<?> entityType)
allows(EntityType<?> type)
public EquipmentSlot
b()
slot()
comp_3174()
m_vbyfxvtr()
slot()
slot()
public Holder<SoundEvent>
c()
equipSound()
comp_3175()
m_dwkyjgkf()
equipSound()
equipSound()
public Optional<ResourceKey<EquipmentAsset>>
d()
assetId()
comp_3176()
m_hhatjier()
assetId()
assetId()
public Optional<ResourceLocation>
e()
cameraOverlay()
comp_3306()
m_oaqyznmk()
cameraOverlay()
cameraOverlay()
public Optional<HolderSet<EntityType<?>>>
f()
allowedEntities()
comp_3177()
m_lyhouxiz()
allowedEntities()
allowedEntities()
public boolean
g()
dispensable()
comp_3178()
m_fhsnxtby()
dispensable()
dispensable()
public boolean
h()
swappable()
comp_3213()
m_hixmlpsn()
swappable()
swappable()
public boolean
i()
damageOnHurt()
comp_3214()
m_qufjhpkg()
damageOnHurt()
damageOnHurt()
public boolean
j()
equipOnInteract()
comp_3523()
m_lymcpayt()
equipOnInteract()
equipOnInteract()