net.minecraft.world.item.component

public record Tool

dar
net.minecraft.world.item.component.Tool
net.minecraft.class_9424
net.minecraft.component.type.ToolComponent
net.minecraft.world.item.component.Tool

Field summary

Modifier and TypeField
private final List<Tool$Rule>
c
rules
comp_2498
rules
private final float
d
defaultMiningSpeed
comp_2499
defaultMiningSpeed
private final int
e
damagePerBlock
comp_2500
damagePerBlock
public static final com.mojang.serialization.Codec<Tool>
a
CODEC
field_50009
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, Tool>
b
STREAM_CODEC
field_50010
PACKET_CODEC

Constructor summary

ModifierConstructor
public (List<Tool$Rule> arg0, float arg1, int arg2)

Method summary

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