Record Class WorldFluidNms.KeyBiome
java.lang.Object
java.lang.Record
fr.robie.machineengine.api.platform.WorldFluidNms.KeyBiome
- Enclosing interface:
WorldFluidNms
public static record WorldFluidNms.KeyBiome(@NotNull net.kyori.adventure.key.Key id, int waterColor, int fogColor)
extends Record
A biome sent only to clients: a copy of the base biome with these colors (0xRRGGBB).
-
Constructor Summary
ConstructorsConstructorDescriptionKeyBiome(@NotNull net.kyori.adventure.key.Key id, int waterColor, int fogColor) Creates an instance of aKeyBiomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfogColor()Returns the value of thefogColorrecord component.final inthashCode()Returns a hash code value for this object.@NotNull net.kyori.adventure.key.Keyid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thewaterColorrecord component.
-
Constructor Details
-
KeyBiome
public KeyBiome(@NotNull @NotNull net.kyori.adventure.key.Key id, int waterColor, int fogColor) Creates an instance of aKeyBiomerecord class.- Parameters:
id- the value for theidrecord componentwaterColor- the value for thewaterColorrecord componentfogColor- the value for thefogColorrecord 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. -
id
@NotNull public @NotNull net.kyori.adventure.key.Key id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
waterColor
public int waterColor()Returns the value of thewaterColorrecord component.- Returns:
- the value of the
waterColorrecord component
-
fogColor
public int fogColor()Returns the value of thefogColorrecord component.- Returns:
- the value of the
fogColorrecord component
-