Skip to content

Commit

Permalink
Tidy up the source a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
gniftygnome committed Nov 9, 2023
1 parent e5f2119 commit e269d60
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import java.util.List;

@SuppressWarnings("UnstableApiUsage")
public class TraverseBiomes {
public static final RegistryKey<Biome> AUTUMNAL_WOODS = RegistryKey.of(RegistryKeys.BIOME, Identifier.of(Traverse.MOD_ID, "autumnal_woods"));
public static final RegistryKey<Biome> CONIFEROUS_FOREST = RegistryKey.of(RegistryKeys.BIOME, Identifier.of(Traverse.MOD_ID, "coniferous_forest"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import java.util.concurrent.CompletableFuture;

@SuppressWarnings("UnstableApiUsage")
public class TraverseDynamicRegistryProvider extends FabricDynamicRegistryProvider {
protected TraverseDynamicRegistryProvider(FabricDataOutput output, CompletableFuture<RegistryWrapper.WrapperLookup> registriesFuture) {
super(output, registriesFuture);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import java.util.List;

@SuppressWarnings("UnstableApiUsage")
public class TraverseConfiguredFeatures {
/* Logs and Shrubs */
static final RegistryKey<ConfiguredFeature<?, ?>> FALLEN_OAK_TREE = createRegistryKey("fallen_oak_tree");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import java.util.ArrayList;
import java.util.List;

@SuppressWarnings("UnstableApiUsage")
public class TraversePlacedFeatures {
/* Shrubs */
public static final RegistryKey<PlacedFeature> DESERT_EXTRA_CACTUS = createRegistryKey("desert_extra_cactus");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import net.minecraft.world.gen.foliage.FoliagePlacer;
import net.minecraft.world.gen.foliage.FoliagePlacerType;

import java.util.function.BiConsumer;

public class NoneFoliagePlacer extends FoliagePlacer {
public static final Codec<NoneFoliagePlacer> CODEC = RecordCodecBuilder.create((instance) -> fillFoliagePlacerFields(instance).apply(instance, (uniformIntDistribution, uniformIntDistribution2) -> new NoneFoliagePlacer()));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ private static void addCompostables() {

private static void addFuels() {
FuelRegistry fuelRegistry = FuelRegistry.INSTANCE;
int FENCE_CHANCE = fuelRegistry.get(Items.OAK_FENCE);
int FENCE_GATE_CHANCE = fuelRegistry.get(Items.OAK_FENCE_GATE);

fuelRegistry.add(FIR_FENCE, 300);
fuelRegistry.add(FIR_FENCE_GATE, 300);
fuelRegistry.add(FIR_FENCE, FENCE_CHANCE);
fuelRegistry.add(FIR_FENCE_GATE, FENCE_GATE_CHANCE);
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.terraformersmc.traverse.villager;

import com.terraformersmc.traverse.biome.TraverseBiomes;
import net.fabricmc.fabric.api.object.builder.v1.villager.VillagerTypeHelper;
import net.minecraft.registry.RegistryKey;
import net.minecraft.village.VillagerType;
import net.minecraft.world.biome.Biome;
Expand Down

0 comments on commit e269d60

Please sign in to comment.