Class TropicalSeasonSelector
java.lang.Object
com.github.thedeathlycow.thermoo.api.environment.v2.provider.SeasonalEnvironmentProvider<TropicalSeason>
com.github.thedeathlycow.thermoo.api.environment.v2.provider.TropicalSeasonSelector
- All Implemented Interfaces:
EnvironmentProvider
A seasonal environment provider for the tropical seasons (wet, dry, and mild).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for tropical season providers. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TropicalSeasonSelector> Fields inherited from interface EnvironmentProvider
ELEMENT_CODEC, HOLDER_CODEC -
Method Summary
Modifier and TypeMethodDescriptionbuilder()com.mojang.serialization.MapCodec<TropicalSeasonSelector> codec()protected Optional<TropicalSeason> getCurrentSeason(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) Gets the current season state of the world at a position (usually by delegating to a season event.Methods inherited from class SeasonalEnvironmentProvider
buildCurrentComponents, createSeasonMapCodec, fallbackSeason, seasons, validate
-
Field Details
-
CODEC
-
-
Method Details
-
builder
- Returns:
- Returns a new
TropicalSeasonSelector.Builder
-
codec
- Returns:
- Returns the codec of the provider.
-
getCurrentSeason
protected Optional<TropicalSeason> getCurrentSeason(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) Description copied from class:SeasonalEnvironmentProviderGets the current season state of the world at a position (usually by delegating to a season event.- Specified by:
getCurrentSeasonin classSeasonalEnvironmentProvider<TropicalSeason>- Parameters:
level- The world to query the season state ofpos- The position to query the season state at- Returns:
- Returns the season state of a particular world position, or empty if no season state exists there or if a season mod is not loaded.
-