net.minecraft.world.item.component

public record Tool

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

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
private final boolean
f
canDestroyBlocksInCreative
comp_3480
canDestroyBlocksInCreative
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, boolean arg3)

Method summary

Modifier and TypeMethod
public float
a(dzo arg0)
getMiningSpeed(BlockState arg0)
method_58425(class_2680 arg0)
getSpeed(BlockState state)
public boolean
b(dzo 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()
public boolean
d()
canDestroyBlocksInCreative()
comp_3480()
canDestroyBlocksInCreative()