Skip to content

Commit

Permalink
Simplified impl. of high_humidity biome condition type
Browse files Browse the repository at this point in the history
  • Loading branch information
eggohito committed Oct 2, 2024
1 parent 8e07f54 commit 5833724
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 59 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.github.apace100.apoli.condition.type;

import io.github.apace100.apoli.Apoli;
import io.github.apace100.apoli.access.BiomeWeatherAccess;
import io.github.apace100.apoli.condition.factory.ConditionTypeFactory;
import io.github.apace100.apoli.condition.type.biome.InTagConditionType;
import io.github.apace100.apoli.condition.type.biome.PrecipitationConditionType;
Expand All @@ -25,7 +24,7 @@ public class BiomeConditionTypes {

public static void register() {
MetaConditionTypes.register(ApoliDataTypes.BIOME_CONDITION, BiomeConditionTypes::register);
register(createSimpleFactory(Apoli.identifier("high_humidity"), biomeEntry -> ((BiomeWeatherAccess) (Object) biomeEntry.value()).apoli$getDownfall() > 0.85F));
register(createSimpleFactory(Apoli.identifier("high_humidity"), biomeEntry -> biomeEntry.value().weather.downfall() > 0.85F));
register(TemperatureConditionType.getFactory());
register(PrecipitationConditionType.getFactory());
register(InTagConditionType.getFactory());
Expand Down

This file was deleted.

23 changes: 0 additions & 23 deletions src/main/java/io/github/apace100/apoli/mixin/BiomeMixin.java

This file was deleted.

2 changes: 2 additions & 0 deletions src/main/resources/apoli.accesswidener
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ accessible class net/minecraft/registry/tag/TagGroupLoader$TagDependencies
extendable method net/minecraft/text/TranslatableTextContent updateTranslations ()V
accessible field net/minecraft/text/TranslatableTextContent languageCache Lnet/minecraft/util/Language;
accessible field net/minecraft/text/TranslatableTextContent translations Ljava/util/List;
accessible field net/minecraft/world/biome/Biome weather Lnet/minecraft/world/biome/Biome$Weather;
accessible class net/minecraft/world/biome/Biome$Weather
2 changes: 0 additions & 2 deletions src/main/resources/apoli.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
"ArmorSlotMixin",
"ArmorStandEntityMixin",
"AttributeContainerMixin",
"BiomeBuilderMixin",
"BiomeMixin",
"BlockCollisionSpliteratorMixin",
"BlockItemMixin",
"ComponentSubPredicateMixin",
Expand Down

0 comments on commit 5833724

Please sign in to comment.