#mod-dev-talk Saturday 11 September 2021
53 messages3 people
- G
- A
- G
- A
Replying togudenauSometimes I wish you could take a Set<Entry<A, B>> and do .forEach((a, b)->{})
Dw, at the pace java is going that will be a thing by 2040
- G01:24Best you could do is something like:
Which isn't awful.public static <A, B> void biForEach(Set<Entry<A, B>> set, BiConsumer<A, B> action){ set.forEach((entry)->action.accept(entry.getKey(), entry.getValue())); } biForEach(set, (a, b)->{});01:25I suppose with extensions you could do theforEachthing. - G
- G02:05I did disable some stuff.
- A
- G02:07I changed how this weather system worked, it created like 50 errors.
- A
- G
- A
- G
- A
- G
- A
- G
- G02:29
java.lang.NullPointerException: Cannot invoke "java.util.Map$Entry.getValue()" because "entry" is null at net.id.aether.world.weather.ClientWeatherController.has(ClientWeatherController.java:70) at net.minecraft.client.render.WorldRenderer.handler$znl000$renderWeather(WorldRenderer.java:5332) - G02:45
var biomes = switch(controller.getIdentifier().toString()){ case "the_aether:rain", "the_aether:thunder" -> Set.of( AetherDimension.HIGHLANDS_PLAINS, AetherDimension.HIGHLANDS_FOREST, AetherDimension.HIGHLANDS_THICKET, AetherDimension.WISTERIA_WOODS, AetherDimension.CONTINENTAL_PLATO, AetherDimension.HIGHLANDS_SHIELD ); case "the_aether:snow", "the_aether:thunder_snow" -> Set.of( AetherDimension.AUTUMNAL_TUNDRA ); default -> throw new IllegalArgumentException("Unknown controller: " + controller.getIdentifier()); };02:45@Azzyypaaras - A
- G
- A
- G
- A
- G
- A
- G
- J







