net.minecraft.world.item.component

public record Weapon

dca
net.minecraft.world.item.component.Weapon
net.minecraft.class_10590
net.minecraft.component.type.WeaponComponent

Field summary

Modifier and TypeField
private final int
d
itemDamagePerAttack
comp_3481
itemDamagePerAttack
private final float
e
disableBlockingForSeconds
comp_3602
disableBlockingForSeconds
public static final float
a
AXE_DISABLES_BLOCKING_FOR_SECONDS
field_56320
field_56320
public static final com.mojang.serialization.Codec<Weapon>
b
CODEC
field_55712
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, Weapon>
c
STREAM_CODEC
field_55713
PACKET_CODEC

Constructor summary

ModifierConstructor
public (int arg0)
public (int arg0, float arg1)

Method summary

Modifier and TypeMethod
public int
a()
itemDamagePerAttack()
comp_3481()
itemDamagePerAttack()
public float
b()
disableBlockingForSeconds()
comp_3602()
disableBlockingForSeconds()