Record Class ModJavadocProcessor.ModJavadoc

java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.processors.ModJavadocProcessor.ModJavadoc
Enclosing class:
ModJavadocProcessor

public static record ModJavadocProcessor.ModJavadoc(String modId, net.fabricmc.mappingio.tree.MemoryMappingTree mappingTree, String mappingsHash) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModJavadoc(String modId, net.fabricmc.mappingio.tree.MemoryMappingTree mappingTree, String mappingsHash)
    Creates an instance of a ModJavadoc record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(net.fabricmc.mappingio.tree.MemoryMappingTree target, boolean disableObfuscation)
     
    create(FabricModJson fabricModJson, MappingsNamespace productionNamespace)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns a hash code value for this object.
    Returns the value of the mappingsHash record component.
    net.fabricmc.mappingio.tree.MemoryMappingTree
    Returns the value of the mappingTree record component.
    Returns the value of the modId record component.
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ModJavadoc

      public ModJavadoc(String modId, net.fabricmc.mappingio.tree.MemoryMappingTree mappingTree, String mappingsHash)
      Creates an instance of a ModJavadoc record class.
      Parameters:
      modId - the value for the modId record component
      mappingTree - the value for the mappingTree record component
      mappingsHash - the value for the mappingsHash record component
  • Method Details

    • create

      public static @Nullable ModJavadocProcessor.ModJavadoc create(FabricModJson fabricModJson, MappingsNamespace productionNamespace)
    • apply

      public void apply(net.fabricmc.mappingio.tree.MemoryMappingTree target, boolean disableObfuscation)
    • hashCode

      public int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • modId

      public String modId()
      Returns the value of the modId record component.
      Returns:
      the value of the modId record component
    • mappingTree

      public net.fabricmc.mappingio.tree.MemoryMappingTree mappingTree()
      Returns the value of the mappingTree record component.
      Returns:
      the value of the mappingTree record component
    • mappingsHash

      public String mappingsHash()
      Returns the value of the mappingsHash record component.
      Returns:
      the value of the mappingsHash record component