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.Ruleprivate static ToolComponent.Rulestatic ToolComponent.Ruleprivate static ToolComponent.Rulestatic ToolComponent.RuleToolComponent.Rule.ofAlwaysDropping(List<Block> blocks, float speed) static ToolComponent.RuleToolComponent.Rule.ofAlwaysDropping(TagKey<Block> blocks, float speed) static ToolComponent.RuleToolComponent.Rule.ofNeverDropping(TagKey<Block> tag) 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)