Package net.minecraft.util.dynamic
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 aah$b$aintermediary net/minecraft/class_5506$class_5507$class_6821named net/minecraft/util/dynamic/EntryLoader$Impl$Elementofficial aintermediary comp_296named dataofficial bintermediary comp_297named idofficial cintermediary comp_298named lifecycle
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionElement(JsonElement jsonElement, int int2, com.mojang.serialization.Lifecycle lifecycle) -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.com.mojang.serialization.LifecycleReturns the value of thelifecyclerecord component.<E> com.mojang.serialization.DataResult<EntryLoader.Entry<E>>parse(com.mojang.serialization.DynamicOps<JsonElement> jsonOps, com.mojang.serialization.Decoder<E> decoder) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
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 aLaah$b$a;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Decoder;)Lcom/mojang/serialization/DataResult;intermediary method_42091Lnet/minecraft/class_5506$class_5507$class_6821;method_42091(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Decoder;)Lcom/mojang/serialization/DataResult;named parseLnet/minecraft/util/dynamic/EntryLoader$Impl$Element;parse(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Decoder;)Lcom/mojang/serialization/DataResult;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
lifecycle
public com.mojang.serialization.Lifecycle lifecycle()Returns the value of thelifecyclerecord component.- Returns:
- the value of the
lifecyclerecord component
-