-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from EpimorphicPioneers/dancingsnow-dev
update dependencies
- Loading branch information
Showing
91 changed files
with
1,391 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 8 additions & 76 deletions
84
src/main/java/com/epimorphismmc/epimorphism/Epimorphism.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,24 @@ | ||
package com.epimorphismmc.epimorphism; | ||
|
||
import com.epimorphismmc.epimorphism.client.ClientProxy; | ||
import com.epimorphismmc.epimorphism.common.CommonProxy; | ||
import com.epimorphismmc.epimorphism.config.EPConfigHolder; | ||
import com.epimorphismmc.epimorphism.data.lang.EPLangHandler; | ||
import com.epimorphismmc.epimorphism.network.s2c.PacketVajraDestroy; | ||
|
||
import com.epimorphismmc.monomorphism.MOMod; | ||
import com.epimorphismmc.monomorphism.datagen.MOProviderTypes; | ||
import com.epimorphismmc.monomorphism.registry.registrate.MORegistrate; | ||
import com.epimorphismmc.monomorphism.utility.DistLogger; | ||
|
||
import com.gregtechceu.gtceu.utils.FormattingUtil; | ||
|
||
import com.lowdragmc.lowdraglib.networking.INetworking; | ||
|
||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraftforge.api.distmarker.Dist; | ||
import net.minecraftforge.api.distmarker.OnlyIn; | ||
import net.minecraftforge.fml.common.Mod; | ||
|
||
import org.slf4j.Logger; | ||
|
||
@Mod(Epimorphism.MOD_ID) | ||
public class Epimorphism extends MOMod<CommonProxy> { | ||
public static final String MOD_ID = "epimorphism"; | ||
public static final String NAME = "Epimorphism"; | ||
|
||
public static Epimorphism instance; | ||
|
||
public Epimorphism() { | ||
super(); | ||
} | ||
|
||
@Override | ||
public String getModId() { | ||
return MOD_ID; | ||
} | ||
|
||
@Override | ||
public String getModName() { | ||
return NAME; | ||
} | ||
|
||
@Override | ||
protected void onModConstructed() { | ||
instance = this; | ||
EPConfigHolder.init(); | ||
} | ||
|
||
@Override | ||
@OnlyIn(Dist.CLIENT) | ||
protected CommonProxy createClientProxy() { | ||
return new ClientProxy(); | ||
} | ||
|
||
@Override | ||
@OnlyIn(Dist.DEDICATED_SERVER) | ||
protected CommonProxy createServerProxy() { | ||
return new CommonProxy(); | ||
} | ||
public interface Epimorphism { | ||
String MOD_ID = "epimorphism"; | ||
String NAME = "Epimorphism"; | ||
|
||
@Override | ||
public void addDataGenerator(MORegistrate registrate) { | ||
registrate.addDataGenerator(MOProviderTypes.MO_LANG, EPLangHandler::init); | ||
} | ||
Logger LOGGER = new DistLogger(NAME); | ||
|
||
@Override | ||
public void registerPackets(INetworking network) { | ||
network.registerS2C(PacketVajraDestroy.class); | ||
static Epimorphism instance() { | ||
return EpimorphismCommon.instance(); | ||
} | ||
|
||
public static ResourceLocation id(String path) { | ||
static ResourceLocation id(String path) { | ||
return new ResourceLocation(MOD_ID, FormattingUtil.toLowerCaseUnder(path)); | ||
} | ||
|
||
public static Logger logger() { | ||
return instance.getLogger(); | ||
} | ||
|
||
public static CommonProxy proxy() { | ||
return instance.getProxy(); | ||
} | ||
|
||
public static MORegistrate registrate() { | ||
return instance.getRegistrate(); | ||
} | ||
|
||
public static INetworking network() { | ||
return instance.getNetwork(); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/com/epimorphismmc/epimorphism/EpimorphismBootstrap.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.epimorphismmc.epimorphism; | ||
|
||
import com.epimorphismmc.epimorphism.client.EpimorphismClient; | ||
|
||
import net.minecraftforge.fml.DistExecutor; | ||
import net.minecraftforge.fml.common.Mod; | ||
|
||
@Mod(Epimorphism.MOD_ID) | ||
public class EpimorphismBootstrap { | ||
public EpimorphismBootstrap() { | ||
DistExecutor.unsafeRunForDist(() -> EpimorphismClient::new, () -> EpimorphismServer::new); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/com/epimorphismmc/epimorphism/EpimorphismServer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.epimorphismmc.epimorphism; | ||
|
||
public class EpimorphismServer extends EpimorphismCommon { | ||
public EpimorphismServer() { | ||
super(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.