Java Code Examples for net.minecraft.entity.passive.EntitySheep.func_70896_n()

The following are Jave code examples for showing how to use func_70896_n() of the net.minecraft.entity.passive.EntitySheep class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: RuneCraftery   File: ItemDye.java   View Source Code Vote up 5 votes
public boolean func_111207_a(ItemStack p_111207_1_, EntityPlayer p_111207_2_, EntityLivingBase p_111207_3_) {
   if(p_111207_3_ instanceof EntitySheep) {
      EntitySheep var4 = (EntitySheep)p_111207_3_;
      int var5 = BlockColored.func_72238_e_(p_111207_1_.func_77960_j());
      if(!var4.func_70892_o() && var4.func_70896_n() != var5) {
         var4.func_70891_b(var5);
         --p_111207_1_.field_77994_a;
      }

      return true;
   } else {
      return false;
   }
}
 
Example 2
Project: RuneCraftery   File: RenderSheep.java   View Source Code Vote up 5 votes
protected int func_77113_a(EntitySheep p_77113_1_, int p_77113_2_, float p_77113_3_) {
   if(p_77113_2_ == 0 && !p_77113_1_.func_70892_o()) {
      this.func_110776_a(field_110885_a);
      float var4 = 1.0F;
      int var5 = p_77113_1_.func_70896_n();
      GL11.glColor3f(var4 * EntitySheep.field_70898_d[var5][0], var4 * EntitySheep.field_70898_d[var5][1], var4 * EntitySheep.field_70898_d[var5][2]);
      return 1;
   } else {
      return -1;
   }
}