Record Class BiomeModifiers.Attributes
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.BiomeModifiers.Attributes
- Enclosing class:
BiomeModifiers
public static record BiomeModifiers.Attributes(net.minecraft.world.attribute.EnvironmentAttributeMap set, net.minecraft.world.attribute.EnvironmentAttributeMap modify)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BiomeModifiers.Attributes> static final BiomeModifiers.Attributes -
Constructor Summary
ConstructorsConstructorDescriptionAttributes(net.minecraft.world.attribute.EnvironmentAttributeMap set, net.minecraft.world.attribute.EnvironmentAttributeMap modify) Creates an instance of aAttributesrecord 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.world.attribute.EnvironmentAttributeMapmodify()Returns the value of themodifyrecord component.net.minecraft.world.attribute.EnvironmentAttributeMapset()Returns the value of thesetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
CODEC
-
-
Constructor Details
-
Attributes
public Attributes(net.minecraft.world.attribute.EnvironmentAttributeMap set, net.minecraft.world.attribute.EnvironmentAttributeMap modify) Creates an instance of aAttributesrecord class.- Parameters:
set- the value for thesetrecord componentmodify- the value for themodifyrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
set
public net.minecraft.world.attribute.EnvironmentAttributeMap set()Returns the value of thesetrecord component.- Returns:
- the value of the
setrecord component
-
modify
public net.minecraft.world.attribute.EnvironmentAttributeMap modify()Returns the value of themodifyrecord component.- Returns:
- the value of the
modifyrecord component
-