Skip to content

Commit

Permalink
refactor: Rename some things
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed May 24, 2024
1 parent af937b4 commit 5d3035d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
package net.zepalesque.zenith.api.biometint;

import com.mojang.serialization.Codec;
import net.minecraft.core.Registry;
import net.neoforged.neoforge.registries.DeferredHolder;
import net.neoforged.neoforge.registries.DeferredRegister;
import net.neoforged.neoforge.registries.RegistryBuilder;
import net.zepalesque.zenith.Zenith;
import net.zepalesque.zenith.api.condition.Condition;
import net.zepalesque.zenith.api.condition.ConfigCondition;

public class BiomeTints {

public static final DeferredRegister<BiomeTint> TINTS = DeferredRegister.create(Zenith.Keys.BIOME_TINT, Zenith.MODID);
public static final Registry<BiomeTint> TINT_REGISTRY = new RegistryBuilder<>(Zenith.Keys.BIOME_TINT).sync(true).create();

public static final DeferredHolder<BiomeTint, BiomeTint> TEST = TINTS.register("test_tint", () -> new BiomeTint(Zenith.loc("test_tint"), 0xFFFFFF));
public static final DeferredHolder<BiomeTint, BiomeTint> EXAMPLE_TINT = TINTS.register("example_tint", () -> new BiomeTint(Zenith.loc("example_tint"), 0xFFFFFF));


}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public ZenithDataMapGen(PackOutput output, CompletableFuture<HolderLookup.Provid

@Override
protected void gather() {
Builder<Integer, Biome> tints = this.builder(BiomeTints.TEST.get().getDataMap());
Builder<Integer, Biome> tints = this.builder(BiomeTints.EXAMPLE_TINT.get().getDataMap());
tints.add(Biomes.PLAINS, 0x5BCEFA, false);
tints.add(Biomes.CHERRY_GROVE, 0xF5A9B8, false);
tints.add(Biomes.THE_END, 0xFFFFFF, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

public class Conditions {

public static final ResourceKey<Condition<?>> EXAMPLE_CONDITION = createKey("example");
public static final ResourceKey<Condition<?>> EXAMPLE_CONDITION = createKey("example_condition");

private static ResourceKey<Condition<?>> createKey(String name) {
return ResourceKey.create(Zenith.Keys.CONDITION, Zenith.loc(name));
Expand Down

0 comments on commit 5d3035d

Please sign in to comment.