Class EnvironmentAttributes.Builder
java.lang.Object
fr.fidorial.world.environment.EnvironmentAttributes.Builder
- Enclosing class:
EnvironmentAttributes
Mutable builder for
EnvironmentAttributes.- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionaddAmbientParticle(AmbientParticle particle) Adds one ambient particle tominecraft:visual/ambient_particles.ambientLightColor(@Nullable Integer value) Setsminecraft:visual/ambient_light_coloras a plain override.ambientLightColor(Integer value, Modifier modifier) Setsminecraft:visual/ambient_light_color, deriving from the dimension's value.ambientParticles(List<AmbientParticle> particles) Replaces the whole ambient particle list.ambientSounds(@Nullable AmbientSounds value) Setsminecraft:audio/ambient_sounds.Setsminecraft:audio/background_music.Setsminecraft:gameplay/bed_ruleas a plain override.Setsminecraft:gameplay/bed_rule, deriving from the dimension's value.build()Returns the immutable attributes described by this builder.Setsminecraft:gameplay/can_pillager_patrol_spawnas a plain override.canPillagerPatrolSpawn(Boolean value, Modifier modifier) Setsminecraft:gameplay/can_pillager_patrol_spawn, deriving from the dimension's value.canStartRaid(@Nullable Boolean value) Setsminecraft:gameplay/can_start_raidas a plain override.canStartRaid(Boolean value, Modifier modifier) Setsminecraft:gameplay/can_start_raid, deriving from the dimension's value.cloudColor(@Nullable Integer value) Setsminecraft:visual/cloud_coloras a plain override.cloudColor(Integer value, Modifier modifier) Setsminecraft:visual/cloud_color, deriving from the dimension's value.cloudHeight(@Nullable Float value) Setsminecraft:visual/cloud_heightas a plain override.cloudHeight(Float value, Modifier modifier) Setsminecraft:visual/cloud_height, deriving from the dimension's value.defaultDripstoneParticle(@Nullable Key value) Setsminecraft:visual/default_dripstone_particleas a plain override.defaultDripstoneParticle(Key value, Modifier modifier) Setsminecraft:visual/default_dripstone_particle, deriving from the dimension's value.Setsminecraft:gameplay/fast_lavaas a plain override.Setsminecraft:gameplay/fast_lava, deriving from the dimension's value.Setsminecraft:visual/fog_coloras a plain override.Setsminecraft:visual/fog_color, deriving from the dimension's value.fogEndDistance(@Nullable Float value) Setsminecraft:visual/fog_end_distanceas a plain override.fogEndDistance(Float value, Modifier modifier) Setsminecraft:visual/fog_end_distance, deriving from the dimension's value.fogStartDistance(@Nullable Float value) Setsminecraft:visual/fog_start_distanceas a plain override.fogStartDistance(Float value, Modifier modifier) Setsminecraft:visual/fog_start_distance, deriving from the dimension's value.increasedFireBurnout(@Nullable Boolean value) Setsminecraft:gameplay/increased_fire_burnoutas a plain override.increasedFireBurnout(Boolean value, Modifier modifier) Setsminecraft:gameplay/increased_fire_burnout, deriving from the dimension's value.musicVolume(@Nullable Float value) Setsminecraft:audio/music_volumeas a plain override.musicVolume(Float value, Modifier modifier) Setsminecraft:audio/music_volume, deriving from the dimension's value.Setsminecraft:gameplay/nether_portal_spawns_piglinas a plain override.netherPortalSpawnsPiglin(Boolean value, Modifier modifier) Setsminecraft:gameplay/nether_portal_spawns_piglin, deriving from the dimension's value.piglinsZombify(@Nullable Boolean value) Setsminecraft:gameplay/piglins_zombifyas a plain override.piglinsZombify(Boolean value, Modifier modifier) Setsminecraft:gameplay/piglins_zombify, deriving from the dimension's value.respawnAnchorWorks(@Nullable Boolean value) Setsminecraft:gameplay/respawn_anchor_worksas a plain override.respawnAnchorWorks(Boolean value, Modifier modifier) Setsminecraft:gameplay/respawn_anchor_works, deriving from the dimension's value.Setsminecraft:visual/sky_coloras a plain override.Setsminecraft:visual/sky_color, deriving from the dimension's value.skyLightColor(@Nullable Integer value) Setsminecraft:visual/sky_light_coloras a plain override.skyLightColor(Integer value, Modifier modifier) Setsminecraft:visual/sky_light_color, deriving from the dimension's value.skyLightFactor(@Nullable Float value) Setsminecraft:visual/sky_light_factoras a plain override.skyLightFactor(Float value, Modifier modifier) Setsminecraft:visual/sky_light_factor, deriving from the dimension's value.skyLightLevel(@Nullable Float value) Setsminecraft:gameplay/sky_light_levelas a plain override.skyLightLevel(Float value, Modifier modifier) Setsminecraft:gameplay/sky_light_level, deriving from the dimension's value.snowGolemMelts(@Nullable Boolean value) Setsminecraft:gameplay/snow_golem_meltsas a plain override.snowGolemMelts(Boolean value, Modifier modifier) Setsminecraft:gameplay/snow_golem_melts, deriving from the dimension's value.waterEvaporates(@Nullable Boolean value) Setsminecraft:gameplay/water_evaporatesas a plain override.waterEvaporates(Boolean value, Modifier modifier) Setsminecraft:gameplay/water_evaporates, deriving from the dimension's value.waterFogColor(@Nullable Integer value) Setsminecraft:visual/water_fog_coloras a plain override.waterFogColor(Integer value, Modifier modifier) Setsminecraft:visual/water_fog_color, deriving from the dimension's value.waterFogEndDistance(@Nullable Float value) Setsminecraft:visual/water_fog_end_distanceas a plain override.waterFogEndDistance(Float value, Modifier modifier) Setsminecraft:visual/water_fog_end_distance, deriving from the dimension's value.
-
Method Details
-
fogColor
Setsminecraft:visual/fog_coloras a plain override.- Parameters:
value- distance fog color, packed RGB, ornullto leave unset- Returns:
- this builder
-
fogColor
@Contract("_, _ -> this") public EnvironmentAttributes.Builder fogColor(Integer value, Modifier modifier) Setsminecraft:visual/fog_color, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
fogStartDistance
Setsminecraft:visual/fog_start_distanceas a plain override.- Parameters:
value- distance in blocks at which fog begins, ornullto leave unset- Returns:
- this builder
-
fogStartDistance
@Contract("_, _ -> this") public EnvironmentAttributes.Builder fogStartDistance(Float value, Modifier modifier) Setsminecraft:visual/fog_start_distance, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
fogEndDistance
Setsminecraft:visual/fog_end_distanceas a plain override.- Parameters:
value- distance in blocks at which fog reaches full density, ornullto leave unset- Returns:
- this builder
-
fogEndDistance
@Contract("_, _ -> this") public EnvironmentAttributes.Builder fogEndDistance(Float value, Modifier modifier) Setsminecraft:visual/fog_end_distance, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
skyColor
Setsminecraft:visual/sky_coloras a plain override.- Parameters:
value- sky color, packed RGB, ornullto leave unset- Returns:
- this builder
-
skyColor
@Contract("_, _ -> this") public EnvironmentAttributes.Builder skyColor(Integer value, Modifier modifier) Setsminecraft:visual/sky_color, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
cloudColor
Setsminecraft:visual/cloud_coloras a plain override.- Parameters:
value- cloud color, packed ARGB, ornullto leave unset- Returns:
- this builder
-
cloudColor
@Contract("_, _ -> this") public EnvironmentAttributes.Builder cloudColor(Integer value, Modifier modifier) Setsminecraft:visual/cloud_color, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
cloudHeight
Setsminecraft:visual/cloud_heightas a plain override.- Parameters:
value- height, in blocks, at which clouds render, ornullto leave unset- Returns:
- this builder
-
cloudHeight
@Contract("_, _ -> this") public EnvironmentAttributes.Builder cloudHeight(Float value, Modifier modifier) Setsminecraft:visual/cloud_height, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
skyLightColor
Setsminecraft:visual/sky_light_coloras a plain override.- Parameters:
value- sky light color, packed RGB, ornullto leave unset- Returns:
- this builder
-
skyLightColor
@Contract("_, _ -> this") public EnvironmentAttributes.Builder skyLightColor(Integer value, Modifier modifier) Setsminecraft:visual/sky_light_color, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
skyLightFactor
Setsminecraft:visual/sky_light_factoras a plain override.- Parameters:
value- multiplier applied to sky light, within[0, 1], ornullto leave unset- Returns:
- this builder
-
skyLightFactor
@Contract("_, _ -> this") public EnvironmentAttributes.Builder skyLightFactor(Float value, Modifier modifier) Setsminecraft:visual/sky_light_factor, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
ambientLightColor
@Contract("_ -> this") public EnvironmentAttributes.Builder ambientLightColor(@Nullable Integer value) Setsminecraft:visual/ambient_light_coloras a plain override.- Parameters:
value- ambient light color, packed RGB, ornullto leave unset- Returns:
- this builder
-
ambientLightColor
@Contract("_, _ -> this") public EnvironmentAttributes.Builder ambientLightColor(Integer value, Modifier modifier) Setsminecraft:visual/ambient_light_color, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
defaultDripstoneParticle
@Contract("_ -> this") public EnvironmentAttributes.Builder defaultDripstoneParticle(@Nullable Key value) Setsminecraft:visual/default_dripstone_particleas a plain override.- Parameters:
value- particle used by dripping dripstone, ornullto leave unset- Returns:
- this builder
-
defaultDripstoneParticle
@Contract("_, _ -> this") public EnvironmentAttributes.Builder defaultDripstoneParticle(Key value, Modifier modifier) Setsminecraft:visual/default_dripstone_particle, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
waterFogColor
Setsminecraft:visual/water_fog_coloras a plain override.- Parameters:
value- underwater fog color, packed RGB, ornullto leave unset- Returns:
- this builder
-
waterFogColor
@Contract("_, _ -> this") public EnvironmentAttributes.Builder waterFogColor(Integer value, Modifier modifier) Setsminecraft:visual/water_fog_color, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
waterFogEndDistance
@Contract("_ -> this") public EnvironmentAttributes.Builder waterFogEndDistance(@Nullable Float value) Setsminecraft:visual/water_fog_end_distanceas a plain override.- Parameters:
value- distance in blocks at which underwater fog reaches full density, ornullto leave unset- Returns:
- this builder
-
waterFogEndDistance
@Contract("_, _ -> this") public EnvironmentAttributes.Builder waterFogEndDistance(Float value, Modifier modifier) Setsminecraft:visual/water_fog_end_distance, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
musicVolume
Setsminecraft:audio/music_volumeas a plain override.- Parameters:
value- volume music fades to, within[0, 1], ornullto leave unset- Returns:
- this builder
-
musicVolume
@Contract("_, _ -> this") public EnvironmentAttributes.Builder musicVolume(Float value, Modifier modifier) Setsminecraft:audio/music_volume, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
canStartRaid
Setsminecraft:gameplay/can_start_raidas a plain override.- Parameters:
value- whether a raid can begin here, ornullto leave unset- Returns:
- this builder
-
canStartRaid
@Contract("_, _ -> this") public EnvironmentAttributes.Builder canStartRaid(Boolean value, Modifier modifier) Setsminecraft:gameplay/can_start_raid, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
canPillagerPatrolSpawn
@Contract("_ -> this") public EnvironmentAttributes.Builder canPillagerPatrolSpawn(@Nullable Boolean value) Setsminecraft:gameplay/can_pillager_patrol_spawnas a plain override.- Parameters:
value- whether pillager patrols spawn here, ornullto leave unset- Returns:
- this builder
-
canPillagerPatrolSpawn
@Contract("_, _ -> this") public EnvironmentAttributes.Builder canPillagerPatrolSpawn(Boolean value, Modifier modifier) Setsminecraft:gameplay/can_pillager_patrol_spawn, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
waterEvaporates
@Contract("_ -> this") public EnvironmentAttributes.Builder waterEvaporates(@Nullable Boolean value) Setsminecraft:gameplay/water_evaporatesas a plain override.- Parameters:
value- whether placed water evaporates, ornullto leave unset- Returns:
- this builder
-
waterEvaporates
@Contract("_, _ -> this") public EnvironmentAttributes.Builder waterEvaporates(Boolean value, Modifier modifier) Setsminecraft:gameplay/water_evaporates, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
bedRule
Setsminecraft:gameplay/bed_ruleas a plain override.- Parameters:
value- when beds are usable to sleep/set spawn, ornullto leave unset- Returns:
- this builder
-
bedRule
@Contract("_, _ -> this") public EnvironmentAttributes.Builder bedRule(BedRule value, Modifier modifier) Setsminecraft:gameplay/bed_rule, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
respawnAnchorWorks
@Contract("_ -> this") public EnvironmentAttributes.Builder respawnAnchorWorks(@Nullable Boolean value) Setsminecraft:gameplay/respawn_anchor_worksas a plain override.- Parameters:
value- whether respawn anchors set spawn instead of exploding, ornullto leave unset- Returns:
- this builder
-
respawnAnchorWorks
@Contract("_, _ -> this") public EnvironmentAttributes.Builder respawnAnchorWorks(Boolean value, Modifier modifier) Setsminecraft:gameplay/respawn_anchor_works, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
netherPortalSpawnsPiglin
@Contract("_ -> this") public EnvironmentAttributes.Builder netherPortalSpawnsPiglin(@Nullable Boolean value) Setsminecraft:gameplay/nether_portal_spawns_piglinas a plain override.- Parameters:
value- whether entering a nether portal can spawn a piglin, ornullto leave unset- Returns:
- this builder
-
netherPortalSpawnsPiglin
@Contract("_, _ -> this") public EnvironmentAttributes.Builder netherPortalSpawnsPiglin(Boolean value, Modifier modifier) Setsminecraft:gameplay/nether_portal_spawns_piglin, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
fastLava
Setsminecraft:gameplay/fast_lavaas a plain override.- Parameters:
value- whether lava flows and spreads at Nether speed, ornullto leave unset- Returns:
- this builder
-
fastLava
@Contract("_, _ -> this") public EnvironmentAttributes.Builder fastLava(Boolean value, Modifier modifier) Setsminecraft:gameplay/fast_lava, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
increasedFireBurnout
@Contract("_ -> this") public EnvironmentAttributes.Builder increasedFireBurnout(@Nullable Boolean value) Setsminecraft:gameplay/increased_fire_burnoutas a plain override.- Parameters:
value- whether fire burns out faster, ornullto leave unset- Returns:
- this builder
-
increasedFireBurnout
@Contract("_, _ -> this") public EnvironmentAttributes.Builder increasedFireBurnout(Boolean value, Modifier modifier) Setsminecraft:gameplay/increased_fire_burnout, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
piglinsZombify
Setsminecraft:gameplay/piglins_zombifyas a plain override.- Parameters:
value- whether piglins and hoglins zombify, ornullto leave unset- Returns:
- this builder
-
piglinsZombify
@Contract("_, _ -> this") public EnvironmentAttributes.Builder piglinsZombify(Boolean value, Modifier modifier) Setsminecraft:gameplay/piglins_zombify, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
snowGolemMelts
Setsminecraft:gameplay/snow_golem_meltsas a plain override.- Parameters:
value- whether snow golems take damage, ornullto leave unset- Returns:
- this builder
-
snowGolemMelts
@Contract("_, _ -> this") public EnvironmentAttributes.Builder snowGolemMelts(Boolean value, Modifier modifier) Setsminecraft:gameplay/snow_golem_melts, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
skyLightLevel
Setsminecraft:gameplay/sky_light_levelas a plain override.- Parameters:
value- sky light level, within[0, 15], ornullto leave unset- Returns:
- this builder
-
skyLightLevel
@Contract("_, _ -> this") public EnvironmentAttributes.Builder skyLightLevel(Float value, Modifier modifier) Setsminecraft:gameplay/sky_light_level, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
addAmbientParticle
@Contract("_ -> this") public EnvironmentAttributes.Builder addAmbientParticle(AmbientParticle particle) Adds one ambient particle tominecraft:visual/ambient_particles.- Parameters:
particle- the particle- Returns:
- this builder
-
ambientParticles
@Contract("_ -> this") public EnvironmentAttributes.Builder ambientParticles(List<AmbientParticle> particles) Replaces the whole ambient particle list.- Parameters:
particles- the particles- Returns:
- this builder
-
ambientSounds
@Contract("_ -> this") public EnvironmentAttributes.Builder ambientSounds(@Nullable AmbientSounds value) Setsminecraft:audio/ambient_sounds.- Parameters:
value- looping, mood and additions sounds, ornullto leave unset- Returns:
- this builder
-
backgroundMusic
@Contract("_ -> this") public EnvironmentAttributes.Builder backgroundMusic(@Nullable BackgroundMusic value) Setsminecraft:audio/background_music.- Parameters:
value- music tracks, ornullto leave unset- Returns:
- this builder
-
build
Returns the immutable attributes described by this builder.- Returns:
- the immutable attributes described by this builder
-