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
ConstructorsConstructorDescriptionValueDeseralizationContext(net.minecraft.core.HolderLookup.Provider holderLookupProvider) Creates an instance of aValueDeseralizationContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.core.HolderLookup.ProviderReturns the value of theholderLookupProviderrecord component.static ValueDeseralizationContextof(net.minecraft.core.HolderLookup.Provider holderLookupProvider) static ValueDeseralizationContextof(net.minecraft.world.level.Level level) static ValueDeseralizationContextstatic ValueDeseralizationContextofClient()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValueDeseralizationContext
public ValueDeseralizationContext(net.minecraft.core.HolderLookup.Provider holderLookupProvider) Creates an instance of aValueDeseralizationContextrecord class.- Parameters:
holderLookupProvider- the value for theholderLookupProviderrecord 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 theholderLookupProviderrecord component.- Returns:
- the value of the
holderLookupProviderrecord component
-