refactor handles

This commit is contained in:
dfsek
2022-06-21 10:25:52 -07:00
parent aeb2da4ede
commit e2bb2d8712
3 changed files with 6 additions and 6 deletions
@@ -48,15 +48,15 @@ import com.dfsek.terra.api.handle.WorldHandle;
import com.dfsek.terra.api.util.generic.Lazy; import com.dfsek.terra.api.util.generic.Lazy;
import com.dfsek.terra.api.world.biome.PlatformBiome; import com.dfsek.terra.api.world.biome.PlatformBiome;
import com.dfsek.terra.forge.generation.ForgeChunkGeneratorWrapper; import com.dfsek.terra.forge.generation.ForgeChunkGeneratorWrapper;
import com.dfsek.terra.forge.handle.FabricItemHandle; import com.dfsek.terra.forge.handle.ForgeItemHandle;
import com.dfsek.terra.forge.handle.FabricWorldHandle; import com.dfsek.terra.forge.handle.ForgeWorldHandle;
import com.dfsek.terra.forge.util.ProtoPlatformBiome; import com.dfsek.terra.forge.util.ProtoPlatformBiome;
public class PlatformImpl extends AbstractPlatform { public class PlatformImpl extends AbstractPlatform {
private static final Logger LOGGER = LoggerFactory.getLogger(PlatformImpl.class); private static final Logger LOGGER = LoggerFactory.getLogger(PlatformImpl.class);
private final ItemHandle itemHandle = new FabricItemHandle(); private final ItemHandle itemHandle = new ForgeItemHandle();
private final WorldHandle worldHandle = new FabricWorldHandle(); private final WorldHandle worldHandle = new ForgeWorldHandle();
private final Lazy<File> dataFolder = Lazy.lazy(() -> new File("./config/Terra")); private final Lazy<File> dataFolder = Lazy.lazy(() -> new File("./config/Terra"));
public PlatformImpl() { public PlatformImpl() {
@@ -34,7 +34,7 @@ import com.dfsek.terra.api.inventory.Item;
import com.dfsek.terra.api.inventory.item.Enchantment; import com.dfsek.terra.api.inventory.item.Enchantment;
public class FabricItemHandle implements ItemHandle { public class ForgeItemHandle implements ItemHandle {
@Override @Override
public Item createItem(String data) { public Item createItem(String data) {
@@ -30,7 +30,7 @@ import com.dfsek.terra.api.entity.EntityType;
import com.dfsek.terra.api.handle.WorldHandle; import com.dfsek.terra.api.handle.WorldHandle;
public class FabricWorldHandle implements WorldHandle { public class ForgeWorldHandle implements WorldHandle {
private static final BlockState AIR = (BlockState) Blocks.AIR.getDefaultState(); private static final BlockState AIR = (BlockState) Blocks.AIR.getDefaultState();