Skip to content

Commit

Permalink
Fabric BWG check
Browse files Browse the repository at this point in the history
  • Loading branch information
JT122406 committed Jun 20, 2024
1 parent e89d669 commit 40c18f5
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package generations.gg.generations.structures.generationsstructures.integration;

import net.minecraft.world.level.block.Block;
import net.potionstudios.biomeswevegone.BiomesWeveGone;
import net.potionstudios.biomeswevegone.world.level.block.BWGBlocks;
import org.jetbrains.annotations.Nullable;

public class BWG implements Integration {
@Override
public @Nullable String getModId() {
return BiomesWeveGone.MOD_ID;
}

@Override
public Block getBirchTrapdoorReplacement() {
return null;
}

@Override
public Block getGhostTrapdoorReplacement() {
return null;
}

@Override
public Block getOakLeavesReplacement() {
return BWGBlocks.FLOWERING_ORCHARD_LEAVES.get();
}

@Override
public Block getMirroredFloorReplacement() {
return null;
}

@Override
public Block getRedTulipReplacement() {
return null;
}

@Override
public Block getPinkTulipReplacement() {
return null;
}

@Override
public Block getWhiteCastleBrick2SetSlabReplacement() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package generations.gg.generations.structures.generationsstructures.fabric;

import generations.gg.generations.structures.generationsstructures.GenerationsStructures;
import generations.gg.generations.structures.generationsstructures.integration.BWG;
import generations.gg.generations.structures.generationsstructures.integration.Default;
import generations.gg.generations.structures.generationsstructures.processors.StructureProcessors;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.loader.api.FabricLoader;
import net.potionstudios.biomeswevegone.BiomesWeveGone;

/**
* Fabric initializer for Generations Structures
Expand All @@ -14,7 +17,7 @@
public class GenerationsStructuresFabric implements ModInitializer {
@Override
public void onInitialize() {
GenerationsStructures.init(new Default()); //TODO: FabricLoader.getInstance().isModLoaded(potionstudios.byg.BYG.MOD_ID) ? new BYG() : new Default()
GenerationsStructures.init(FabricLoader.getInstance().isModLoaded(BiomesWeveGone.MOD_ID) ? new BWG() : new Default());
StructureProcessors.init();
}
}

0 comments on commit 40c18f5

Please sign in to comment.