Remove unused imports, remove an unused and mileading line in EntityWasp

This commit is contained in:
Cheeserolls 2015-04-25 17:24:55 +01:00
parent b0037b8fdf
commit 25f03d5633
5 changed files with 1 additions and 18 deletions

View file

@ -11,13 +11,10 @@ package biomesoplenty.client.handler;
import biomesoplenty.client.model.ModelBiomeFinder; import biomesoplenty.client.model.ModelBiomeFinder;
import biomesoplenty.client.texture.TextureAnimationFrame; import biomesoplenty.client.texture.TextureAnimationFrame;
import biomesoplenty.client.util.TextureUtils; import biomesoplenty.client.util.TextureUtils;
import net.minecraft.client.renderer.block.model.ModelBlock;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.client.renderer.texture.TextureMap; import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.client.resources.model.IBakedModel; import net.minecraft.client.resources.model.IBakedModel;
import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.util.IRegistry; import net.minecraft.util.IRegistry;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.event.ModelBakeEvent; import net.minecraftforge.client.event.ModelBakeEvent;
import net.minecraftforge.client.event.TextureStitchEvent; import net.minecraftforge.client.event.TextureStitchEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

View file

@ -10,11 +10,6 @@ package biomesoplenty.client.texture;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import com.google.common.collect.Lists;
import biomesoplenty.client.util.TextureUtils; import biomesoplenty.client.util.TextureUtils;
import biomesoplenty.core.BiomesOPlenty; import biomesoplenty.core.BiomesOPlenty;
@ -23,7 +18,6 @@ import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.client.renderer.texture.TextureUtil; import net.minecraft.client.renderer.texture.TextureUtil;
import net.minecraft.client.resources.IResource; import net.minecraft.client.resources.IResource;
import net.minecraft.client.resources.IResourceManager; import net.minecraft.client.resources.IResourceManager;
import net.minecraft.client.resources.data.AnimationFrame;
import net.minecraft.client.resources.data.AnimationMetadataSection; import net.minecraft.client.resources.data.AnimationMetadataSection;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;

View file

@ -9,16 +9,12 @@
package biomesoplenty.client.util; package biomesoplenty.client.util;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List; import java.util.List;
import net.minecraft.client.renderer.block.model.BakedQuad;
import net.minecraft.client.renderer.texture.TextureAtlasSprite; import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.client.resources.model.IBakedModel; import net.minecraft.client.resources.model.IBakedModel;
import net.minecraft.client.resources.model.SimpleBakedModel; import net.minecraft.client.resources.model.SimpleBakedModel;
import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumFacing;
import biomesoplenty.client.texture.TextureAnimationFrame;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;

View file

@ -9,7 +9,6 @@
package biomesoplenty.client.util; package biomesoplenty.client.util;
import biomesoplenty.client.texture.TextureAnimationFrame; import biomesoplenty.client.texture.TextureAnimationFrame;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.client.renderer.texture.TextureMap; import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.Side;

View file

@ -353,9 +353,6 @@ public class EntityWasp extends EntityFlying implements IMob {
EntityLivingBase attackTarget = this.wasp.getAttackTarget(); EntityLivingBase attackTarget = this.wasp.getAttackTarget();
this.targetPos.setTarget(attackTarget.posX, attackTarget.posY, attackTarget.posZ); this.targetPos.setTarget(attackTarget.posX, attackTarget.posY, attackTarget.posZ);
// give up if the target is too far away
// double followRange = this.wasp.getEntityAttribute(SharedMonsterAttributes.followRange).getAttributeValue();
// damage the target if it's in range, and it has been long enough since the last attack // damage the target if it's in range, and it has been long enough since the last attack
double damageRange = (double)(this.wasp.width + attackTarget.width); double damageRange = (double)(this.wasp.width + attackTarget.width);
if (this.attackTick <= 0 && this.targetPos.dist < damageRange) if (this.attackTick <= 0 && this.targetPos.dist < damageRange)