Files
MagicBees/thaumicbees_src/thaumicbees/main/ClientProxy.java
T
MysteriousAges bb5319f177 Many things.
*Added Moon phase influence for mutations
*New branch - Skulking
*Partial new branch - Vis (Aware only)
*Split TC Compat stuff into different package (Hopefully the only place I'll have to update stuff when TC3 API is out)
*Enhancing configs to add items to Thaumaturge's backpack & disable auto-adding of items to other backpacks
*New drops, legit way to craft Bottle o' Enchanting
*Removing BeeClassification - Bulit in stuff FTW.
2013-01-19 03:29:47 -08:00

50 lines
1.3 KiB
Java

package thaumicbees.main;
import thaumicbees.main.render.BeeRenderEffect;
import net.minecraft.world.World;
import net.minecraftforge.client.MinecraftForgeClient;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class ClientProxy extends CommonProxy
{
public ClientProxy() { }
@Override
public void preloadTextures()
{
// Preload the TCBees items file
MinecraftForgeClient.preloadTexture(TCBEES_ITEMS_IMAGE);
MinecraftForgeClient.preloadTexture(TCBEES_LIQUIDS_IMAGE);
}
@Override
public void drawBeeEffects(World world, double xPos, double yPos, double zPos, int colour, int rangeX, int rangeY, int rangeZ)
{
// drawParticleEffects flag pulled from Forestry after configs
if (ThaumicBees.getInstanceConfig().DrawParticleEffects)
{
double spawnX;
double spawnY;
double spawnZ;
if (world.rand.nextBoolean())
{
spawnX = xPos + 0.5;
spawnY = yPos + 0.75;
spawnZ = zPos + 0.5;
}
else
{
spawnX = xPos + world.rand.nextInt(rangeX * 2) - rangeX;
spawnY = yPos + world.rand.nextInt(rangeY);
spawnZ = zPos + world.rand.nextInt(rangeZ * 2) - rangeZ;
}
this.getClientInstance().effectRenderer.addEffect(new BeeRenderEffect(world, spawnX, spawnY, spawnZ, 0f, 0f, 0f, colour));
}
}
}