net.minecraft.world.item.component

public record Tool

ded
net.minecraft.world.item.component.Tool
net.minecraft.class_9424

Field summary

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

Constructor summary

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

Method summary

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