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.CODEC
static final PacketCodec
<RegistryByteBuf, ToolComponent.Rule> ToolComponent.Rule.PACKET_CODEC
private final List
<ToolComponent.Rule> ToolComponent.rules
The field for therules
record component.Methods in net.minecraft.component.type that return ToolComponent.RuleModifier and TypeMethodDescriptionstatic ToolComponent.Rule
ToolComponent.Rule.of
(RegistryEntryList<Block> blocks, float speed) static ToolComponent.Rule
ToolComponent.Rule.ofAlwaysDropping
(RegistryEntryList<Block> blocks, float speed) static ToolComponent.Rule
ToolComponent.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 therules
record component.Constructor parameters in net.minecraft.component.type with type arguments of type ToolComponent.RuleModifierConstructorDescriptionToolComponent
(List<ToolComponent.Rule> list, float float2, int int2, boolean bool)