mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-12 16:27:34 +00:00
Stuff! (It's in the changelogs.)
This commit is contained in:
1 parent
533d7d55a8
commit
5090aa76ea
11 files changed
+116
-174
No files matched your search
@@ -1,22 +1,20 @@
|
||||
package magicbees.main;
|
||||
|
||||
import magicbees.client.render.BeeRenderEffect;
|
||||
import magicbees.client.render.EffectJarRenderer;
|
||||
import magicbees.tileentity.TileEntityEffectJar;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.client.MinecraftForgeClient;
|
||||
import cpw.mods.fml.client.registry.ClientRegistry;
|
||||
import cpw.mods.fml.client.registry.RenderingRegistry;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import forestry.core.render.TextureManager;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class ClientProxy extends CommonProxy
|
||||
{
|
||||
|
||||
public ClientProxy() { }
|
||||
|
||||
@Override
|
||||
{ @Override
|
||||
public void registerRenderers()
|
||||
{
|
||||
super.registerRenderers();
|
||||
@@ -25,31 +23,4 @@ public class ClientProxy extends CommonProxy
|
||||
MinecraftForgeClient.registerItemRenderer(Config.effectJar.blockID, EffectJarRenderer.instance);
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEffectJar.class, EffectJarRenderer.instance);
|
||||
}
|
||||
|
||||
@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 (MagicBees.getConfig().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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user