mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 19:29:17 +00:00
Close #477 Auto-Format code with new formatting settings
This commit is contained in:
1 parent
8e92d16320
commit
5b8b0c78b0
763 files changed
+13174
-8868
No files matched your search
@@ -4,13 +4,19 @@
|
||||
* are made available under the terms of the GNU Lesser Public License v3
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.gnu.org/licenses/lgpl-3.0.txt
|
||||
*
|
||||
*
|
||||
* Various Contributors including, but not limited to:
|
||||
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
|
||||
******************************************************************************/
|
||||
package forestry.apiculture.proxy;
|
||||
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import net.minecraftforge.client.MinecraftForgeClient;
|
||||
|
||||
import cpw.mods.fml.client.registry.RenderingRegistry;
|
||||
|
||||
import forestry.apiculture.entities.EntityBee;
|
||||
import forestry.apiculture.render.BeeItemRenderer;
|
||||
import forestry.apiculture.render.EntityBeeFX;
|
||||
@@ -22,15 +28,12 @@ import forestry.core.interfaces.IBlockRenderer;
|
||||
import forestry.core.render.RenderAnalyzer;
|
||||
import forestry.core.render.TextureManager;
|
||||
import forestry.plugins.PluginApiculture;
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.client.MinecraftForgeClient;
|
||||
|
||||
public class ClientProxyApiculture extends ProxyApiculture {
|
||||
|
||||
@Override
|
||||
public void initializeRendering() {
|
||||
if(PluginApiculture.fancyRenderedBees) {
|
||||
if (PluginApiculture.fancyRenderedBees) {
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityBee.class, new RenderBee());
|
||||
|
||||
MinecraftForgeClient.registerItemRenderer(ForestryItem.beeDroneGE.item(), new BeeItemRenderer());
|
||||
@@ -41,8 +44,9 @@ public class ClientProxyApiculture extends ProxyApiculture {
|
||||
|
||||
@Override
|
||||
public void addBeeHiveFX(String icon, World world, double xCoord, double yCoord, double zCoord, int color, int areaX, int areaY, int areaZ) {
|
||||
if (!Config.enableParticleFX)
|
||||
if (!Config.enableParticleFX) {
|
||||
return;
|
||||
}
|
||||
|
||||
EntityFX fx;
|
||||
|
||||
@@ -62,14 +66,15 @@ public class ClientProxyApiculture extends ProxyApiculture {
|
||||
|
||||
@Override
|
||||
public void addBeeSwarmFX(String icon, World world, double xCoord, double yCoord, double zCoord, int color) {
|
||||
if (!Config.enableParticleFX)
|
||||
if (!Config.enableParticleFX) {
|
||||
return;
|
||||
}
|
||||
|
||||
EntityFX fx;
|
||||
|
||||
if (world.rand.nextBoolean())
|
||||
if (world.rand.nextBoolean()) {
|
||||
fx = new EntityBeeFX(world, xCoord, yCoord, zCoord, 0.0f, 0.0f, 0.0f, color);
|
||||
else {
|
||||
} else {
|
||||
|
||||
double spawnX = xCoord + world.rand.nextInt(4) - 2;
|
||||
double spawnY = yCoord + world.rand.nextInt(4) - 2;
|
||||
|
||||
Reference in new issue
Block a user