net.minecraft.world.item.component

public record Tool$Rule

cxx$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(List<dfy> arg0, float arg1)
minesAndDrops(List<Block> arg0, float arg1)
method_58431(List<class_2248> arg0, float arg1)
ofAlwaysDropping(List<Block> blocks, float speed)
m_321859_(List<C_1706_> p_335835_, float p_329194_)
public static Tool$Rule
a(awu<dfy> arg0, float arg1)
minesAndDrops(TagKey<Block> arg0, float arg1)
method_58428(class_6862<class_2248> arg0, float arg1)
ofAlwaysDropping(TagKey<Block> blocks, float speed)
m_321972_(C_203208_<C_1706_> p_331729_, float p_328288_)
public static Tool$Rule
a(awu<dfy> arg0)
deniesDrops(TagKey<Block> arg0)
method_58427(class_6862<class_2248> arg0)
ofNeverDropping(TagKey<Block> tag)
m_323695_(C_203208_<C_1706_> p_330234_)
public static Tool$Rule
b(awu<dfy> arg0, float arg1)
overrideSpeed(TagKey<Block> arg0, float arg1)
method_58433(class_6862<class_2248> arg0, float arg1)
of(TagKey<Block> tag, float speed)
m_319062_(C_203208_<C_1706_> p_331960_, float p_329347_)
public static Tool$Rule
b(List<dfy> arg0, float arg1)
overrideSpeed(List<Block> arg0, float arg1)
method_58434(List<class_2248> arg0, float arg1)
of(List<Block> blocks, float speed)
m_322924_(List<C_1706_> p_330791_, float p_328067_)
private static Tool$Rule
a(awu<dfy> arg0, Optional<Float> arg1, Optional<Boolean> arg2)
forTag(TagKey<Block> arg0, Optional<Float> arg1, Optional<Boolean> arg2)
method_58429(class_6862<class_2248> arg0, Optional<Float> arg1, Optional<Boolean> arg2)
of(TagKey<Block> tag, Optional<Float> speed, Optional<Boolean> correctForDrops)
m_320355_(C_203208_<C_1706_> p_330425_, Optional<Float> p_328628_, Optional<Boolean> p_332485_)
private static Tool$Rule
a(List<dfy> arg0, Optional<Float> arg1, Optional<Boolean> arg2)
forBlocks(List<Block> arg0, Optional<Float> arg1, Optional<Boolean> arg2)
method_58432(List<class_2248> arg0, Optional<Float> arg1, Optional<Boolean> arg2)
of(List<Block> blocks, Optional<Float> speed, Optional<Boolean> correctForDrops)
m_322181_(List<C_1706_> p_330965_, Optional<Float> p_333293_, Optional<Boolean> p_332888_)
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_()