mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 15:37:41 +00:00
Horse rendering fixed (kinda)
This commit is contained in:
@@ -5,7 +5,7 @@ import java.util.List;
|
||||
|
||||
public class ConfigConstants {
|
||||
|
||||
public static final String version = "25w13a";
|
||||
public static final String version = "25w13b";
|
||||
public static final String mainMenuString = "Eaglercraft " + version;
|
||||
|
||||
public static final String forkMe = "https://git.zelz.net/catfoolyou/Project164";
|
||||
|
||||
@@ -7,7 +7,7 @@ import net.minecraft.src.RenderEngine;
|
||||
|
||||
public class TextureLocation {
|
||||
|
||||
private String path;
|
||||
public String path;
|
||||
private int glObject;
|
||||
|
||||
public TextureLocation(String path) {
|
||||
|
||||
@@ -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;
|
||||
@@ -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()
|
||||
|
||||
@@ -88,7 +88,7 @@ public class RenderHorse extends RenderLiving
|
||||
if (var3 == null)
|
||||
{
|
||||
var3 = new TextureLocation(var2);
|
||||
//Minecraft.getMinecraft().getTextureManager().loadTexture(var3, new LayeredTexture(par1EntityHorse.getVariantTexturePaths()));
|
||||
var3.bindTexture();
|
||||
field_110852_a.put(var2, var3);
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ public class RenderHorse extends RenderLiving
|
||||
|
||||
@Override
|
||||
protected void bindTexture(EntityLivingBase par1EntityLiving) {
|
||||
|
||||
this.func_110849_a((EntityHorse) par1EntityLiving).bindTexture();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user