Little bit of cleaning upping
|
@ -10,6 +10,8 @@
|
|||
|
||||
package ellpeck.actuallyadditions.event;
|
||||
|
||||
import ellpeck.actuallyadditions.config.values.ConfigBoolValues;
|
||||
import ellpeck.actuallyadditions.update.UpdateCheckerClientNotifier;
|
||||
import ellpeck.actuallyadditions.util.ModUtil;
|
||||
import ellpeck.actuallyadditions.util.Util;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
@ -30,4 +32,13 @@ public class InitEvents{
|
|||
MinecraftForge.TERRAIN_GEN_BUS.register(new WorldDecorationEvent());
|
||||
}
|
||||
|
||||
public static void initClient(){
|
||||
Util.registerEvent(new TooltipEvent());
|
||||
Util.registerEvent(new RenderPlayerEventAA());
|
||||
|
||||
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled()){
|
||||
Util.registerEvent(new UpdateCheckerClientNotifier());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -19,16 +19,12 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
|||
import cpw.mods.fml.common.registry.VillagerRegistry;
|
||||
import ellpeck.actuallyadditions.blocks.InitBlocks;
|
||||
import ellpeck.actuallyadditions.blocks.render.*;
|
||||
import ellpeck.actuallyadditions.config.values.ConfigBoolValues;
|
||||
import ellpeck.actuallyadditions.config.values.ConfigIntValues;
|
||||
import ellpeck.actuallyadditions.event.RenderPlayerEventAA;
|
||||
import ellpeck.actuallyadditions.event.TooltipEvent;
|
||||
import ellpeck.actuallyadditions.event.InitEvents;
|
||||
import ellpeck.actuallyadditions.tile.*;
|
||||
import ellpeck.actuallyadditions.update.UpdateCheckerClientNotifier;
|
||||
import ellpeck.actuallyadditions.util.AssetUtil;
|
||||
import ellpeck.actuallyadditions.util.KeyBinds;
|
||||
import ellpeck.actuallyadditions.util.ModUtil;
|
||||
import ellpeck.actuallyadditions.util.Util;
|
||||
import ellpeck.actuallyadditions.util.playerdata.PersistantClientData;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.item.Item;
|
||||
|
@ -53,9 +49,7 @@ public class ClientProxy implements IProxy{
|
|||
public void init(FMLInitializationEvent event){
|
||||
ModUtil.LOGGER.info("Initializing ClientProxy...");
|
||||
|
||||
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled()){
|
||||
Util.registerEvent(new UpdateCheckerClientNotifier());
|
||||
}
|
||||
InitEvents.initClient();
|
||||
|
||||
AssetUtil.COMPOST_RENDER_ID = RenderingRegistry.getNextAvailableRenderId();
|
||||
AssetUtil.FISHING_NET_RENDER_ID = RenderingRegistry.getNextAvailableRenderId();
|
||||
|
@ -84,9 +78,6 @@ public class ClientProxy implements IProxy{
|
|||
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(InitBlocks.blockSmileyCloud), new RenderItems(new ModelSmileyCloud()));
|
||||
|
||||
VillagerRegistry.instance().registerVillagerSkin(ConfigIntValues.JAM_VILLAGER_ID.getValue(), new ResourceLocation(ModUtil.MOD_ID_LOWER, "textures/entity/villager/jamVillager.png"));
|
||||
|
||||
Util.registerEvent(new TooltipEvent());
|
||||
Util.registerEvent(new RenderPlayerEventAA());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
package ellpeck.actuallyadditions.update;
|
||||
|
||||
import ellpeck.actuallyadditions.config.values.ConfigBoolValues;
|
||||
import ellpeck.actuallyadditions.util.ModUtil;
|
||||
import ellpeck.actuallyadditions.util.Util;
|
||||
|
||||
|
@ -25,8 +26,10 @@ public class UpdateChecker{
|
|||
public static final String DOWNLOAD_LINK = "http://minecraft.curseforge.com/mc-mods/228404-actually-additions/files";
|
||||
|
||||
public void init(){
|
||||
ModUtil.LOGGER.info("Initializing Update Checker...");
|
||||
Util.registerEvent(this);
|
||||
new ThreadUpdateChecker();
|
||||
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled()){
|
||||
ModUtil.LOGGER.info("Initializing Update Checker...");
|
||||
Util.registerEvent(this);
|
||||
new ThreadUpdateChecker();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 371 B |
Before Width: | Height: | Size: 368 B |
Before Width: | Height: | Size: 350 B |
Before Width: | Height: | Size: 337 B |
Before Width: | Height: | Size: 411 B |
Before Width: | Height: | Size: 491 B |
Before Width: | Height: | Size: 321 B |
Before Width: | Height: | Size: 306 B |