Record Class ValueDeseralizationContext
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.api.evaluate.variable.ValueDeseralizationContext
public record ValueDeseralizationContext(net.minecraft.core.HolderGetter<net.minecraft.world.level.block.Block> holderGetter)
extends Record
-
Constructor Summary
ConstructorDescriptionValueDeseralizationContext
(net.minecraft.core.HolderGetter<net.minecraft.world.level.block.Block> holderGetter) 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.HolderGetter<net.minecraft.world.level.block.Block>
Returns the value of theholderGetter
record component.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.HolderGetter<net.minecraft.world.level.block.Block> holderGetter) Creates an instance of aValueDeseralizationContext
record class.- Parameters:
holderGetter
- the value for theholderGetter
record component
-
-
Method Details
-
of
-
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)
. -
holderGetter
public net.minecraft.core.HolderGetter<net.minecraft.world.level.block.Block> holderGetter()Returns the value of theholderGetter
record component.- Returns:
- the value of the
holderGetter
record component
-