Brushing up some rough ends, re-adding bee texture effects for new effects, adjusting drop rates.

This commit is contained in:
MysteriousAges committed 2012-12-29 17:50:58 -08:00
1 parent 9eb9a0a686
commit f91dd7f625
17 files changed
+595 -216

No files matched your search

@@ -1,8 +1,12 @@
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;
import forestry.apiculture.render.EntityBeeFX;
import forestry.core.proxy.Proxies;
@SideOnly(Side.CLIENT)
public class ClientProxy extends CommonProxy
@@ -14,7 +18,33 @@ public class ClientProxy extends CommonProxy
public void preloadTextures()
{
// Preload the TCBees items file
MinecraftForgeClient.preloadTexture(TCBEES_ITEMS);
MinecraftForgeClient.preloadTexture(TCBEES_ITEMSPNG);
}
@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.object.configFlags.drawParticleEffects)
{
double spawnX = xPos;
double spawnY = yPos;
double spawnZ = zPos;
if (world.rand.nextBoolean())
{
spawnX += 0.5;
spawnY += 0.5;
spawnZ += 0.5;
}
else
{
spawnX += world.rand.nextInt(rangeX * 2) - rangeX;
spawnY += world.rand.nextInt(rangeY);
spawnZ += world.rand.nextInt(rangeZ * 2) - rangeY;
}
this.getClientInstance().effectRenderer.addEffect(new BeeRenderEffect(world, spawnX, spawnY, spawnZ, 0f, 0f, 0f, colour));
}
}
}