net.minecraft.world.item.equipment

public record Equippable

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

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<ResourceKey<EquipmentAsset>>
e
assetId
comp_3176
assetId
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
private final boolean
k
equipOnInteract
comp_3523
equipOnInteract
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<ResourceKey<EquipmentAsset>> arg2, Optional<ResourceLocation> arg3, Optional<HolderSet<EntityType<?>>> arg4, boolean arg5, boolean arg6, boolean arg7, boolean arg8)

Method summary

Modifier and TypeMethod
public static Equippable
a(cxq arg0)
llamaSwag(DyeColor arg0)
method_64017(class_1767 arg0)
ofCarpet(DyeColor color)
public static Equippable
a()
saddle()
method_66699()
ofSaddle()
public static Equippable$Builder
a(bwk arg0)
builder(EquipmentSlot arg0)
method_64202(class_1304 arg0)
builder(EquipmentSlot slot)
public InteractionResult
a(cys arg0, cqs arg1)
swapWithEquipmentSlot(ItemStack arg0, Player arg1)
method_64018(class_1799 arg0, class_1657 arg1)
equip(ItemStack stack, PlayerEntity player)
public InteractionResult
a(cqs arg0, bwz arg1, cys arg2)
equipOnTarget(Player arg0, LivingEntity arg1, ItemStack arg2)
method_66700(class_1657 arg0, class_1309 arg1, class_1799 arg2)
equipOnInteract(PlayerEntity player, LivingEntity entity, ItemStack stack)
public boolean
a(bwj<?> arg0)
canBeEquippedBy(EntityType<?> arg0)
method_64015(class_1299<?> arg0)
allows(EntityType<?> entityType)
public EquipmentSlot
b()
slot()
comp_3174()
slot()
public Holder<SoundEvent>
c()
equipSound()
comp_3175()
equipSound()
public Optional<ResourceKey<EquipmentAsset>>
d()
assetId()
comp_3176()
assetId()
public Optional<ResourceLocation>
e()
cameraOverlay()
comp_3306()
cameraOverlay()
public Optional<HolderSet<EntityType<?>>>
f()
allowedEntities()
comp_3177()
allowedEntities()
public boolean
g()
dispensable()
comp_3178()
dispensable()
public boolean
h()
swappable()
comp_3213()
swappable()
public boolean
i()
damageOnHurt()
comp_3214()
damageOnHurt()
public boolean
j()
equipOnInteract()
comp_3523()
equipOnInteract()