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.babyVillagerActivity(@Nullable Key value) Setsminecraft:gameplay/baby_villager_activityas a plain override.babyVillagerActivity(Key value, Modifier modifier) Setsminecraft:gameplay/baby_villager_activity, deriving from the dimension's value.Setsminecraft:audio/background_music.Setsminecraft:gameplay/bed_ruleas a plain override.Setsminecraft:gameplay/bed_rule, deriving from the dimension's value.beesStayInHive(@Nullable Boolean value) Setsminecraft:gameplay/bees_stay_in_hiveas a plain override.beesStayInHive(Boolean value, Modifier modifier) Setsminecraft:gameplay/bees_stay_in_hive, deriving from the dimension's value.blockLightTint(@Nullable Integer value) Setsminecraft:visual/block_light_tintas a plain override.blockLightTint(Integer value, Modifier modifier) Setsminecraft:visual/block_light_tint, 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.catWakingUpGiftChance(@Nullable Float value) Setsminecraft:gameplay/cat_waking_up_gift_chanceas a plain override.catWakingUpGiftChance(Float value, Modifier modifier) Setsminecraft:gameplay/cat_waking_up_gift_chance, 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.cloudFogEndDistance(@Nullable Float value) Setsminecraft:visual/cloud_fog_end_distanceas a plain override.cloudFogEndDistance(Float value, Modifier modifier) Setsminecraft:visual/cloud_fog_end_distance, 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.creakingActive(@Nullable Boolean value) Setsminecraft:gameplay/creaking_activeas a plain override.creakingActive(Boolean value, Modifier modifier) Setsminecraft:gameplay/creaking_active, deriving from the dimension's value.Setsminecraft:gameplay/creature_world_gen_spawn_probabilityas a plain override.creatureWorldGenSpawnProbability(Float value, Modifier modifier) Setsminecraft:gameplay/creature_world_gen_spawn_probability, 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.eyeblossomOpen(@Nullable TriState value) Setsminecraft:gameplay/eyeblossom_openas a plain override.eyeblossomOpen(TriState value, Modifier modifier) Setsminecraft:gameplay/eyeblossom_open, deriving from the dimension's value.Setsminecraft:gameplay/fast_lavaas a plain override.Setsminecraft:gameplay/fast_lava, deriving from the dimension's value.fireflyBushSounds(@Nullable Boolean value) Setsminecraft:audio/firefly_bush_soundsas a plain override.fireflyBushSounds(Boolean value, Modifier modifier) Setsminecraft:audio/firefly_bush_sounds, 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.monstersBurn(@Nullable Boolean value) Setsminecraft:gameplay/monsters_burnas a plain override.monstersBurn(Boolean value, Modifier modifier) Setsminecraft:gameplay/monsters_burn, deriving from the dimension's value.Setsminecraft:visual/moon_angleas a plain override.Setsminecraft:visual/moon_angle, deriving from the dimension's value.Setsminecraft:visual/moon_phaseas a plain override.Setsminecraft:visual/moon_phase, 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.nightVisionColor(@Nullable Integer value) Setsminecraft:visual/night_vision_coloras a plain override.nightVisionColor(Integer value, Modifier modifier) Setsminecraft:visual/night_vision_color, 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.skyFogEndDistance(@Nullable Float value) Setsminecraft:visual/sky_fog_end_distanceas a plain override.skyFogEndDistance(Float value, Modifier modifier) Setsminecraft:visual/sky_fog_end_distance, 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.Setsminecraft:visual/star_angleas a plain override.Setsminecraft:visual/star_angle, deriving from the dimension's value.starBrightness(@Nullable Float value) Setsminecraft:visual/star_brightnessas a plain override.starBrightness(Float value, Modifier modifier) Setsminecraft:visual/star_brightness, deriving from the dimension's value.strawBedRule(@Nullable BedRule value) Setsminecraft:gameplay/straw_bed_ruleas a plain override.strawBedRule(BedRule value, Modifier modifier) Setsminecraft:gameplay/straw_bed_rule, deriving from the dimension's value.Setsminecraft:visual/sun_angleas a plain override.Setsminecraft:visual/sun_angle, deriving from the dimension's value.sunriseSunsetColor(@Nullable Integer value) Setsminecraft:visual/sunrise_sunset_coloras a plain override.sunriseSunsetColor(Integer value, Modifier modifier) Setsminecraft:visual/sunrise_sunset_color, deriving from the dimension's value.Setsminecraft:gameplay/surface_slime_spawn_chanceas a plain override.surfaceSlimeSpawnChance(Float value, Modifier modifier) Setsminecraft:gameplay/surface_slime_spawn_chance, deriving from the dimension's value.turtleEggHatchChance(@Nullable Float value) Setsminecraft:gameplay/turtle_egg_hatch_chanceas a plain override.turtleEggHatchChance(Float value, Modifier modifier) Setsminecraft:gameplay/turtle_egg_hatch_chance, deriving from the dimension's value.villagerActivity(@Nullable Key value) Setsminecraft:gameplay/villager_activityas a plain override.villagerActivity(Key value, Modifier modifier) Setsminecraft:gameplay/villager_activity, 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.waterFogStartDistance(@Nullable Float value) Setsminecraft:visual/water_fog_start_distanceas a plain override.waterFogStartDistance(Float value, Modifier modifier) Setsminecraft:visual/water_fog_start_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
-
skyFogEndDistance
@Contract("_ -> this") public EnvironmentAttributes.Builder skyFogEndDistance(@Nullable Float value) Setsminecraft:visual/sky_fog_end_distanceas a plain override.- Parameters:
value- distance in blocks at which sky-visible fog reaches full density, ornullto leave unset- Returns:
- this builder
-
skyFogEndDistance
@Contract("_, _ -> this") public EnvironmentAttributes.Builder skyFogEndDistance(Float value, Modifier modifier) Setsminecraft:visual/sky_fog_end_distance, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
cloudFogEndDistance
@Contract("_ -> this") public EnvironmentAttributes.Builder cloudFogEndDistance(@Nullable Float value) Setsminecraft:visual/cloud_fog_end_distanceas a plain override.- Parameters:
value- distance in blocks at which cloud-visible fog reaches full density, ornullto leave unset- Returns:
- this builder
-
cloudFogEndDistance
@Contract("_, _ -> this") public EnvironmentAttributes.Builder cloudFogEndDistance(Float value, Modifier modifier) Setsminecraft:visual/cloud_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
-
sunriseSunsetColor
@Contract("_ -> this") public EnvironmentAttributes.Builder sunriseSunsetColor(@Nullable Integer value) Setsminecraft:visual/sunrise_sunset_coloras a plain override.- Parameters:
value- sunrise/sunset gradient color, packed ARGB, ornullto leave unset- Returns:
- this builder
-
sunriseSunsetColor
@Contract("_, _ -> this") public EnvironmentAttributes.Builder sunriseSunsetColor(Integer value, Modifier modifier) Setsminecraft:visual/sunrise_sunset_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
-
sunAngle
Setsminecraft:visual/sun_angleas a plain override.- Parameters:
value- sun angle offset, in degrees, ornullto leave unset- Returns:
- this builder
-
sunAngle
@Contract("_, _ -> this") public EnvironmentAttributes.Builder sunAngle(Float value, Modifier modifier) Setsminecraft:visual/sun_angle, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
moonAngle
Setsminecraft:visual/moon_angleas a plain override.- Parameters:
value- moon angle offset, in degrees, ornullto leave unset- Returns:
- this builder
-
moonAngle
@Contract("_, _ -> this") public EnvironmentAttributes.Builder moonAngle(Float value, Modifier modifier) Setsminecraft:visual/moon_angle, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
starAngle
Setsminecraft:visual/star_angleas a plain override.- Parameters:
value- star angle offset, in degrees, ornullto leave unset- Returns:
- this builder
-
starAngle
@Contract("_, _ -> this") public EnvironmentAttributes.Builder starAngle(Float value, Modifier modifier) Setsminecraft:visual/star_angle, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
moonPhase
Setsminecraft:visual/moon_phaseas a plain override.- Parameters:
value- moon phase index, within[0, 7], ornullto leave unset- Returns:
- this builder
-
moonPhase
@Contract("_, _ -> this") public EnvironmentAttributes.Builder moonPhase(Integer value, Modifier modifier) Setsminecraft:visual/moon_phase, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
starBrightness
Setsminecraft:visual/star_brightnessas a plain override.- Parameters:
value- star brightness, within[0, 1], ornullto leave unset- Returns:
- this builder
-
starBrightness
@Contract("_, _ -> this") public EnvironmentAttributes.Builder starBrightness(Float value, Modifier modifier) Setsminecraft:visual/star_brightness, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
blockLightTint
Setsminecraft:visual/block_light_tintas a plain override.- Parameters:
value- tint applied to block light, packed RGB, ornullto leave unset- Returns:
- this builder
-
blockLightTint
@Contract("_, _ -> this") public EnvironmentAttributes.Builder blockLightTint(Integer value, Modifier modifier) Setsminecraft:visual/block_light_tint, 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
-
nightVisionColor
@Contract("_ -> this") public EnvironmentAttributes.Builder nightVisionColor(@Nullable Integer value) Setsminecraft:visual/night_vision_coloras a plain override.- Parameters:
value- tint applied by Night Vision, packed RGB, ornullto leave unset- Returns:
- this builder
-
nightVisionColor
@Contract("_, _ -> this") public EnvironmentAttributes.Builder nightVisionColor(Integer value, Modifier modifier) Setsminecraft:visual/night_vision_color, 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
-
waterFogStartDistance
@Contract("_ -> this") public EnvironmentAttributes.Builder waterFogStartDistance(@Nullable Float value) Setsminecraft:visual/water_fog_start_distanceas a plain override.- Parameters:
value- distance in blocks at which underwater fog begins, ornullto leave unset- Returns:
- this builder
-
waterFogStartDistance
@Contract("_, _ -> this") public EnvironmentAttributes.Builder waterFogStartDistance(Float value, Modifier modifier) Setsminecraft:visual/water_fog_start_distance, 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
-
fireflyBushSounds
@Contract("_ -> this") public EnvironmentAttributes.Builder fireflyBushSounds(@Nullable Boolean value) Setsminecraft:audio/firefly_bush_soundsas a plain override.- Parameters:
value- whether firefly bushes emit ambient sound, ornullto leave unset- Returns:
- this builder
-
fireflyBushSounds
@Contract("_, _ -> this") public EnvironmentAttributes.Builder fireflyBushSounds(Boolean value, Modifier modifier) Setsminecraft:audio/firefly_bush_sounds, 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
-
strawBedRule
Setsminecraft:gameplay/straw_bed_ruleas a plain override.- Parameters:
value- when straw beds are usable to sleep/set spawn, ornullto leave unset- Returns:
- this builder
-
strawBedRule
@Contract("_, _ -> this") public EnvironmentAttributes.Builder strawBedRule(BedRule value, Modifier modifier) Setsminecraft:gameplay/straw_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
-
eyeblossomOpen
@Contract("_ -> this") public EnvironmentAttributes.Builder eyeblossomOpen(@Nullable TriState value) Setsminecraft:gameplay/eyeblossom_openas a plain override.- Parameters:
value- whether eyeblossoms are forced open/closed, orTriState.NOT_SETto leave their default day cycle, ornullto leave unset- Returns:
- this builder
-
eyeblossomOpen
@Contract("_, _ -> this") public EnvironmentAttributes.Builder eyeblossomOpen(TriState value, Modifier modifier) Setsminecraft:gameplay/eyeblossom_open, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
turtleEggHatchChance
@Contract("_ -> this") public EnvironmentAttributes.Builder turtleEggHatchChance(@Nullable Float value) Setsminecraft:gameplay/turtle_egg_hatch_chanceas a plain override.- Parameters:
value- chance a turtle egg hatches per random tick, within[0, 1], ornullto leave unset- Returns:
- this builder
-
turtleEggHatchChance
@Contract("_, _ -> this") public EnvironmentAttributes.Builder turtleEggHatchChance(Float value, Modifier modifier) Setsminecraft:gameplay/turtle_egg_hatch_chance, 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
-
creakingActive
Setsminecraft:gameplay/creaking_activeas a plain override.- Parameters:
value- whether creakings are active, ornullto leave unset- Returns:
- this builder
-
creakingActive
@Contract("_, _ -> this") public EnvironmentAttributes.Builder creakingActive(Boolean value, Modifier modifier) Setsminecraft:gameplay/creaking_active, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
surfaceSlimeSpawnChance
@Contract("_ -> this") public EnvironmentAttributes.Builder surfaceSlimeSpawnChance(@Nullable Float value) Setsminecraft:gameplay/surface_slime_spawn_chanceas a plain override.- Parameters:
value- chance a slime spawns on the surface, within[0, 1], ornullto leave unset- Returns:
- this builder
-
surfaceSlimeSpawnChance
@Contract("_, _ -> this") public EnvironmentAttributes.Builder surfaceSlimeSpawnChance(Float value, Modifier modifier) Setsminecraft:gameplay/surface_slime_spawn_chance, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
catWakingUpGiftChance
@Contract("_ -> this") public EnvironmentAttributes.Builder catWakingUpGiftChance(@Nullable Float value) Setsminecraft:gameplay/cat_waking_up_gift_chanceas a plain override.- Parameters:
value- chance a cat gives a gift on waking up, within[0, 1], ornullto leave unset- Returns:
- this builder
-
catWakingUpGiftChance
@Contract("_, _ -> this") public EnvironmentAttributes.Builder catWakingUpGiftChance(Float value, Modifier modifier) Setsminecraft:gameplay/cat_waking_up_gift_chance, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
beesStayInHive
Setsminecraft:gameplay/bees_stay_in_hiveas a plain override.- Parameters:
value- whether bees refuse to leave their hive, ornullto leave unset- Returns:
- this builder
-
beesStayInHive
@Contract("_, _ -> this") public EnvironmentAttributes.Builder beesStayInHive(Boolean value, Modifier modifier) Setsminecraft:gameplay/bees_stay_in_hive, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
monstersBurn
Setsminecraft:gameplay/monsters_burnas a plain override.- Parameters:
value- whether monsters burn in daylight, ornullto leave unset- Returns:
- this builder
-
monstersBurn
@Contract("_, _ -> this") public EnvironmentAttributes.Builder monstersBurn(Boolean value, Modifier modifier) Setsminecraft:gameplay/monsters_burn, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
creatureWorldGenSpawnProbability
@Contract("_ -> this") public EnvironmentAttributes.Builder creatureWorldGenSpawnProbability(@Nullable Float value) Setsminecraft:gameplay/creature_world_gen_spawn_probabilityas a plain override.- Parameters:
value- probability creatures spawn during world generation, within[0, 1], ornullto leave unset- Returns:
- this builder
-
creatureWorldGenSpawnProbability
@Contract("_, _ -> this") public EnvironmentAttributes.Builder creatureWorldGenSpawnProbability(Float value, Modifier modifier) Setsminecraft:gameplay/creature_world_gen_spawn_probability, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
villagerActivity
Setsminecraft:gameplay/villager_activityas a plain override.- Parameters:
value- forced villager schedule activity, ornullto leave unset- Returns:
- this builder
-
villagerActivity
@Contract("_, _ -> this") public EnvironmentAttributes.Builder villagerActivity(Key value, Modifier modifier) Setsminecraft:gameplay/villager_activity, deriving from the dimension's value.- Parameters:
value- the modifier argumentmodifier- how to combine it- Returns:
- this builder
-
babyVillagerActivity
@Contract("_ -> this") public EnvironmentAttributes.Builder babyVillagerActivity(@Nullable Key value) Setsminecraft:gameplay/baby_villager_activityas a plain override.- Parameters:
value- forced baby villager schedule activity, ornullto leave unset- Returns:
- this builder
-
babyVillagerActivity
@Contract("_, _ -> this") public EnvironmentAttributes.Builder babyVillagerActivity(Key value, Modifier modifier) Setsminecraft:gameplay/baby_villager_activity, 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
-