Record Class BiomeSpecialEffects
java.lang.Object
java.lang.Record
net.minecraft.world.level.biome.BiomeSpecialEffects
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BiomeSpecialEffects> The field for thedryFoliageColorOverriderecord component.The field for thefoliageColorOverriderecord component.private final BiomeSpecialEffects.GrassColorModifierThe field for thegrassColorModifierrecord component.The field for thegrassColorOverriderecord component.private final intThe field for thewaterColorrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBiomeSpecialEffects(int waterColor, Optional<Integer> foliageColorOverride, Optional<Integer> dryFoliageColorOverride, Optional<Integer> grassColorOverride, BiomeSpecialEffects.GrassColorModifier grassColorModifier) Creates an instance of aBiomeSpecialEffectsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedryFoliageColorOverriderecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefoliageColorOverriderecord component.Returns the value of thegrassColorModifierrecord component.Returns the value of thegrassColorOverriderecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of thewaterColorrecord component.
-
Field Details
-
waterColor
private final int waterColorThe field for thewaterColorrecord component. -
foliageColorOverride
-
dryFoliageColorOverride
-
grassColorOverride
-
grassColorModifier
The field for thegrassColorModifierrecord component. -
CODEC
-
-
Constructor Details
-
BiomeSpecialEffects
public BiomeSpecialEffects(int waterColor, Optional<Integer> foliageColorOverride, Optional<Integer> dryFoliageColorOverride, Optional<Integer> grassColorOverride, BiomeSpecialEffects.GrassColorModifier grassColorModifier) Creates an instance of aBiomeSpecialEffectsrecord class.- Parameters:
waterColor- the value for thewaterColorrecord componentfoliageColorOverride- the value for thefoliageColorOverriderecord componentdryFoliageColorOverride- the value for thedryFoliageColorOverriderecord componentgrassColorOverride- the value for thegrassColorOverriderecord componentgrassColorModifier- the value for thegrassColorModifierrecord 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. -
waterColor
public int waterColor()Returns the value of thewaterColorrecord component.- Returns:
- the value of the
waterColorrecord component
-
foliageColorOverride
-
dryFoliageColorOverride
-
grassColorOverride
-
grassColorModifier
Returns the value of thegrassColorModifierrecord component.- Returns:
- the value of the
grassColorModifierrecord component
-