mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 08:47:40 +00:00
25w14b fix rendering bugs (for real)
This commit is contained in:
@@ -8,12 +8,12 @@ public class EntityHorse extends EntityAnimal implements IInvBasic
|
||||
private static final IEntitySelector horseBreedingSelector = new EntityHorseBredSelector();
|
||||
private static final Attribute horseJumpStrength = (new RangedAttribute("horse.jumpStrength", 0.7D, 0.0D, 2.0D)).func_111117_a("Jump Strength").setShouldWatch(true);
|
||||
private static final String[] horseArmorTextures = new String[] {null, "textures/entity/horse/armor/horse_armor_iron.png", "textures/entity/horse/armor/horse_armor_gold.png", "textures/entity/horse/armor/horse_armor_diamond.png"};
|
||||
private static final String[] field_110273_bx = new String[] {"", "meo", "goo", "dio"};
|
||||
//private static final String[] field_110273_bx = new String[] {"", "meo", "goo", "dio"};
|
||||
private static final int[] armorValues = new int[] {0, 5, 7, 11};
|
||||
private static final String[] horseTextures = new String[] {"textures/entity/horse/horse_white.png", "textures/entity/horse/horse_creamy.png", "textures/entity/horse/horse_chestnut.png", "textures/entity/horse/horse_brown.png", "textures/entity/horse/horse_black.png", "textures/entity/horse/horse_gray.png", "textures/entity/horse/horse_darkbrown.png"};
|
||||
private static final String[] field_110269_bA = new String[] {"hwh", "hcr", "hch", "hbr", "hbl", "hgr", "hdb"};
|
||||
//private static final String[] field_110269_bA = new String[] {"hwh", "hcr", "hch", "hbr", "hbl", "hgr", "hdb"};
|
||||
private static final String[] horseMarkingTextures = new String[] {null, "textures/entity/horse/horse_markings_white.png", "textures/entity/horse/horse_markings_whitefield.png", "textures/entity/horse/horse_markings_whitedots.png", "textures/entity/horse/horse_markings_blackdots.png"};
|
||||
private static final String[] field_110292_bC = new String[] {"", "wo_", "wmo", "wdo", "bdo"};
|
||||
//private static final String[] field_110292_bC = new String[] {"", "wo_", "wmo", "wdo", "bdo"};
|
||||
private int eatingHaystackCounter;
|
||||
private int openMouthCounter;
|
||||
private int jumpRearingCounter;
|
||||
@@ -345,7 +345,7 @@ public class EntityHorse extends EntityAnimal implements IInvBasic
|
||||
private void func_110266_cB()
|
||||
{
|
||||
this.openHorseMouth();
|
||||
this.worldObj.playSoundAtEntity(this, "eating", 1.0F, 1.0F + (this.rand.nextFloat() - this.rand.nextFloat()) * 0.2F);
|
||||
this.worldObj.playSoundAtEntity(this, "random.eat", 1.0F, 1.0F + (this.rand.nextFloat() - this.rand.nextFloat()) * 0.2F);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -644,7 +644,7 @@ public class EntityHorse extends EntityAnimal implements IInvBasic
|
||||
|
||||
private void setHorseTexturePaths()
|
||||
{
|
||||
this.field_110286_bQ = "horse/";
|
||||
this.field_110286_bQ = "";
|
||||
this.field_110280_bR[0] = null;
|
||||
this.field_110280_bR[1] = null;
|
||||
this.field_110280_bR[2] = null;
|
||||
@@ -657,19 +657,23 @@ public class EntityHorse extends EntityAnimal implements IInvBasic
|
||||
var3 = var2 & 255;
|
||||
int var4 = (var2 & 65280) >> 8;
|
||||
this.field_110280_bR[0] = horseTextures[var3];
|
||||
this.field_110286_bQ = this.field_110286_bQ + field_110269_bA[var3];
|
||||
this.field_110286_bQ = this.field_110286_bQ + horseTextures[var3];
|
||||
this.field_110280_bR[1] = horseMarkingTextures[var4];
|
||||
this.field_110286_bQ = this.field_110286_bQ + field_110292_bC[var4];
|
||||
if(horseMarkingTextures[var4] != null){
|
||||
//this.field_110286_bQ = this.field_110286_bQ + horseMarkingTextures[var4];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.field_110280_bR[0] = "";
|
||||
this.field_110286_bQ = this.field_110286_bQ + "_" + var1 + "_";
|
||||
this.field_110286_bQ = horseTextures[0];
|
||||
}
|
||||
|
||||
var3 = this.func_110241_cb();
|
||||
this.field_110280_bR[2] = horseArmorTextures[var3];
|
||||
this.field_110286_bQ = this.field_110286_bQ + field_110273_bx[var3];
|
||||
if(horseArmorTextures[var3] != null){
|
||||
//this.field_110286_bQ = this.field_110286_bQ + horseArmorTextures[var3];
|
||||
}
|
||||
}
|
||||
|
||||
public String getHorseTexture()
|
||||
|
||||
Reference in New Issue
Block a user