Record Class ValueDeseralizationContext
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.api.evaluate.variable.ValueDeseralizationContext
public record ValueDeseralizationContext(net.minecraft.core.HolderLookup.Provider holderLookupProvider)
extends Record
-
Constructor Summary
ConstructorDescriptionValueDeseralizationContext
(net.minecraft.core.HolderLookup.Provider holderLookupProvider) Creates an instance of aValueDeseralizationContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.net.minecraft.core.HolderLookup.Provider
Returns the value of theholderLookupProvider
record component.static ValueDeseralizationContext
of
(net.minecraft.core.HolderLookup.Provider holderLookupProvider) static ValueDeseralizationContext
of
(net.minecraft.world.level.Level level) static ValueDeseralizationContext
static ValueDeseralizationContext
ofClient()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ValueDeseralizationContext
public ValueDeseralizationContext(net.minecraft.core.HolderLookup.Provider holderLookupProvider) Creates an instance of aValueDeseralizationContext
record class.- Parameters:
holderLookupProvider
- the value for theholderLookupProvider
record component
-
-
Method Details
-
of
-
of
public static ValueDeseralizationContext of(net.minecraft.core.HolderLookup.Provider holderLookupProvider) -
ofClient
-
ofAllEnabled
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
holderLookupProvider
public net.minecraft.core.HolderLookup.Provider holderLookupProvider()Returns the value of theholderLookupProvider
record component.- Returns:
- the value of the
holderLookupProvider
record component
-