package net.minecraft.client.model; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Random; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; public abstract class ModelBase { public float swingProgress; public boolean isRiding; /** This is a list of all the boxes (ModelRenderer.class) in the current model. */ public List boxList = new ArrayList(); public boolean isChild = true; /** A mapping for all texture offsets */ private Map modelTextureMap = new HashMap(); public int textureWidth = 64; public int textureHeight = 32; private static final String __OBFID = "CL_00000845"; /** * Sets the models various rotation angles then renders the model. */ public void render(Entity p_78088_1_, float p_78088_2_, float p_78088_3_, float p_78088_4_, float p_78088_5_, float p_78088_6_, float p_78088_7_) {} /** * Sets the model's various rotation angles. For bipeds, par1 and par2 are used for animating the movement of arms * and legs, where par1 represents the time(so that arms and legs swing back and forth) and par2 represents how * "far" arms and legs can swing at most. */ public void setRotationAngles(float p_78087_1_, float p_78087_2_, float p_78087_3_, float p_78087_4_, float p_78087_5_, float p_78087_6_, Entity p_78087_7_) {} /** * Used for easily adding entity-dependent animations. The second and third float params here are the same second * and third as in the setRotationAngles method. */ public void setLivingAnimations(EntityLivingBase p_78086_1_, float p_78086_2_, float p_78086_3_, float p_78086_4_) {} public ModelRenderer getRandomModelBox(Random p_85181_1_) { return (ModelRenderer)this.boxList.get(p_85181_1_.nextInt(this.boxList.size())); } protected void setTextureOffset(String p_78085_1_, int p_78085_2_, int p_78085_3_) { this.modelTextureMap.put(p_78085_1_, new TextureOffset(p_78085_2_, p_78085_3_)); } public TextureOffset getTextureOffset(String p_78084_1_) { return (TextureOffset)this.modelTextureMap.get(p_78084_1_); } }