Record Class EntryLoader.Impl.Element

java.lang.Object
java.lang.Record
net.minecraft.util.dynamic.EntryLoader.Impl.Element
Record Components:
data -
id -
lifecycle -
Enclosing class:
EntryLoader.Impl

private static record EntryLoader.Impl.Element(JsonElement data, int id, com.mojang.serialization.Lifecycle lifecycle) extends Record
Mappings:
Namespace Name
official aaz$b$a
intermediary net/minecraft/class_5506$class_5507$class_6821
named net/minecraft/util/dynamic/EntryLoader$Impl$Element
official a
intermediary comp_296
named data
official b
intermediary comp_297
named id
official c
intermediary comp_298
named lifecycle
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final JsonElement
    The field for the data record component.
    private final int
    The field for the id record component.
    private final com.mojang.serialization.Lifecycle
    The field for the lifecycle record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Element(JsonElement jsonElement, int int2, com.mojang.serialization.Lifecycle lifecycle)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the data record component.
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    id()
    Returns the value of the id record component.
    com.mojang.serialization.Lifecycle
    Returns the value of the lifecycle record component.
    <E> com.mojang.serialization.DataResult<EntryLoader.Entry<E>>
    parse(com.mojang.serialization.DynamicOps<JsonElement> jsonOps, com.mojang.serialization.Decoder<E> decoder)
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    • data

      private final JsonElement data
      The field for the data record component.
    • id

      private final int id
      The field for the id record component.
    • lifecycle

      private final com.mojang.serialization.Lifecycle lifecycle
      The field for the lifecycle record component.
  • Constructor Details

    • Element

      Element(JsonElement jsonElement, int int2, com.mojang.serialization.Lifecycle lifecycle)
  • Method Details

    • parse

      public <E> com.mojang.serialization.DataResult<EntryLoader.Entry<E>> parse(com.mojang.serialization.DynamicOps<JsonElement> jsonOps, com.mojang.serialization.Decoder<E> decoder)
      Mappings:
      Namespace Name Mixin selector
      official a Laaz$b$a;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Decoder;)Lcom/mojang/serialization/DataResult;
      intermediary method_42091 Lnet/minecraft/class_5506$class_5507$class_6821;method_42091(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Decoder;)Lcom/mojang/serialization/DataResult;
      named parse Lnet/minecraft/util/dynamic/EntryLoader$Impl$Element;parse(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Decoder;)Lcom/mojang/serialization/DataResult;
    • toString

      public final 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
    • hashCode

      public final 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
    • equals

      public final boolean equals(Object object)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • data

      public JsonElement data()
      Returns the value of the data record component.
      Returns:
      the value of the data record component
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • lifecycle

      public com.mojang.serialization.Lifecycle lifecycle()
      Returns the value of the lifecycle record component.
      Returns:
      the value of the lifecycle record component