net.minecraft.world.item.equipment

public record Equippable

dfu
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
net.minecraft.src.C_346084_
net.minecraft.world.item.equipment.Equippable

Field summary

Modifier and TypeField
private final EquipmentSlot
c
slot
comp_3174
f_yyrypajc
slot
slot
f_346362_
private final Holder<SoundEvent>
d
equipSound
comp_3175
f_dxnqysdj
equipSound
equipSound
f_347695_
private final Optional<ResourceLocation>
e
model
comp_3176
f_klwxgyzx
model
model
f_348074_
private final Optional<ResourceLocation>
f
cameraOverlay
comp_3306
f_sarzggao
cameraOverlay
cameraOverlay
f_349062_
private final Optional<HolderSet<EntityType<?>>>
g
allowedEntities
comp_3177
f_kfkbbnbj
allowedEntities
allowedEntities
f_346765_
private final boolean
h
dispensable
comp_3178
f_qgqwpocs
dispensable
dispensable
f_349421_
private final boolean
i
swappable
comp_3213
f_wpjzqren
swappable
swappable
f_346638_
private final boolean
j
damageOnHurt
comp_3214
f_pdakrnom
damageOnHurt
damageOnHurt
f_346377_
public static final com.mojang.serialization.Codec<Equippable>
a
CODEC
field_54145
f_aiviejys
CODEC
CODEC
f_346414_
public static final StreamCodec<RegistryFriendlyByteBuf, Equippable>
b
STREAM_CODEC
field_54146
f_rcjvtbij
PACKET_CODEC
PACKET_CODEC
f_349558_

Constructor summary

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

Method summary

Modifier and TypeMethod
public static Equippable
a(cwm arg0)
llamaSwag(DyeColor arg0)
method_64017(class_1767 arg0)
m_vrowzmfm(C_arllgqae arg0)
ofCarpet(DyeColor color)
m_357100_(C_1353_ p_369724_)
public static Equippable$Builder
a(bvs arg0)
builder(EquipmentSlot arg0)
method_64202(class_1304 arg0)
m_dvyqpxuk(C_yuycoehb arg0)
builder(EquipmentSlot slot)
m_354962_(C_516_ p_362012_)
public InteractionResult
a(cxp arg0, cpx 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)
m_gmylyrjl(ItemStack stack, PlayerEntity player)
m_353200_(C_1391_ p_365204_, C_1141_ arg1)
public boolean
a(bvr<?> arg0)
canBeEquippedBy(EntityType<?> arg0)
method_64015(class_1299<?> arg0)
m_yijfomsq(C_ogavsvbr<?> arg0)
allows(EntityType<?> entityType)
m_356806_(C_513_<?> arg0)
public EquipmentSlot
a()
slot()
comp_3174()
m_vbyfxvtr()
slot()
slot()
f_346362_()
public Holder<SoundEvent>
b()
equipSound()
comp_3175()
m_dwkyjgkf()
equipSound()
equipSound()
f_347695_()
public Optional<ResourceLocation>
c()
model()
comp_3176()
m_whwobtrc()
model()
model()
f_348074_()
public Optional<ResourceLocation>
d()
cameraOverlay()
comp_3306()
m_oaqyznmk()
cameraOverlay()
cameraOverlay()
f_349062_()
public Optional<HolderSet<EntityType<?>>>
e()
allowedEntities()
comp_3177()
m_lyhouxiz()
allowedEntities()
allowedEntities()
f_346765_()
public boolean
f()
dispensable()
comp_3178()
m_fhsnxtby()
dispensable()
dispensable()
f_349421_()
public boolean
g()
swappable()
comp_3213()
m_hixmlpsn()
swappable()
swappable()
f_346638_()
public boolean
h()
damageOnHurt()
comp_3214()
m_qufjhpkg()
damageOnHurt()
damageOnHurt()
f_346377_()