Little bit of cleaning upping
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
package ellpeck.actuallyadditions.event;
|
package ellpeck.actuallyadditions.event;
|
||||||
|
|
||||||
|
import ellpeck.actuallyadditions.config.values.ConfigBoolValues;
|
||||||
|
import ellpeck.actuallyadditions.update.UpdateCheckerClientNotifier;
|
||||||
import ellpeck.actuallyadditions.util.ModUtil;
|
import ellpeck.actuallyadditions.util.ModUtil;
|
||||||
import ellpeck.actuallyadditions.util.Util;
|
import ellpeck.actuallyadditions.util.Util;
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
import net.minecraftforge.common.MinecraftForge;
|
||||||
|
@ -30,4 +32,13 @@ public class InitEvents{
|
||||||
MinecraftForge.TERRAIN_GEN_BUS.register(new WorldDecorationEvent());
|
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 cpw.mods.fml.common.registry.VillagerRegistry;
|
||||||
import ellpeck.actuallyadditions.blocks.InitBlocks;
|
import ellpeck.actuallyadditions.blocks.InitBlocks;
|
||||||
import ellpeck.actuallyadditions.blocks.render.*;
|
import ellpeck.actuallyadditions.blocks.render.*;
|
||||||
import ellpeck.actuallyadditions.config.values.ConfigBoolValues;
|
|
||||||
import ellpeck.actuallyadditions.config.values.ConfigIntValues;
|
import ellpeck.actuallyadditions.config.values.ConfigIntValues;
|
||||||
import ellpeck.actuallyadditions.event.RenderPlayerEventAA;
|
import ellpeck.actuallyadditions.event.InitEvents;
|
||||||
import ellpeck.actuallyadditions.event.TooltipEvent;
|
|
||||||
import ellpeck.actuallyadditions.tile.*;
|
import ellpeck.actuallyadditions.tile.*;
|
||||||
import ellpeck.actuallyadditions.update.UpdateCheckerClientNotifier;
|
|
||||||
import ellpeck.actuallyadditions.util.AssetUtil;
|
import ellpeck.actuallyadditions.util.AssetUtil;
|
||||||
import ellpeck.actuallyadditions.util.KeyBinds;
|
import ellpeck.actuallyadditions.util.KeyBinds;
|
||||||
import ellpeck.actuallyadditions.util.ModUtil;
|
import ellpeck.actuallyadditions.util.ModUtil;
|
||||||
import ellpeck.actuallyadditions.util.Util;
|
|
||||||
import ellpeck.actuallyadditions.util.playerdata.PersistantClientData;
|
import ellpeck.actuallyadditions.util.playerdata.PersistantClientData;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
|
@ -53,9 +49,7 @@ public class ClientProxy implements IProxy{
|
||||||
public void init(FMLInitializationEvent event){
|
public void init(FMLInitializationEvent event){
|
||||||
ModUtil.LOGGER.info("Initializing ClientProxy...");
|
ModUtil.LOGGER.info("Initializing ClientProxy...");
|
||||||
|
|
||||||
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled()){
|
InitEvents.initClient();
|
||||||
Util.registerEvent(new UpdateCheckerClientNotifier());
|
|
||||||
}
|
|
||||||
|
|
||||||
AssetUtil.COMPOST_RENDER_ID = RenderingRegistry.getNextAvailableRenderId();
|
AssetUtil.COMPOST_RENDER_ID = RenderingRegistry.getNextAvailableRenderId();
|
||||||
AssetUtil.FISHING_NET_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()));
|
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"));
|
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
|
@Override
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
package ellpeck.actuallyadditions.update;
|
package ellpeck.actuallyadditions.update;
|
||||||
|
|
||||||
|
import ellpeck.actuallyadditions.config.values.ConfigBoolValues;
|
||||||
import ellpeck.actuallyadditions.util.ModUtil;
|
import ellpeck.actuallyadditions.util.ModUtil;
|
||||||
import ellpeck.actuallyadditions.util.Util;
|
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 static final String DOWNLOAD_LINK = "http://minecraft.curseforge.com/mc-mods/228404-actually-additions/files";
|
||||||
|
|
||||||
public void init(){
|
public void init(){
|
||||||
ModUtil.LOGGER.info("Initializing Update Checker...");
|
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled()){
|
||||||
Util.registerEvent(this);
|
ModUtil.LOGGER.info("Initializing Update Checker...");
|
||||||
new ThreadUpdateChecker();
|
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 |