mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
rename architectury implementation util class
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 -> {
|
||||
|
||||
Reference in New Issue
Block a user