package me.ichun.mods.sync.client.entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.EnumHandSide; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; import me.ichun.mods.sync.client.model.ModelPixel; import javax.annotation.Nullable; import java.util.ArrayList; import java.util.Arrays; public class EntityShellDestruction extends EntityLivingBase { public ResourceLocation txLocation; public float yaw; public float renderYaw; public float pitch; public float limbSwingg; public float limbSwinggAmount; public int progress; public ModelPixel model; public EntityShellDestruction(World par1World) { super(par1World); progress = 0; txLocation = null; model = new ModelPixel(); } public EntityShellDestruction(World par1World, float yw, float ry, float p, float ls, float lsa, ResourceLocation tx) { super(par1World); progress = 0; txLocation = tx; yaw = yw; renderYaw = ry; pitch = p; limbSwingg = ls; limbSwinggAmount = lsa; model = new ModelPixel(); } @Override public void onUpdate() { progress++; if(progress > 110) { setDead(); } } @Override public EnumHandSide getPrimaryHand() { return EnumHandSide.RIGHT; } @Override public boolean isEntityAlive() { return !this.isDead; } @Override public Iterable<ItemStack> getArmorInventoryList() { return new ArrayList<>(); } @Nullable @Override public ItemStack getItemStackFromSlot(EntityEquipmentSlot slotIn) { return null; } @Override public void setItemStackToSlot(EntityEquipmentSlot slotIn, @Nullable ItemStack stack) { } @Override public void setHealth(float par1) { } @Override public boolean writeToNBTOptional(NBTTagCompound par1NBTTagCompound) { return false; } @Override public void readEntityFromNBT(NBTTagCompound nbttagcompound) {} @Override public void writeEntityToNBT(NBTTagCompound nbttagcompound) {} }