Class EnvironmentAttributes.Builder

java.lang.Object
fr.fidorial.world.environment.EnvironmentAttributes.Builder
Enclosing class:
EnvironmentAttributes

public static final class EnvironmentAttributes.Builder extends Object
Mutable builder for EnvironmentAttributes.
Since:
0.1.0
  • Method Details

    • fogColor

      @Contract("_ -> this") public EnvironmentAttributes.Builder fogColor(@Nullable Integer value)
      Sets minecraft:visual/fog_color as a plain override.
      Parameters:
      value - distance fog color, packed RGB, or null to leave unset
      Returns:
      this builder
    • fogColor

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder fogColor(Integer value, Modifier modifier)
      Sets minecraft:visual/fog_color, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • fogStartDistance

      @Contract("_ -> this") public EnvironmentAttributes.Builder fogStartDistance(@Nullable Float value)
      Sets minecraft:visual/fog_start_distance as a plain override.
      Parameters:
      value - distance in blocks at which fog begins, or null to leave unset
      Returns:
      this builder
    • fogStartDistance

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder fogStartDistance(Float value, Modifier modifier)
      Sets minecraft:visual/fog_start_distance, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • fogEndDistance

      @Contract("_ -> this") public EnvironmentAttributes.Builder fogEndDistance(@Nullable Float value)
      Sets minecraft:visual/fog_end_distance as a plain override.
      Parameters:
      value - distance in blocks at which fog reaches full density, or null to leave unset
      Returns:
      this builder
    • fogEndDistance

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder fogEndDistance(Float value, Modifier modifier)
      Sets minecraft:visual/fog_end_distance, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • skyFogEndDistance

      @Contract("_ -> this") public EnvironmentAttributes.Builder skyFogEndDistance(@Nullable Float value)
      Sets minecraft:visual/sky_fog_end_distance as a plain override.
      Parameters:
      value - distance in blocks at which sky-visible fog reaches full density, or null to leave unset
      Returns:
      this builder
    • skyFogEndDistance

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder skyFogEndDistance(Float value, Modifier modifier)
      Sets minecraft:visual/sky_fog_end_distance, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • cloudFogEndDistance

      @Contract("_ -> this") public EnvironmentAttributes.Builder cloudFogEndDistance(@Nullable Float value)
      Sets minecraft:visual/cloud_fog_end_distance as a plain override.
      Parameters:
      value - distance in blocks at which cloud-visible fog reaches full density, or null to leave unset
      Returns:
      this builder
    • cloudFogEndDistance

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder cloudFogEndDistance(Float value, Modifier modifier)
      Sets minecraft:visual/cloud_fog_end_distance, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • skyColor

      @Contract("_ -> this") public EnvironmentAttributes.Builder skyColor(@Nullable Integer value)
      Sets minecraft:visual/sky_color as a plain override.
      Parameters:
      value - sky color, packed RGB, or null to leave unset
      Returns:
      this builder
    • skyColor

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder skyColor(Integer value, Modifier modifier)
      Sets minecraft:visual/sky_color, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • sunriseSunsetColor

      @Contract("_ -> this") public EnvironmentAttributes.Builder sunriseSunsetColor(@Nullable Integer value)
      Sets minecraft:visual/sunrise_sunset_color as a plain override.
      Parameters:
      value - sunrise/sunset gradient color, packed ARGB, or null to leave unset
      Returns:
      this builder
    • sunriseSunsetColor

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder sunriseSunsetColor(Integer value, Modifier modifier)
      Sets minecraft:visual/sunrise_sunset_color, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • cloudColor

      @Contract("_ -> this") public EnvironmentAttributes.Builder cloudColor(@Nullable Integer value)
      Sets minecraft:visual/cloud_color as a plain override.
      Parameters:
      value - cloud color, packed ARGB, or null to leave unset
      Returns:
      this builder
    • cloudColor

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder cloudColor(Integer value, Modifier modifier)
      Sets minecraft:visual/cloud_color, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • cloudHeight

      @Contract("_ -> this") public EnvironmentAttributes.Builder cloudHeight(@Nullable Float value)
      Sets minecraft:visual/cloud_height as a plain override.
      Parameters:
      value - height, in blocks, at which clouds render, or null to leave unset
      Returns:
      this builder
    • cloudHeight

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder cloudHeight(Float value, Modifier modifier)
      Sets minecraft:visual/cloud_height, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • sunAngle

      @Contract("_ -> this") public EnvironmentAttributes.Builder sunAngle(@Nullable Float value)
      Sets minecraft:visual/sun_angle as a plain override.
      Parameters:
      value - sun angle offset, in degrees, or null to leave unset
      Returns:
      this builder
    • sunAngle

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder sunAngle(Float value, Modifier modifier)
      Sets minecraft:visual/sun_angle, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • moonAngle

      @Contract("_ -> this") public EnvironmentAttributes.Builder moonAngle(@Nullable Float value)
      Sets minecraft:visual/moon_angle as a plain override.
      Parameters:
      value - moon angle offset, in degrees, or null to leave unset
      Returns:
      this builder
    • moonAngle

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder moonAngle(Float value, Modifier modifier)
      Sets minecraft:visual/moon_angle, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • starAngle

      @Contract("_ -> this") public EnvironmentAttributes.Builder starAngle(@Nullable Float value)
      Sets minecraft:visual/star_angle as a plain override.
      Parameters:
      value - star angle offset, in degrees, or null to leave unset
      Returns:
      this builder
    • starAngle

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder starAngle(Float value, Modifier modifier)
      Sets minecraft:visual/star_angle, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • moonPhase

      @Contract("_ -> this") public EnvironmentAttributes.Builder moonPhase(@Nullable Integer value)
      Sets minecraft:visual/moon_phase as a plain override.
      Parameters:
      value - moon phase index, within [0, 7], or null to leave unset
      Returns:
      this builder
    • moonPhase

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder moonPhase(Integer value, Modifier modifier)
      Sets minecraft:visual/moon_phase, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • starBrightness

      @Contract("_ -> this") public EnvironmentAttributes.Builder starBrightness(@Nullable Float value)
      Sets minecraft:visual/star_brightness as a plain override.
      Parameters:
      value - star brightness, within [0, 1], or null to leave unset
      Returns:
      this builder
    • starBrightness

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder starBrightness(Float value, Modifier modifier)
      Sets minecraft:visual/star_brightness, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • blockLightTint

      @Contract("_ -> this") public EnvironmentAttributes.Builder blockLightTint(@Nullable Integer value)
      Sets minecraft:visual/block_light_tint as a plain override.
      Parameters:
      value - tint applied to block light, packed RGB, or null to leave unset
      Returns:
      this builder
    • blockLightTint

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder blockLightTint(Integer value, Modifier modifier)
      Sets minecraft:visual/block_light_tint, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • skyLightColor

      @Contract("_ -> this") public EnvironmentAttributes.Builder skyLightColor(@Nullable Integer value)
      Sets minecraft:visual/sky_light_color as a plain override.
      Parameters:
      value - sky light color, packed RGB, or null to leave unset
      Returns:
      this builder
    • skyLightColor

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder skyLightColor(Integer value, Modifier modifier)
      Sets minecraft:visual/sky_light_color, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • skyLightFactor

      @Contract("_ -> this") public EnvironmentAttributes.Builder skyLightFactor(@Nullable Float value)
      Sets minecraft:visual/sky_light_factor as a plain override.
      Parameters:
      value - multiplier applied to sky light, within [0, 1], or null to leave unset
      Returns:
      this builder
    • skyLightFactor

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder skyLightFactor(Float value, Modifier modifier)
      Sets minecraft:visual/sky_light_factor, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • nightVisionColor

      @Contract("_ -> this") public EnvironmentAttributes.Builder nightVisionColor(@Nullable Integer value)
      Sets minecraft:visual/night_vision_color as a plain override.
      Parameters:
      value - tint applied by Night Vision, packed RGB, or null to leave unset
      Returns:
      this builder
    • nightVisionColor

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder nightVisionColor(Integer value, Modifier modifier)
      Sets minecraft:visual/night_vision_color, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • ambientLightColor

      @Contract("_ -> this") public EnvironmentAttributes.Builder ambientLightColor(@Nullable Integer value)
      Sets minecraft:visual/ambient_light_color as a plain override.
      Parameters:
      value - ambient light color, packed RGB, or null to leave unset
      Returns:
      this builder
    • ambientLightColor

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder ambientLightColor(Integer value, Modifier modifier)
      Sets minecraft:visual/ambient_light_color, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • defaultDripstoneParticle

      @Contract("_ -> this") public EnvironmentAttributes.Builder defaultDripstoneParticle(@Nullable Key value)
      Sets minecraft:visual/default_dripstone_particle as a plain override.
      Parameters:
      value - particle used by dripping dripstone, or null to leave unset
      Returns:
      this builder
    • defaultDripstoneParticle

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder defaultDripstoneParticle(Key value, Modifier modifier)
      Sets minecraft:visual/default_dripstone_particle, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • waterFogColor

      @Contract("_ -> this") public EnvironmentAttributes.Builder waterFogColor(@Nullable Integer value)
      Sets minecraft:visual/water_fog_color as a plain override.
      Parameters:
      value - underwater fog color, packed RGB, or null to leave unset
      Returns:
      this builder
    • waterFogColor

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder waterFogColor(Integer value, Modifier modifier)
      Sets minecraft:visual/water_fog_color, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • waterFogStartDistance

      @Contract("_ -> this") public EnvironmentAttributes.Builder waterFogStartDistance(@Nullable Float value)
      Sets minecraft:visual/water_fog_start_distance as a plain override.
      Parameters:
      value - distance in blocks at which underwater fog begins, or null to leave unset
      Returns:
      this builder
    • waterFogStartDistance

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder waterFogStartDistance(Float value, Modifier modifier)
      Sets minecraft:visual/water_fog_start_distance, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • waterFogEndDistance

      @Contract("_ -> this") public EnvironmentAttributes.Builder waterFogEndDistance(@Nullable Float value)
      Sets minecraft:visual/water_fog_end_distance as a plain override.
      Parameters:
      value - distance in blocks at which underwater fog reaches full density, or null to leave unset
      Returns:
      this builder
    • waterFogEndDistance

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder waterFogEndDistance(Float value, Modifier modifier)
      Sets minecraft:visual/water_fog_end_distance, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • musicVolume

      @Contract("_ -> this") public EnvironmentAttributes.Builder musicVolume(@Nullable Float value)
      Sets minecraft:audio/music_volume as a plain override.
      Parameters:
      value - volume music fades to, within [0, 1], or null to leave unset
      Returns:
      this builder
    • musicVolume

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder musicVolume(Float value, Modifier modifier)
      Sets minecraft:audio/music_volume, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • fireflyBushSounds

      @Contract("_ -> this") public EnvironmentAttributes.Builder fireflyBushSounds(@Nullable Boolean value)
      Sets minecraft:audio/firefly_bush_sounds as a plain override.
      Parameters:
      value - whether firefly bushes emit ambient sound, or null to leave unset
      Returns:
      this builder
    • fireflyBushSounds

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder fireflyBushSounds(Boolean value, Modifier modifier)
      Sets minecraft:audio/firefly_bush_sounds, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • canStartRaid

      @Contract("_ -> this") public EnvironmentAttributes.Builder canStartRaid(@Nullable Boolean value)
      Sets minecraft:gameplay/can_start_raid as a plain override.
      Parameters:
      value - whether a raid can begin here, or null to leave unset
      Returns:
      this builder
    • canStartRaid

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder canStartRaid(Boolean value, Modifier modifier)
      Sets minecraft:gameplay/can_start_raid, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • canPillagerPatrolSpawn

      @Contract("_ -> this") public EnvironmentAttributes.Builder canPillagerPatrolSpawn(@Nullable Boolean value)
      Sets minecraft:gameplay/can_pillager_patrol_spawn as a plain override.
      Parameters:
      value - whether pillager patrols spawn here, or null to leave unset
      Returns:
      this builder
    • canPillagerPatrolSpawn

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder canPillagerPatrolSpawn(Boolean value, Modifier modifier)
      Sets minecraft:gameplay/can_pillager_patrol_spawn, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • waterEvaporates

      @Contract("_ -> this") public EnvironmentAttributes.Builder waterEvaporates(@Nullable Boolean value)
      Sets minecraft:gameplay/water_evaporates as a plain override.
      Parameters:
      value - whether placed water evaporates, or null to leave unset
      Returns:
      this builder
    • waterEvaporates

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder waterEvaporates(Boolean value, Modifier modifier)
      Sets minecraft:gameplay/water_evaporates, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • bedRule

      @Contract("_ -> this") public EnvironmentAttributes.Builder bedRule(@Nullable BedRule value)
      Sets minecraft:gameplay/bed_rule as a plain override.
      Parameters:
      value - when beds are usable to sleep/set spawn, or null to leave unset
      Returns:
      this builder
    • bedRule

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder bedRule(BedRule value, Modifier modifier)
      Sets minecraft:gameplay/bed_rule, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • strawBedRule

      @Contract("_ -> this") public EnvironmentAttributes.Builder strawBedRule(@Nullable BedRule value)
      Sets minecraft:gameplay/straw_bed_rule as a plain override.
      Parameters:
      value - when straw beds are usable to sleep/set spawn, or null to leave unset
      Returns:
      this builder
    • strawBedRule

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder strawBedRule(BedRule value, Modifier modifier)
      Sets minecraft:gameplay/straw_bed_rule, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • respawnAnchorWorks

      @Contract("_ -> this") public EnvironmentAttributes.Builder respawnAnchorWorks(@Nullable Boolean value)
      Sets minecraft:gameplay/respawn_anchor_works as a plain override.
      Parameters:
      value - whether respawn anchors set spawn instead of exploding, or null to leave unset
      Returns:
      this builder
    • respawnAnchorWorks

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder respawnAnchorWorks(Boolean value, Modifier modifier)
      Sets minecraft:gameplay/respawn_anchor_works, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • netherPortalSpawnsPiglin

      @Contract("_ -> this") public EnvironmentAttributes.Builder netherPortalSpawnsPiglin(@Nullable Boolean value)
      Sets minecraft:gameplay/nether_portal_spawns_piglin as a plain override.
      Parameters:
      value - whether entering a nether portal can spawn a piglin, or null to leave unset
      Returns:
      this builder
    • netherPortalSpawnsPiglin

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder netherPortalSpawnsPiglin(Boolean value, Modifier modifier)
      Sets minecraft:gameplay/nether_portal_spawns_piglin, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • fastLava

      @Contract("_ -> this") public EnvironmentAttributes.Builder fastLava(@Nullable Boolean value)
      Sets minecraft:gameplay/fast_lava as a plain override.
      Parameters:
      value - whether lava flows and spreads at Nether speed, or null to leave unset
      Returns:
      this builder
    • fastLava

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder fastLava(Boolean value, Modifier modifier)
      Sets minecraft:gameplay/fast_lava, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • increasedFireBurnout

      @Contract("_ -> this") public EnvironmentAttributes.Builder increasedFireBurnout(@Nullable Boolean value)
      Sets minecraft:gameplay/increased_fire_burnout as a plain override.
      Parameters:
      value - whether fire burns out faster, or null to leave unset
      Returns:
      this builder
    • increasedFireBurnout

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder increasedFireBurnout(Boolean value, Modifier modifier)
      Sets minecraft:gameplay/increased_fire_burnout, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • eyeblossomOpen

      @Contract("_ -> this") public EnvironmentAttributes.Builder eyeblossomOpen(@Nullable TriState value)
      Sets minecraft:gameplay/eyeblossom_open as a plain override.
      Parameters:
      value - whether eyeblossoms are forced open/closed, or TriState.NOT_SET to leave their default day cycle, or null to leave unset
      Returns:
      this builder
    • eyeblossomOpen

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder eyeblossomOpen(TriState value, Modifier modifier)
      Sets minecraft:gameplay/eyeblossom_open, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • turtleEggHatchChance

      @Contract("_ -> this") public EnvironmentAttributes.Builder turtleEggHatchChance(@Nullable Float value)
      Sets minecraft:gameplay/turtle_egg_hatch_chance as a plain override.
      Parameters:
      value - chance a turtle egg hatches per random tick, within [0, 1], or null to leave unset
      Returns:
      this builder
    • turtleEggHatchChance

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder turtleEggHatchChance(Float value, Modifier modifier)
      Sets minecraft:gameplay/turtle_egg_hatch_chance, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • piglinsZombify

      @Contract("_ -> this") public EnvironmentAttributes.Builder piglinsZombify(@Nullable Boolean value)
      Sets minecraft:gameplay/piglins_zombify as a plain override.
      Parameters:
      value - whether piglins and hoglins zombify, or null to leave unset
      Returns:
      this builder
    • piglinsZombify

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder piglinsZombify(Boolean value, Modifier modifier)
      Sets minecraft:gameplay/piglins_zombify, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • snowGolemMelts

      @Contract("_ -> this") public EnvironmentAttributes.Builder snowGolemMelts(@Nullable Boolean value)
      Sets minecraft:gameplay/snow_golem_melts as a plain override.
      Parameters:
      value - whether snow golems take damage, or null to leave unset
      Returns:
      this builder
    • snowGolemMelts

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder snowGolemMelts(Boolean value, Modifier modifier)
      Sets minecraft:gameplay/snow_golem_melts, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • creakingActive

      @Contract("_ -> this") public EnvironmentAttributes.Builder creakingActive(@Nullable Boolean value)
      Sets minecraft:gameplay/creaking_active as a plain override.
      Parameters:
      value - whether creakings are active, or null to leave unset
      Returns:
      this builder
    • creakingActive

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder creakingActive(Boolean value, Modifier modifier)
      Sets minecraft:gameplay/creaking_active, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • surfaceSlimeSpawnChance

      @Contract("_ -> this") public EnvironmentAttributes.Builder surfaceSlimeSpawnChance(@Nullable Float value)
      Sets minecraft:gameplay/surface_slime_spawn_chance as a plain override.
      Parameters:
      value - chance a slime spawns on the surface, within [0, 1], or null to leave unset
      Returns:
      this builder
    • surfaceSlimeSpawnChance

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder surfaceSlimeSpawnChance(Float value, Modifier modifier)
      Sets minecraft:gameplay/surface_slime_spawn_chance, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • catWakingUpGiftChance

      @Contract("_ -> this") public EnvironmentAttributes.Builder catWakingUpGiftChance(@Nullable Float value)
      Sets minecraft:gameplay/cat_waking_up_gift_chance as a plain override.
      Parameters:
      value - chance a cat gives a gift on waking up, within [0, 1], or null to leave unset
      Returns:
      this builder
    • catWakingUpGiftChance

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder catWakingUpGiftChance(Float value, Modifier modifier)
      Sets minecraft:gameplay/cat_waking_up_gift_chance, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • beesStayInHive

      @Contract("_ -> this") public EnvironmentAttributes.Builder beesStayInHive(@Nullable Boolean value)
      Sets minecraft:gameplay/bees_stay_in_hive as a plain override.
      Parameters:
      value - whether bees refuse to leave their hive, or null to leave unset
      Returns:
      this builder
    • beesStayInHive

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder beesStayInHive(Boolean value, Modifier modifier)
      Sets minecraft:gameplay/bees_stay_in_hive, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • monstersBurn

      @Contract("_ -> this") public EnvironmentAttributes.Builder monstersBurn(@Nullable Boolean value)
      Sets minecraft:gameplay/monsters_burn as a plain override.
      Parameters:
      value - whether monsters burn in daylight, or null to leave unset
      Returns:
      this builder
    • monstersBurn

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder monstersBurn(Boolean value, Modifier modifier)
      Sets minecraft:gameplay/monsters_burn, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • creatureWorldGenSpawnProbability

      @Contract("_ -> this") public EnvironmentAttributes.Builder creatureWorldGenSpawnProbability(@Nullable Float value)
      Sets minecraft:gameplay/creature_world_gen_spawn_probability as a plain override.
      Parameters:
      value - probability creatures spawn during world generation, within [0, 1], or null to leave unset
      Returns:
      this builder
    • creatureWorldGenSpawnProbability

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder creatureWorldGenSpawnProbability(Float value, Modifier modifier)
      Sets minecraft:gameplay/creature_world_gen_spawn_probability, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • villagerActivity

      @Contract("_ -> this") public EnvironmentAttributes.Builder villagerActivity(@Nullable Key value)
      Sets minecraft:gameplay/villager_activity as a plain override.
      Parameters:
      value - forced villager schedule activity, or null to leave unset
      Returns:
      this builder
    • villagerActivity

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder villagerActivity(Key value, Modifier modifier)
      Sets minecraft:gameplay/villager_activity, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • babyVillagerActivity

      @Contract("_ -> this") public EnvironmentAttributes.Builder babyVillagerActivity(@Nullable Key value)
      Sets minecraft:gameplay/baby_villager_activity as a plain override.
      Parameters:
      value - forced baby villager schedule activity, or null to leave unset
      Returns:
      this builder
    • babyVillagerActivity

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder babyVillagerActivity(Key value, Modifier modifier)
      Sets minecraft:gameplay/baby_villager_activity, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • skyLightLevel

      @Contract("_ -> this") public EnvironmentAttributes.Builder skyLightLevel(@Nullable Float value)
      Sets minecraft:gameplay/sky_light_level as a plain override.
      Parameters:
      value - sky light level, within [0, 15], or null to leave unset
      Returns:
      this builder
    • skyLightLevel

      @Contract("_, _ -> this") public EnvironmentAttributes.Builder skyLightLevel(Float value, Modifier modifier)
      Sets minecraft:gameplay/sky_light_level, deriving from the dimension's value.
      Parameters:
      value - the modifier argument
      modifier - how to combine it
      Returns:
      this builder
    • addAmbientParticle

      @Contract("_ -> this") public EnvironmentAttributes.Builder addAmbientParticle(AmbientParticle particle)
      Adds one ambient particle to minecraft: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)
      Sets minecraft:audio/ambient_sounds.
      Parameters:
      value - looping, mood and additions sounds, or null to leave unset
      Returns:
      this builder
    • backgroundMusic

      @Contract("_ -> this") public EnvironmentAttributes.Builder backgroundMusic(@Nullable BackgroundMusic value)
      Sets minecraft:audio/background_music.
      Parameters:
      value - music tracks, or null to leave unset
      Returns:
      this builder
    • build

      @Contract(value="-> new", pure=true) public EnvironmentAttributes build()
      Returns the immutable attributes described by this builder.
      Returns:
      the immutable attributes described by this builder