net.minecraft.world.item.component

public record Tool

cxx
net.minecraft.world.item.component.Tool
net.minecraft.class_9424
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
rules
f_316959_
private final float
d
defaultMiningSpeed
comp_2499
defaultMiningSpeed
f_314531_
private final int
e
damagePerBlock
comp_2500
damagePerBlock
f_315325_
public static final com.mojang.serialization.Codec<Tool>
a
CODEC
field_50009
CODEC
f_314592_
public static final StreamCodec<RegistryFriendlyByteBuf, Tool>
b
STREAM_CODEC
field_50010
PACKET_CODEC
f_314459_

Constructor summary

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

Method summary

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