Package net.minecraft.world.biome
Record Class BiomeEffects
java.lang.Object
java.lang.Record
net.minecraft.world.biome.BiomeEffects
- Record Components:
waterColor-foliageColor-dryFoliageColor-grassColor-grassColorModifier-
public record BiomeEffects(int waterColor, Optional<Integer> foliageColor, Optional<Integer> dryFoliageColor, Optional<Integer> grassColor, BiomeEffects.GrassColorModifier grassColorModifier)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/biome/BiomeEffectsintermediary net/minecraft/class_4763official dwhnamed waterColorintermediary comp_5169official bnamed foliageColorintermediary comp_5170official cnamed dryFoliageColorintermediary comp_5171official dnamed grassColorintermediary comp_5172official enamed grassColorModifierintermediary comp_5173official f
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BiomeEffects> The field for thedryFoliageColorrecord component.The field for thefoliageColorrecord component.The field for thegrassColorrecord component.private final BiomeEffects.GrassColorModifierThe field for thegrassColorModifierrecord component.private final intThe field for thewaterColorrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBiomeEffects(int waterColor, Optional<Integer> foliageColor, Optional<Integer> dryFoliageColor, Optional<Integer> grassColor, BiomeEffects.GrassColorModifier grassColorModifier) Creates an instance of aBiomeEffectsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedryFoliageColorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefoliageColorrecord component.Returns the value of thegrassColorrecord component.Returns the value of thegrassColorModifierrecord 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. -
foliageColor
The field for thefoliageColorrecord component. -
dryFoliageColor
The field for thedryFoliageColorrecord component. -
grassColor
The field for thegrassColorrecord component. -
grassColorModifier
The field for thegrassColorModifierrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/biome/BiomeEffects;CODEC:Lcom/mojang/serialization/Codec;intermediary field_24714Lnet/minecraft/class_4763;field_24714:Lcom/mojang/serialization/Codec;official aLdwh;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
BiomeEffects
public BiomeEffects(int waterColor, Optional<Integer> foliageColor, Optional<Integer> dryFoliageColor, Optional<Integer> grassColor, BiomeEffects.GrassColorModifier grassColorModifier) Creates an instance of aBiomeEffectsrecord class.- Parameters:
waterColor- the value for thewaterColorrecord componentfoliageColor- the value for thefoliageColorrecord componentdryFoliageColor- the value for thedryFoliageColorrecord componentgrassColor- the value for thegrassColorrecord 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
-
foliageColor
Returns the value of thefoliageColorrecord component.- Returns:
- the value of the
foliageColorrecord component
-
dryFoliageColor
Returns the value of thedryFoliageColorrecord component.- Returns:
- the value of the
dryFoliageColorrecord component
-
grassColor
Returns the value of thegrassColorrecord component.- Returns:
- the value of the
grassColorrecord component
-
grassColorModifier
Returns the value of thegrassColorModifierrecord component.- Returns:
- the value of the
grassColorModifierrecord component
-