net.minecraft.world.item.equipment

public record Equippable

dfu
net.minecraft.world.item.equipment.Equippable
net.minecraft.class_10192
net.minecraft.component.type.EquippableComponent
net.minecraft.world.item.equipment.Equippable

Field summary

Modifier and TypeField
private final EquipmentSlot
c
slot
comp_3174
slot
private final Holder<SoundEvent>
d
equipSound
comp_3175
equipSound
private final Optional<ResourceLocation>
e
model
comp_3176
model
private final Optional<ResourceLocation>
f
cameraOverlay
comp_3306
cameraOverlay
private final Optional<HolderSet<EntityType<?>>>
g
allowedEntities
comp_3177
allowedEntities
private final boolean
h
dispensable
comp_3178
dispensable
private final boolean
i
swappable
comp_3213
swappable
private final boolean
j
damageOnHurt
comp_3214
damageOnHurt
public static final com.mojang.serialization.Codec<Equippable>
a
CODEC
field_54145
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, Equippable>
b
STREAM_CODEC
field_54146
PACKET_CODEC

Constructor summary

ModifierConstructor
public (EquipmentSlot arg0, Holder<SoundEvent> arg1, Optional<ResourceLocation> arg2, Optional<ResourceLocation> arg3, Optional<HolderSet<EntityType<?>>> arg4, boolean arg5, boolean arg6, boolean arg7)

Method summary

Modifier and TypeMethod
public static Equippable
a(cwm arg0)
llamaSwag(DyeColor arg0)
method_64017(class_1767 arg0)
ofCarpet(DyeColor color)
public static Equippable$Builder
a(bvs arg0)
builder(EquipmentSlot arg0)
method_64202(class_1304 arg0)
builder(EquipmentSlot slot)
public InteractionResult
a(cxp arg0, cpx arg1)
swapWithEquipmentSlot(ItemStack arg0, Player arg1)
method_64018(class_1799 arg0, class_1657 arg1)
equip(ItemStack stack, PlayerEntity player)
public boolean
a(bvr<?> arg0)
canBeEquippedBy(EntityType<?> arg0)
method_64015(class_1299<?> arg0)
allows(EntityType<?> entityType)
public EquipmentSlot
a()
slot()
comp_3174()
slot()
public Holder<SoundEvent>
b()
equipSound()
comp_3175()
equipSound()
public Optional<ResourceLocation>
c()
model()
comp_3176()
model()
public Optional<ResourceLocation>
d()
cameraOverlay()
comp_3306()
cameraOverlay()
public Optional<HolderSet<EntityType<?>>>
e()
allowedEntities()
comp_3177()
allowedEntities()
public boolean
f()
dispensable()
comp_3178()
dispensable()
public boolean
g()
swappable()
comp_3213()
swappable()
public boolean
h()
damageOnHurt()
comp_3214()
damageOnHurt()