Record Class Seasons.Season
java.lang.Object
java.lang.Record
com.github.aecsocket.demeter.paper.feature.Seasons.Season
- All Implemented Interfaces:
Renderable
- Enclosing class:
- Seasons
@ConfigSerializable
public static record Seasons.Season(String name, int weight, Vector3 color, @Nullable Seasons.ColorModifier foliageColor, @Nullable Seasons.ColorModifier grassColor, @Nullable Seasons.ColorModifier fogColor, @Nullable Seasons.ColorModifier skyColor, @Nullable Seasons.ColorModifier waterColor, @Nullable Seasons.ColorModifier waterFogColor, @Nullable Precipitation precipitation)
extends Record
implements Renderable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSeason(String name, int weight, Vector3 color, @Nullable Seasons.ColorModifier foliageColor, @Nullable Seasons.ColorModifier grassColor, @Nullable Seasons.ColorModifier fogColor, @Nullable Seasons.ColorModifier skyColor, @Nullable Seasons.ColorModifier waterColor, @Nullable Seasons.ColorModifier waterFogColor, @Nullable Precipitation precipitation) Creates an instance of aSeasonrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Seasons.ColorModifierfogColor()Returns the value of thefogColorrecord component.@Nullable Seasons.ColorModifierReturns the value of thefoliageColorrecord component.@Nullable Seasons.ColorModifierReturns the value of thegrassColorrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.@Nullable PrecipitationReturns the value of theprecipitationrecord component.@Nullable Seasons.ColorModifierskyColor()Returns the value of theskyColorrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Seasons.ColorModifierReturns the value of thewaterColorrecord component.@Nullable Seasons.ColorModifierReturns the value of thewaterFogColorrecord component.intweight()Returns the value of theweightrecord component.
-
Field Details
-
SEASON
- See Also:
-
-
Constructor Details
-
Season
public Season(String name, int weight, Vector3 color, @Nullable Seasons.ColorModifier foliageColor, @Nullable Seasons.ColorModifier grassColor, @Nullable Seasons.ColorModifier fogColor, @Nullable Seasons.ColorModifier skyColor, @Nullable Seasons.ColorModifier waterColor, @Nullable Seasons.ColorModifier waterFogColor, @Nullable Precipitation precipitation) Creates an instance of aSeasonrecord class.- Parameters:
name- the value for thenamerecord componentweight- the value for theweightrecord componentcolor- the value for thecolorrecord componentfoliageColor- the value for thefoliageColorrecord componentgrassColor- the value for thegrassColorrecord componentfogColor- the value for thefogColorrecord componentskyColor- the value for theskyColorrecord componentwaterColor- the value for thewaterColorrecord componentwaterFogColor- the value for thewaterFogColorrecord componentprecipitation- the value for theprecipitationrecord component
-
-
Method Details
-
render
- Specified by:
renderin interfaceRenderable
-
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
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
weight
Returns the value of theweightrecord component.- Returns:
- the value of the
weightrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
foliageColor
Returns the value of thefoliageColorrecord component.- Returns:
- the value of the
foliageColorrecord component
-
grassColor
Returns the value of thegrassColorrecord component.- Returns:
- the value of the
grassColorrecord component
-
fogColor
Returns the value of thefogColorrecord component.- Returns:
- the value of the
fogColorrecord component
-
skyColor
Returns the value of theskyColorrecord component.- Returns:
- the value of the
skyColorrecord component
-
waterColor
Returns the value of thewaterColorrecord component.- Returns:
- the value of the
waterColorrecord component
-
waterFogColor
Returns the value of thewaterFogColorrecord component.- Returns:
- the value of the
waterFogColorrecord component
-
precipitation
Returns the value of theprecipitationrecord component.- Returns:
- the value of the
precipitationrecord component
-