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.unmapped.C_uippejmz$C_xaqghtin
net.minecraft.component.type.ToolComponent$Rule
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
f_xwonlglo
blocks
blocks
f_316953_
final Optional<Float>
d
speed
comp_2502
f_mouhdgvy
speed
speed
f_314550_
final Optional<Boolean>
e
correctForDrops
comp_2503
f_plljnwwn
correctForDrops
correctForDrops
f_315140_
public static final com.mojang.serialization.Codec<Tool$Rule>
a
CODEC
field_50011
f_xtppcnbp
CODEC
CODEC
f_314178_
public static final StreamCodec<RegistryFriendlyByteBuf, Tool$Rule>
b
STREAM_CODEC
field_50012
f_vbdpfiap
PACKET_CODEC
PACKET_CODEC
f_314031_

Constructor summary

ModifierConstructor
public (HolderSet<Block> blocks, Optional<Float> speed, Optional<Boolean> correctForDrops)

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)
m_sftwpvor(C_odfnijdo<C_mmxmpdoq> arg0, float arg1)
ofAlwaysDropping(RegistryEntryList<Block> blocks, float speed)
m_sftwpvor(HolderSet<Block> blocks, float f)
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)
m_pagfzxcb(C_odfnijdo<C_mmxmpdoq> arg0)
ofNeverDropping(RegistryEntryList<Block> blocks)
ofDeniesDrops(HolderSet<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)
m_nazdqhpb(C_odfnijdo<C_mmxmpdoq> arg0, float arg1)
of(RegistryEntryList<Block> blocks, float speed)
m_nazdqhpb(HolderSet<Block> blocks, float f)
m_319062_(C_203233_<C_1706_> p_368126_, float p_329347_)
public HolderSet<Block>
a()
blocks()
comp_2501()
m_tbdnyayc()
blocks()
blocks()
f_316953_()
public Optional<Float>
b()
speed()
comp_2502()
m_przhswra()
speed()
speed()
f_314550_()
public Optional<Boolean>
c()
correctForDrops()
comp_2503()
m_xpnbibkd()
correctForDrops()
correctForDrops()
f_315140_()