Skip to content

Commit

Permalink
removed some bad practice
Browse files Browse the repository at this point in the history
  • Loading branch information
karelmikie3 committed Feb 5, 2015
1 parent bcf64db commit 8cff85d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package HxCKDMS.HxCLinkPads.Client.Render;

import HxCKDMS.HxCLinkPads.Reference.References;
import HxCKDMS.HxCLinkPads.Lib.Reference;
import HxCKDMS.HxCLinkPads.TileEntities.TileEntityLinkPad;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
Expand All @@ -10,9 +10,9 @@

public class TileEntityRendererLinkPad extends TileEntitySpecialRenderer {

private final ResourceLocation texturePortal = new ResourceLocation(References.MOD_ID + ":textures/models/blockLinkpad.png");
private final ResourceLocation texturePortal_top_outer = new ResourceLocation(References.MOD_ID + ":textures/models/blockLinkpad_outer_top.png");
private final ResourceLocation texturePortal_top_inner = new ResourceLocation(References.MOD_ID + ":textures/models/blockLinkpad_inner_top.png");
private final ResourceLocation texturePortal = new ResourceLocation(Reference.MOD_ID + ":textures/models/blockLinkpad.png");
private final ResourceLocation texturePortal_top_outer = new ResourceLocation(Reference.MOD_ID + ":textures/models/blockLinkpad_outer_top.png");
private final ResourceLocation texturePortal_top_inner = new ResourceLocation(Reference.MOD_ID + ":textures/models/blockLinkpad_inner_top.png");

@Override
public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float alpha) {
Expand Down
22 changes: 10 additions & 12 deletions src/main/java/HxCKDMS/HxCLinkPads/HxCLinkPads.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package HxCKDMS.HxCLinkPads;

import HxCKDMS.HxCCore.Utils.LogHelper;
import HxCKDMS.HxCLinkPads.Proxy.ClientProxy;
import HxCKDMS.HxCLinkPads.Proxy.ServerProxy;
import HxCKDMS.HxCLinkPads.Reference.References;
import HxCKDMS.HxCLinkPads.Lib.Reference;
import HxCKDMS.HxCLinkPads.Proxy.CommonProxy;
import HxCKDMS.HxCLinkPads.Registry.ModRegistry;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
Expand All @@ -12,31 +11,30 @@
import cpw.mods.fml.common.event.FMLPreInitializationEvent;

@SuppressWarnings("unused")
@Mod(modid = References.MOD_ID, name = References.MOD_NAME, version = References.VERSION)
@Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION)
public class HxCLinkPads {
@Mod.Instance(References.MOD_ID)
@Mod.Instance(Reference.MOD_ID)
public static HxCLinkPads HxCLinkPads;

@SidedProxy(serverSide = References.SERVER_PROXY_LOCATION, clientSide = References.CLIENT_PROXY_LOCATION)
public static ClientProxy cProxy;
public static ServerProxy sProxy;
@SidedProxy(serverSide = Reference.SERVER_PROXY_LOCATION, clientSide = Reference.CLIENT_PROXY_LOCATION)
public static CommonProxy proxy;

@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event){
ModRegistry.preInit();
cProxy.preInit();
proxy.preInit();

LogHelper.info("Pre initialization has been completed.", References.MOD_NAME);
LogHelper.info("Pre initialization has been completed.", Reference.MOD_NAME);
}

@Mod.EventHandler
public void init(FMLInitializationEvent event){
ModRegistry.init();
LogHelper.info("Initialization has been completed.", References.MOD_NAME);
LogHelper.info("Initialization has been completed.", Reference.MOD_NAME);
}

@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event){
LogHelper.info("Post initialization has been completed.", References.MOD_NAME);
LogHelper.info("Post initialization has been completed.", Reference.MOD_NAME);
}
}
4 changes: 2 additions & 2 deletions src/main/java/HxCKDMS/HxCLinkPads/Items/ItemLinker.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package HxCKDMS.HxCLinkPads.Items;

import HxCKDMS.HxCLinkPads.Reference.References;
import HxCKDMS.HxCLinkPads.Lib.Reference;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
Expand All @@ -16,7 +16,7 @@ public class ItemLinker extends Item{
public ItemLinker(){
setCreativeTab(CreativeTabs.tabTools);
setUnlocalizedName("itemLinker");
setTextureName(References.MOD_ID + ":itemLinker");
setTextureName(Reference.MOD_ID + ":itemLinker");
setMaxStackSize(1);
setMaxDamage(0);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package HxCKDMS.HxCLinkPads.Reference;
package HxCKDMS.HxCLinkPads.Lib;

@SuppressWarnings("unused")
public class References {
public class Reference {
public static final String MOD_ID = "hxclinkpads";
public static final String MOD_NAME = "HxCLinkPads";
public static final String VERSION = "1.0";
Expand Down

0 comments on commit 8cff85d

Please sign in to comment.