Package net.minecraft.world.level.biome
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
The field for thefoliageColorOverriderecord component. -
dryFoliageColorOverride
The field for thedryFoliageColorOverriderecord component. -
grassColorOverride
The field for thegrassColorOverriderecord component. -
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
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
waterColor
public int waterColor()Returns the value of thewaterColorrecord component.- Returns:
- the value of the
waterColorrecord component
-
foliageColorOverride
Returns the value of thefoliageColorOverriderecord component.- Returns:
- the value of the
foliageColorOverriderecord component
-
dryFoliageColorOverride
Returns the value of thedryFoliageColorOverriderecord component.- Returns:
- the value of the
dryFoliageColorOverriderecord component
-
grassColorOverride
Returns the value of thegrassColorOverriderecord component.- Returns:
- the value of the
grassColorOverriderecord component
-
grassColorModifier
Returns the value of thegrassColorModifierrecord component.- Returns:
- the value of the
grassColorModifierrecord component
-