Record Class BiomeModifiers.Definition
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.BiomeModifiers.Definition
- Enclosing class:
BiomeModifiers
public static record BiomeModifiers.Definition(net.minecraft.core.HolderSet<net.minecraft.world.level.biome.Biome> targets, int priority, BiomeModifiers.Worldgen worldgen, BiomeModifiers.Effects effects, BiomeModifiers.Climate climate, BiomeModifiers.Attributes attributes)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BiomeModifiers.Definition> -
Constructor Summary
ConstructorsConstructorDescriptionDefinition(net.minecraft.core.HolderSet<net.minecraft.world.level.biome.Biome> targets, int priority, BiomeModifiers.Worldgen worldgen, BiomeModifiers.Effects effects, BiomeModifiers.Climate climate, BiomeModifiers.Attributes attributes) Creates an instance of aDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.climate()Returns the value of theclimaterecord component.effects()Returns the value of theeffectsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intpriority()Returns the value of thepriorityrecord component.net.minecraft.core.HolderSet<net.minecraft.world.level.biome.Biome> targets()Returns the value of thetargetsrecord component.final StringtoString()Returns a string representation of this record class.worldgen()Returns the value of theworldgenrecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Definition
public Definition(net.minecraft.core.HolderSet<net.minecraft.world.level.biome.Biome> targets, int priority, BiomeModifiers.Worldgen worldgen, BiomeModifiers.Effects effects, BiomeModifiers.Climate climate, BiomeModifiers.Attributes attributes) Creates an instance of aDefinitionrecord class.- Parameters:
targets- the value for thetargetsrecord componentpriority- the value for thepriorityrecord componentworldgen- the value for theworldgenrecord componenteffects- the value for theeffectsrecord componentclimate- the value for theclimaterecord componentattributes- the value for theattributesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
targets
public net.minecraft.core.HolderSet<net.minecraft.world.level.biome.Biome> targets()Returns the value of thetargetsrecord component.- Returns:
- the value of the
targetsrecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
worldgen
Returns the value of theworldgenrecord component.- Returns:
- the value of the
worldgenrecord component
-
effects
Returns the value of theeffectsrecord component.- Returns:
- the value of the
effectsrecord component
-
climate
Returns the value of theclimaterecord component.- Returns:
- the value of the
climaterecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-