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.src.C_313874_$C_313342_
net.minecraft.world.item.component.Tool$a

Field summary

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

Constructor summary

ModifierConstructor
public (HolderSet<Block> speed, Optional<Float> correctForDrops, 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)
m_321859_(C_203233_<C_1706_> p_367681_, float p_329194_)
public static Tool$Rule
a(ju<dkm> arg0)
deniesDrops(HolderSet<Block> arg0)
method_58427(class_6885<class_2248> arg0)
ofNeverDropping(RegistryEntryList<Block> blocks)
m_323695_(C_203233_<C_1706_> p_368367_)
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)
m_319062_(C_203233_<C_1706_> p_368126_, float p_329347_)
public HolderSet<Block>
a()
blocks()
comp_2501()
blocks()
f_316953_()
public Optional<Float>
b()
speed()
comp_2502()
speed()
f_314550_()
public Optional<Boolean>
c()
correctForDrops()
comp_2503()
correctForDrops()
f_315140_()