net.minecraft.world.item.component

public record Tool

cxx
net.minecraft.world.item.component.Tool
net.minecraft.class_9424
net.minecraft.unmapped.C_uippejmz
net.minecraft.component.type.ToolComponent
net.minecraft.component.type.ToolComponent
net.minecraft.src.C_313874_
net.minecraft.world.item.component.Tool

Field summary

Modifier and TypeField
private final List<Tool$Rule>
c
rules
comp_2498
f_qjaamtmw
rules
rules
f_316959_
private final float
d
defaultMiningSpeed
comp_2499
f_qnvqdcdd
defaultMiningSpeed
defaultMiningSpeed
f_314531_
private final int
e
damagePerBlock
comp_2500
f_fzhisrnh
damagePerBlock
damagePerBlock
f_315325_
public static final com.mojang.serialization.Codec<Tool>
a
CODEC
field_50009
f_xghewlqv
CODEC
CODEC
f_314592_
public static final StreamCodec<RegistryFriendlyByteBuf, Tool>
b
STREAM_CODEC
field_50010
f_zoqllgte
PACKET_CODEC
PACKET_CODEC
f_314459_

Constructor summary

ModifierConstructor
public (List<Tool$Rule> rules, float defaultMiningSpeed, int damagePerBlock)

Method summary

Modifier and TypeMethod
public float
a(dtc arg0)
getMiningSpeed(BlockState arg0)
method_58425(class_2680 arg0)
m_bxeisvxb(C_txtbiemp arg0)
getSpeed(BlockState state)
getSpeed(BlockState state)
m_325036_(C_2064_ arg0)
public boolean
b(dtc arg0)
isCorrectForDrops(BlockState arg0)
method_58426(class_2680 arg0)
m_quryfiwy(C_txtbiemp arg0)
isCorrectForDrops(BlockState state)
isCorrectForDrops(BlockState state)
m_322492_(C_2064_ arg0)
public List<Tool$Rule>
a()
rules()
comp_2498()
m_xrkrtzmt()
rules()
rules()
f_316959_()
public float
b()
defaultMiningSpeed()
comp_2499()
m_axolbagk()
defaultMiningSpeed()
defaultMiningSpeed()
f_314531_()
public int
c()
damagePerBlock()
comp_2500()
m_kyifcjmp()
damagePerBlock()
damagePerBlock()
f_315325_()