Class TropicalSeasonEnvironmentProvider
java.lang.Object
com.github.thedeathlycow.thermoo.api.environment.provider.SeasonalEnvironmentProvider
com.github.thedeathlycow.thermoo.api.environment.provider.TropicalSeasonEnvironmentProvider
- All Implemented Interfaces:
EnvironmentProvider
A seasonal environment provider for the tropical seasons (wet and dry).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for tropical season providers. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TropicalSeasonEnvironmentProvider> 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
TropicalSeasonEnvironmentProvider.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.
-