Class TemperateSeasonEnvironmentProvider
java.lang.Object
com.github.thedeathlycow.thermoo.api.environment.provider.SeasonalEnvironmentProvider
com.github.thedeathlycow.thermoo.api.environment.provider.TemperateSeasonEnvironmentProvider
- All Implemented Interfaces:
EnvironmentProvider
A seasonal environment provider for the temperate seasons (spring, summer, autumn, and winter).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for temperate season providers. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TemperateSeasonEnvironmentProvider> Fields inherited from interface com.github.thedeathlycow.thermoo.api.environment.provider.EnvironmentProvider
ELEMENT_CODEC, ENTRY_CODEC, HOLDER_CODEC -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected Optional<ThermooSeason> getCurrentSeason(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) Gets the current season state of the world at a position (usually by delegating to a season event.getType()Methods inherited from class com.github.thedeathlycow.thermoo.api.environment.provider.SeasonalEnvironmentProvider
buildCurrentComponents, createSeasonMapCodec, fallbackSeason, seasons, validate
-
Field Details
-
CODEC
-
-
Method Details
-
builder
- Returns:
- Returns a new
TemperateSeasonEnvironmentProvider.Builder
-
getType
- Returns:
- Returns the type of this provider for dispatch
-
getCurrentSeason
protected Optional<ThermooSeason> getCurrentSeason(net.minecraft.world.level.Level world, 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- Parameters:
world- 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.
-