net.minecraft.world.item.component

public record Tool$Rule

dar$a
net.minecraft.world.item.component.Tool$Rule
net.minecraft.class_9424$class_9425
net.minecraft.component.type.ToolComponent$Rule
net.minecraft.world.item.component.Tool$a

Field summary

Modifier and TypeField
final HolderSet<Block>
c
blocks
comp_2501
blocks
final Optional<Float>
d
speed
comp_2502
speed
final Optional<Boolean>
e
correctForDrops
comp_2503
correctForDrops
public static final com.mojang.serialization.Codec<Tool$Rule>
a
CODEC
field_50011
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, Tool$Rule>
b
STREAM_CODEC
field_50012
PACKET_CODEC

Constructor summary

ModifierConstructor
public (HolderSet<Block> arg0, Optional<Float> arg1, Optional<Boolean> arg2)

Method summary

Modifier and TypeMethod
public static Tool$Rule
a(ju<dkm> arg0, float arg1)
minesAndDrops(HolderSet<Block> arg0, float arg1)
method_58431(class_6885<class_2248> arg0, float arg1)
ofAlwaysDropping(RegistryEntryList<Block> blocks, float speed)
public static Tool$Rule
a(ju<dkm> arg0)
deniesDrops(HolderSet<Block> arg0)
method_58427(class_6885<class_2248> arg0)
ofNeverDropping(RegistryEntryList<Block> blocks)
public static Tool$Rule
b(ju<dkm> arg0, float arg1)
overrideSpeed(HolderSet<Block> arg0, float arg1)
method_58434(class_6885<class_2248> arg0, float arg1)
of(RegistryEntryList<Block> blocks, float speed)
public HolderSet<Block>
a()
blocks()
comp_2501()
blocks()
public Optional<Float>
b()
speed()
comp_2502()
speed()
public Optional<Boolean>
c()
correctForDrops()
comp_2503()
correctForDrops()