Record Class EnvironmentAttributes

java.lang.Object
java.lang.Record
fr.fidorial.world.environment.EnvironmentAttributes
Record Components:
fogColor - distance fog color, packed RGB — minecraft:visual/fog_color
fogStartDistance - distance in blocks at which fog begins — minecraft:visual/fog_start_distance
fogEndDistance - distance in blocks at which fog reaches full density — minecraft:visual/fog_end_distance
skyFogEndDistance - distance in blocks at which sky-visible fog reaches full density — minecraft:visual/sky_fog_end_distance
cloudFogEndDistance - distance in blocks at which cloud-visible fog reaches full density — minecraft:visual/cloud_fog_end_distance
skyColor - sky color, packed RGB — minecraft:visual/sky_color
sunriseSunsetColor - sunrise/sunset gradient color, packed ARGB — minecraft:visual/sunrise_sunset_color
cloudColor - cloud color, packed ARGB — minecraft:visual/cloud_color
cloudHeight - height, in blocks, at which clouds render — minecraft:visual/cloud_height
sunAngle - sun angle offset, in degrees — minecraft:visual/sun_angle
moonAngle - moon angle offset, in degrees — minecraft:visual/moon_angle
starAngle - star angle offset, in degrees — minecraft:visual/star_angle
moonPhase - moon phase index, within [0, 7]minecraft:visual/moon_phase
starBrightness - star brightness, within [0, 1]minecraft:visual/star_brightness
blockLightTint - tint applied to block light, packed RGB — minecraft:visual/block_light_tint
skyLightColor - sky light color, packed RGB — minecraft:visual/sky_light_color
skyLightFactor - multiplier applied to sky light, within [0, 1]minecraft:visual/sky_light_factor
nightVisionColor - tint applied by Night Vision, packed RGB — minecraft:visual/night_vision_color
ambientLightColor - ambient light color, packed RGB — minecraft:visual/ambient_light_color
defaultDripstoneParticle - particle used by dripping dripstone — minecraft:visual/default_dripstone_particle
waterFogColor - underwater fog color, packed RGB — minecraft:visual/water_fog_color
waterFogStartDistance - distance in blocks at which underwater fog begins — minecraft:visual/water_fog_start_distance
waterFogEndDistance - distance in blocks at which underwater fog reaches full density — minecraft:visual/water_fog_end_distance
musicVolume - volume music fades to, within [0, 1]minecraft:audio/music_volume
fireflyBushSounds - whether firefly bushes emit ambient sound — minecraft:audio/firefly_bush_sounds
canStartRaid - whether a raid can begin here — minecraft:gameplay/can_start_raid
canPillagerPatrolSpawn - whether pillager patrols spawn here — minecraft:gameplay/can_pillager_patrol_spawn
waterEvaporates - whether placed water evaporates — minecraft:gameplay/water_evaporates
bedRule - when beds are usable to sleep/set spawn — minecraft:gameplay/bed_rule
strawBedRule - when straw beds are usable to sleep/set spawn — minecraft:gameplay/straw_bed_rule
respawnAnchorWorks - whether respawn anchors set spawn instead of exploding — minecraft:gameplay/respawn_anchor_works
netherPortalSpawnsPiglin - whether entering a nether portal can spawn a piglin — minecraft:gameplay/nether_portal_spawns_piglin
fastLava - whether lava flows and spreads at Nether speed — minecraft:gameplay/fast_lava
increasedFireBurnout - whether fire burns out faster — minecraft:gameplay/increased_fire_burnout
eyeblossomOpen - whether eyeblossoms are forced open/closed, or left to their default day cycle — minecraft:gameplay/eyeblossom_open
turtleEggHatchChance - chance a turtle egg hatches per random tick, within [0, 1]minecraft:gameplay/turtle_egg_hatch_chance
piglinsZombify - whether piglins and hoglins zombify — minecraft:gameplay/piglins_zombify
snowGolemMelts - whether snow golems take damage — minecraft:gameplay/snow_golem_melts
creakingActive - whether creakings are active — minecraft:gameplay/creaking_active
surfaceSlimeSpawnChance - chance a slime spawns on the surface, within [0, 1]minecraft:gameplay/surface_slime_spawn_chance
catWakingUpGiftChance - chance a cat gives a gift on waking up, within [0, 1]minecraft:gameplay/cat_waking_up_gift_chance
beesStayInHive - whether bees refuse to leave their hive — minecraft:gameplay/bees_stay_in_hive
monstersBurn - whether monsters burn in daylight — minecraft:gameplay/monsters_burn
creatureWorldGenSpawnProbability - probability creatures spawn during world generation, within [0, 1]minecraft:gameplay/creature_world_gen_spawn_probability
villagerActivity - forced villager schedule activity — minecraft:gameplay/villager_activity
babyVillagerActivity - forced baby villager schedule activity — minecraft:gameplay/baby_villager_activity
skyLightLevel - sky light level, within [0, 15]minecraft:gameplay/sky_light_level
ambientParticles - particles randomly spawned around the camera, possibly empty — minecraft:visual/ambient_particles
ambientSounds - looping, mood and additions sounds — minecraft:audio/ambient_sounds
backgroundMusic - music tracks — minecraft:audio/background_music

public record EnvironmentAttributes(@Nullable Attribute<Integer> fogColor, @Nullable Attribute<Float> fogStartDistance, @Nullable Attribute<Float> fogEndDistance, @Nullable Attribute<Float> skyFogEndDistance, @Nullable Attribute<Float> cloudFogEndDistance, @Nullable Attribute<Integer> skyColor, @Nullable Attribute<Integer> sunriseSunsetColor, @Nullable Attribute<Integer> cloudColor, @Nullable Attribute<Float> cloudHeight, @Nullable Attribute<Float> sunAngle, @Nullable Attribute<Float> moonAngle, @Nullable Attribute<Float> starAngle, @Nullable Attribute<Integer> moonPhase, @Nullable Attribute<Float> starBrightness, @Nullable Attribute<Integer> blockLightTint, @Nullable Attribute<Integer> skyLightColor, @Nullable Attribute<Float> skyLightFactor, @Nullable Attribute<Integer> nightVisionColor, @Nullable Attribute<Integer> ambientLightColor, @Nullable Attribute<Key> defaultDripstoneParticle, @Nullable Attribute<Integer> waterFogColor, @Nullable Attribute<Float> waterFogStartDistance, @Nullable Attribute<Float> waterFogEndDistance, @Nullable Attribute<Float> musicVolume, @Nullable Attribute<Boolean> fireflyBushSounds, @Nullable Attribute<Boolean> canStartRaid, @Nullable Attribute<Boolean> canPillagerPatrolSpawn, @Nullable Attribute<Boolean> waterEvaporates, @Nullable Attribute<BedRule> bedRule, @Nullable Attribute<BedRule> strawBedRule, @Nullable Attribute<Boolean> respawnAnchorWorks, @Nullable Attribute<Boolean> netherPortalSpawnsPiglin, @Nullable Attribute<Boolean> fastLava, @Nullable Attribute<Boolean> increasedFireBurnout, @Nullable Attribute<TriState> eyeblossomOpen, @Nullable Attribute<Float> turtleEggHatchChance, @Nullable Attribute<Boolean> piglinsZombify, @Nullable Attribute<Boolean> snowGolemMelts, @Nullable Attribute<Boolean> creakingActive, @Nullable Attribute<Float> surfaceSlimeSpawnChance, @Nullable Attribute<Float> catWakingUpGiftChance, @Nullable Attribute<Boolean> beesStayInHive, @Nullable Attribute<Boolean> monstersBurn, @Nullable Attribute<Float> creatureWorldGenSpawnProbability, @Nullable Attribute<Key> villagerActivity, @Nullable Attribute<Key> babyVillagerActivity, @Nullable Attribute<Float> skyLightLevel, List<AmbientParticle> ambientParticles, @Nullable AmbientSounds ambientSounds, @Nullable BackgroundMusic backgroundMusic) extends Record
Since:
0.1.0