Uses of Record Class
net.minecraft.world.item.component.Tool.Rule
Packages that use Tool.Rule
-
Uses of Tool.Rule in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component with type parameters of type Tool.RuleModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Tool.Rule> Tool.Rule.CODEC
Tool.rules
The field for therules
record component.static final StreamCodec
<RegistryFriendlyByteBuf, Tool.Rule> Tool.Rule.STREAM_CODEC
Methods in net.minecraft.world.item.component that return Tool.RuleModifier and TypeMethodDescriptionstatic Tool.Rule
Tool.Rule.deniesDrops
(TagKey<Block> pBlocks) private static Tool.Rule
Tool.Rule.forBlocks
(List<Block> pBlocks, Optional<Float> pSpeed, Optional<Boolean> pCorrectForDrops) private static Tool.Rule
static Tool.Rule
Tool.Rule.minesAndDrops
(List<Block> pBlocks, float pSpeed) static Tool.Rule
Tool.Rule.minesAndDrops
(TagKey<Block> pBlocks, float pSpeed) static Tool.Rule
Tool.Rule.overrideSpeed
(List<Block> pBlocks, float pSpeed) static Tool.Rule
Tool.Rule.overrideSpeed
(TagKey<Block> pBlocks, float pSpeed) Methods in net.minecraft.world.item.component that return types with arguments of type Tool.RuleConstructor parameters in net.minecraft.world.item.component with type arguments of type Tool.Rule