Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
131 additions
and
214 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
19 changes: 19 additions & 0 deletions
19
src/main/java/info/u_team/draw_bridge/DrawBridgeConstants.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,19 @@ | ||
package info.u_team.draw_bridge; | ||
|
||
import org.apache.logging.log4j.*; | ||
|
||
public class DrawBridgeConstants { | ||
|
||
public static final String MODID = "drawbridge"; | ||
public static final String NAME = "Draw Bridge"; | ||
public static final String VERSION = "${version}"; | ||
public static final String MCVERSION = "${mcversion}"; | ||
public static final String DEPENDENCIES = "required:forge@[14.23.4.2745,);required-after:uteamcore@[2.1.0.89,)"; | ||
public static final String UPDATEURL = "https://api.u-team.info/update/drawbridge.json"; | ||
|
||
public static final String COMMONPROXY = "info.u_team.draw_bridge.proxy.CommonProxy"; | ||
public static final String CLIENTPROXY = "info.u_team.draw_bridge.proxy.ClientProxy"; | ||
|
||
public static final Logger LOGGER = LogManager.getLogger(NAME); | ||
|
||
} |
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,37 @@ | ||
package info.u_team.draw_bridge; | ||
|
||
import static info.u_team.draw_bridge.DrawBridgeConstants.*; | ||
|
||
import info.u_team.draw_bridge.proxy.*; | ||
import net.minecraftforge.fml.common.*; | ||
import net.minecraftforge.fml.common.Mod.*; | ||
import net.minecraftforge.fml.common.event.*;; | ||
|
||
@Mod(modid = MODID, name = NAME, version = VERSION, acceptedMinecraftVersions = MCVERSION, dependencies = DEPENDENCIES, updateJSON = UPDATEURL) | ||
public class DrawBridgeMod { | ||
|
||
@Instance | ||
private static DrawBridgeMod instance; | ||
|
||
public static DrawBridgeMod getInstance() { | ||
return instance; | ||
} | ||
|
||
@SidedProxy(serverSide = COMMONPROXY, clientSide = CLIENTPROXY) | ||
private static CommonProxy proxy; | ||
|
||
@EventHandler | ||
public void preinit(FMLPreInitializationEvent event) { | ||
proxy.preinit(event); | ||
} | ||
|
||
@EventHandler | ||
public void init(FMLInitializationEvent event) { | ||
proxy.init(event); | ||
} | ||
|
||
@EventHandler | ||
public void postinit(FMLPostInitializationEvent event) { | ||
proxy.postinit(event); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/info/u_team/draw_bridge/proxy/ClientProxy.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,28 @@ | ||
package info.u_team.draw_bridge.proxy; | ||
|
||
import info.u_team.u_team_core.registry.*; | ||
import info.uteam.drawbridges.model.DBMModelLoader; | ||
import info.uteam.drawbridges.tiles.*; | ||
import net.minecraftforge.client.model.ModelLoaderRegistry; | ||
import net.minecraftforge.fml.common.event.*; | ||
|
||
public class ClientProxy extends CommonProxy { | ||
|
||
@Override | ||
public void preinit(FMLPreInitializationEvent event) { | ||
super.preinit(event); | ||
ModelLoaderRegistry.registerLoader(new DBMModelLoader()); | ||
} | ||
|
||
@Override | ||
public void init(FMLInitializationEvent event) { | ||
super.init(event); | ||
ClientRegistry.registerSpecialTileEntityRenderer(DBMDrawbridgeTile.class, new SpecialDrawbridgeRender()); | ||
} | ||
|
||
@Override | ||
public void postinit(FMLPostInitializationEvent event) { | ||
super.postinit(event); | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/info/u_team/draw_bridge/proxy/CommonProxy.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,20 @@ | ||
package info.u_team.draw_bridge.proxy; | ||
|
||
import info.uteam.drawbridges.init.*; | ||
import net.minecraftforge.fml.common.event.*; | ||
|
||
public class CommonProxy { | ||
|
||
public void preinit(FMLPreInitializationEvent event) { | ||
DBMBlocks.preinit(); | ||
DBMGuis.preinit(); | ||
} | ||
|
||
public void init(FMLInitializationEvent event) { | ||
DBMCreativeTabs.init(); | ||
} | ||
|
||
public void postinit(FMLPostInitializationEvent event) { | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
49 changes: 0 additions & 49 deletions
49
src/main/java/info/uteam/drawbridges/proxy/DBMClientProxy.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.