rename architectury implementation util class

This commit is contained in:
dfsek
2022-06-21 09:59:54 -07:00
parent 546431bbef
commit 0c02e4cb9a
5 changed files with 10 additions and 12 deletions

View File

@@ -48,7 +48,7 @@ import com.dfsek.terra.api.world.ServerWorld;
import com.dfsek.terra.api.world.biome.generation.BiomeProvider;
import com.dfsek.terra.api.world.chunk.generation.ChunkGenerator;
import com.dfsek.terra.api.world.chunk.generation.ProtoWorld;
import com.dfsek.terra.forge.util.FabricUtil;
import com.dfsek.terra.forge.util.ForgeUtil;
@Mixin(ChunkRegion.class)
@@ -109,7 +109,7 @@ public abstract class ChunkRegionMixin {
}
public BlockEntity terraWorld$getBlockEntity(int x, int y, int z) {
return FabricUtil.createState((WorldAccess) this, new BlockPos(x, y, z));
return ForgeUtil.createState((WorldAccess) this, new BlockPos(x, y, z));
}
public int terraWorld$getMinHeight() {

View File

@@ -35,7 +35,7 @@ import com.dfsek.terra.api.world.ServerWorld;
import com.dfsek.terra.api.world.biome.generation.BiomeProvider;
import com.dfsek.terra.api.world.chunk.Chunk;
import com.dfsek.terra.api.world.chunk.generation.ChunkGenerator;
import com.dfsek.terra.forge.util.FabricUtil;
import com.dfsek.terra.forge.util.ForgeUtil;
@Mixin(net.minecraft.server.world.ServerWorld.class)
@@ -73,7 +73,7 @@ public abstract class ServerWorldMixin {
}
public BlockEntity terra$getBlockEntity(int x, int y, int z) {
return FabricUtil.createState((WorldAccess) this, new BlockPos(x, y, z));
return ForgeUtil.createState((WorldAccess) this, new BlockPos(x, y, z));
}
public int terra$getMinHeight() {

View File

@@ -25,8 +25,6 @@ import net.minecraft.util.math.BlockPos;
import net.minecraft.util.registry.Registry;
import net.minecraft.util.registry.RegistryEntry;
import net.minecraft.world.WorldAccess;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Optional;
@@ -36,8 +34,8 @@ import com.dfsek.terra.api.block.entity.MobSpawner;
import com.dfsek.terra.api.block.entity.Sign;
public final class FabricUtil {
private FabricUtil() {
public final class ForgeUtil {
private ForgeUtil() {
}

View File

@@ -39,7 +39,7 @@ public class ProtoPlatformBiome implements PlatformBiome {
}
public RegistryKey<Biome> get(Registry<net.minecraft.world.biome.Biome> registry) {
return FabricUtil.getEntry(registry, identifier).orElseThrow().getKey().orElseThrow();
return ForgeUtil.getEntry(registry, identifier).orElseThrow().getKey().orElseThrow();
}
public RegistryKey<Biome> get(IForgeRegistry<Biome> registry) {

View File

@@ -38,7 +38,7 @@ public final class TagUtil {
LifecycleUtil
.getPresets()
.forEach(id -> FabricUtil
.forEach(id -> ForgeUtil
.getEntry(registry, id)
.ifPresentOrElse(
preset -> collect
@@ -57,11 +57,11 @@ public final class TagUtil {
BiomeUtil
.getTerraBiomeMap()
.forEach((vb, terraBiomes) ->
FabricUtil
ForgeUtil
.getEntry(registry, vb)
.ifPresentOrElse(
vanilla -> terraBiomes
.forEach(tb -> FabricUtil
.forEach(tb -> ForgeUtil
.getEntry(registry, tb)
.ifPresentOrElse(
terra -> {