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 yr$a$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
-
Constructor Summary
ConstructorDescriptionElement
(JsonElement jsonElement, int int2, com.mojang.serialization.Lifecycle lifecycle) -
Method Summary
Modifier and TypeMethodDescriptiondata()
Returns the value of thedata
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.com.mojang.serialization.Lifecycle
Returns the value of thelifecycle
record component.final String
toString()
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
-
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 thedata
record component.- Returns:
- the value of the
data
record component
-
id
public int id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
lifecycle
public com.mojang.serialization.Lifecycle lifecycle()Returns the value of thelifecycle
record component.- Returns:
- the value of the
lifecycle
record component
-