package com.yolp900.itsjustacharm.common; import com.yolp900.itsjustacharm.client.particles.ModParticle; import com.yolp900.itsjustacharm.common.affinities.ModAffinities; import com.yolp900.itsjustacharm.common.affinities.affinityInteractionHandlers.ModAffinityInteractionHandlers; import com.yolp900.itsjustacharm.common.avchievemetns.AchievementHandler; import com.yolp900.itsjustacharm.common.blocks.ModBlocks; import com.yolp900.itsjustacharm.common.crafting.ModRecipes; import com.yolp900.itsjustacharm.common.events.EventHandler; import com.yolp900.itsjustacharm.common.integration.ModIntegrations; import com.yolp900.itsjustacharm.common.items.ModItems; import com.yolp900.itsjustacharm.common.network.NetworkHandler; import com.yolp900.itsjustacharm.common.oreDict.OreDictHandler; import com.yolp900.itsjustacharm.common.sounds.SoundHandler; import com.yolp900.itsjustacharm.common.tileEntities.ModTileEntities; import com.yolp900.itsjustacharm.config.ModConfig; import com.yolp900.itsjustacharm.reference.LibSounds; import com.yolp900.itsjustacharm.reference.LibTexts; import net.minecraft.client.Minecraft; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; public class CommonProxy { public void preInit(FMLPreInitializationEvent event) { EventHandler.registerEvents(); ModConfig.init(event.getSuggestedConfigurationFile()); ModBlocks.registerBlocks(); ModItems.registerItems(); NetworkHandler.init(); SoundHandler.registerSounds(); OreDictHandler.registerOreDict(); ModAffinities.registerAffinities(); ModIntegrations.preInit(); } public void init(FMLInitializationEvent event) { ModTileEntities.registerTileEntities(); ModRecipes.registerRecipes(); AchievementHandler.registerAchievements(); ModAffinityInteractionHandlers.init(); ModIntegrations.init(); } public void postInit(FMLPostInitializationEvent event) { ModIntegrations.postInit(); } public EntityPlayer getClientPlayer() { return null; } public Minecraft getMinecraft() { return null; } public void particle(ModParticle particle) { } public void playSound(LibSounds sound, World world, EntityPlayer player, double x, double y, double z, double volume, double pitch) { } public void playSound(LibSounds sound, World world, double x, double y, double z, double volume, double pitch, boolean distanceDelay) { } public void chatMessage(LibTexts.ChatMessages message) { } public boolean isPlayerPressingSneak() { return false; } }