net.minecraft.component.type

public record PiercingWeaponComponent

dow
net.minecraft.world.item.component.PiercingWeapon
net.minecraft.class_12125
net.minecraft.component.type.PiercingWeaponComponent
net.minecraft.unmapped.C_wfnouvav
net.minecraft.unmapped.C_wfnouvav
net.minecraft.src.C_432120_

Field summary

Modifier and TypeField
private final boolean
c
dealsKnockback
comp_4971
dealsKnockback
f_tdyjomrb
dealsKnockback
f_436980_
private final boolean
d
dismounts
comp_4972
dismounts
f_lghnjtmw
dismounts
f_436715_
private final Optional<RegistryEntry<SoundEvent>>
e
sound
comp_4973
sound
f_cdmawmkw
sound
f_435872_
private final Optional<RegistryEntry<SoundEvent>>
f
hitSound
comp_4974
hitSound
f_fyknzixk
hitSound
f_436476_
public static final com.mojang.serialization.Codec<PiercingWeaponComponent>
a
CODEC
field_63411
CODEC
f_ysjgmexz
CODEC
f_436537_
public static final PacketCodec<RegistryByteBuf, PiercingWeaponComponent>
b
STREAM_CODEC
field_63412
PACKET_CODEC
f_snfxrvnd
PACKET_CODEC
f_433901_

Constructor summary

ModifierConstructor
public (boolean dealsKnockback, boolean dismounts, Optional<RegistryEntry<SoundEvent>> sound, Optional<RegistryEntry<SoundEvent>> hitSound)

Method summary

Modifier and TypeMethod
public void
a(cgk arg0)
makeSound(Entity arg0)
method_75243(class_1297 arg0)
playSound(Entity entity)
m_ryjnwqol(C_astfners arg0)
m_ryjnwqol(Entity entity)
m_439163_(C_507_ arg0)
public void
b(cgk arg0)
makeHitSound(Entity arg0)
method_75247(class_1297 arg0)
playHitSound(Entity entity)
m_sszxbixs(C_astfners arg0)
m_sszxbixs(Entity entity)
m_442673_(C_507_ arg0)
public static boolean
a(cgk o, cgk o)
canHitEntity(Entity arg0, Entity arg1)
method_75244(class_1297 arg0, class_1297 arg1)
canHit(Entity attacker, Entity target)
m_mzjjfvfh(C_astfners arg0, C_astfners arg1)
m_441870_(C_507_ p_452642_, C_507_ p_454622_)
public void
a(chl o, cgv arg1)
attack(LivingEntity arg0, EquipmentSlot arg1)
method_75242(class_1309 arg0, class_1304 arg1)
stab(LivingEntity attacker, EquipmentSlot slot)
m_xmyujedi(C_usxaxydn arg0, C_yuycoehb arg1)
m_xmyujedi(LivingEntity entity, EquipmentSlot slot)
m_441779_(C_524_ p_457940_, C_516_ arg1)
public boolean
a()
dealsKnockback()
comp_4971()
dealsKnockback()
m_llndiquj()
dealsKnockback()
f_436980_()
public boolean
b()
dismounts()
comp_4972()
dismounts()
m_rvrmkjyc()
dismounts()
f_436715_()
public Optional<RegistryEntry<SoundEvent>>
c()
sound()
comp_4973()
sound()
m_cbfwxhse()
sound()
f_435872_()
public Optional<RegistryEntry<SoundEvent>>
d()
hitSound()
comp_4974()
hitSound()
m_hxayawkh()
hitSound()
f_436476_()