Uses of Record Class
net.minecraft.component.type.ToolComponent.Rule
Packages that use ToolComponent.Rule
-
Uses of ToolComponent.Rule in net.minecraft.component.type
Fields in net.minecraft.component.type with type parameters of type ToolComponent.RuleModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ToolComponent.Rule> ToolComponent.Rule.CODECstatic final PacketCodec<RegistryByteBuf, ToolComponent.Rule> ToolComponent.Rule.PACKET_CODECprivate final List<ToolComponent.Rule> ToolComponent.rulesThe field for therulesrecord component.Methods in net.minecraft.component.type that return ToolComponent.RuleModifier and TypeMethodDescriptionstatic ToolComponent.RuleToolComponent.Rule.of(RegistryEntryList<Block> blocks, float speed) static ToolComponent.RuleToolComponent.Rule.ofAlwaysDropping(RegistryEntryList<Block> blocks, float speed) static ToolComponent.RuleToolComponent.Rule.ofNeverDropping(RegistryEntryList<Block> blocks) Methods in net.minecraft.component.type that return types with arguments of type ToolComponent.RuleModifier and TypeMethodDescriptionToolComponent.rules()Returns the value of therulesrecord component.Constructor parameters in net.minecraft.component.type with type arguments of type ToolComponent.RuleModifierConstructorDescriptionToolComponent(List<ToolComponent.Rule> list, float float2, int int2)