revert
This commit is contained in:
parent
98914879aa
commit
542dcb27a8
|
@ -23,7 +23,7 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
teavm.js {
|
teavm.js {
|
||||||
obfuscated = true
|
obfuscated = false
|
||||||
sourceMap = false
|
sourceMap = false
|
||||||
targetFileName = "../classes.js"
|
targetFileName = "../classes.js"
|
||||||
optimization = org.teavm.gradle.api.OptimizationLevel.AGGRESSIVE
|
optimization = org.teavm.gradle.api.OptimizationLevel.AGGRESSIVE
|
||||||
|
|
1331869
javascript/classes.js
1331869
javascript/classes.js
File diff suppressed because it is too large
Load Diff
|
@ -23,7 +23,6 @@ import net.minecraft.client.entity.EntityPlayerSP;
|
||||||
import net.minecraft.client.gui.FontRenderer;
|
import net.minecraft.client.gui.FontRenderer;
|
||||||
import net.minecraft.client.model.ModelBase;
|
import net.minecraft.client.model.ModelBase;
|
||||||
import net.minecraft.client.model.ModelBiped;
|
import net.minecraft.client.model.ModelBiped;
|
||||||
import net.minecraft.client.model.ModelCow;
|
|
||||||
import net.minecraft.client.renderer.EntityRenderer;
|
import net.minecraft.client.renderer.EntityRenderer;
|
||||||
import net.minecraft.client.renderer.GLAllocation;
|
import net.minecraft.client.renderer.GLAllocation;
|
||||||
import net.minecraft.client.renderer.Tessellator;
|
import net.minecraft.client.renderer.Tessellator;
|
||||||
|
@ -63,15 +62,12 @@ public abstract class RendererLivingEntity<T extends EntityLivingBase> extends R
|
||||||
private static final Logger logger = LogManager.getLogger();
|
private static final Logger logger = LogManager.getLogger();
|
||||||
private static final DynamicTexture field_177096_e = new DynamicTexture(16, 16);
|
private static final DynamicTexture field_177096_e = new DynamicTexture(16, 16);
|
||||||
protected ModelBase mainModel;
|
protected ModelBase mainModel;
|
||||||
protected ModelBase baseModel; // HoosierTransfer mod
|
|
||||||
protected FloatBuffer brightnessBuffer = GLAllocation.createDirectFloatBuffer(4);
|
protected FloatBuffer brightnessBuffer = GLAllocation.createDirectFloatBuffer(4);
|
||||||
protected List<LayerRenderer<T>> layerRenderers = Lists.newArrayList();
|
protected List<LayerRenderer<T>> layerRenderers = Lists.newArrayList();
|
||||||
protected boolean renderOutlines = false;
|
protected boolean renderOutlines = false;
|
||||||
ResourceLocation textureLocation; // HoosierTransfer mod
|
|
||||||
|
|
||||||
public RendererLivingEntity(RenderManager renderManagerIn, ModelBase modelBaseIn, float shadowSizeIn) {
|
public RendererLivingEntity(RenderManager renderManagerIn, ModelBase modelBaseIn, float shadowSizeIn) {
|
||||||
super(renderManagerIn);
|
super(renderManagerIn);
|
||||||
this.baseModel = modelBaseIn;
|
|
||||||
this.mainModel = modelBaseIn;
|
this.mainModel = modelBaseIn;
|
||||||
this.shadowSize = shadowSizeIn;
|
this.shadowSize = shadowSizeIn;
|
||||||
}
|
}
|
||||||
|
@ -254,23 +250,13 @@ public abstract class RendererLivingEntity<T extends EntityLivingBase> extends R
|
||||||
// f4,
|
// f4,
|
||||||
// f9,
|
// f9,
|
||||||
// 0.0625
|
// 0.0625
|
||||||
// Hoosiertransfer mod
|
|
||||||
if (entitylivingbase.hasCustomName()) {
|
|
||||||
this.mainModel = new ModelCow();
|
|
||||||
} else {
|
|
||||||
this.mainModel = this.baseModel;
|
|
||||||
}
|
|
||||||
// textureLocation = this.getEntityTexture(entitylivingbase);
|
|
||||||
textureLocation = new ResourceLocation("textures/entity/cow/cow.png");
|
|
||||||
|
|
||||||
|
|
||||||
boolean flag = !entitylivingbase.isInvisible();
|
boolean flag = !entitylivingbase.isInvisible();
|
||||||
boolean flag1 = !flag && !entitylivingbase.isInvisibleToPlayer(Minecraft.getMinecraft().thePlayer);
|
boolean flag1 = !flag && !entitylivingbase.isInvisibleToPlayer(Minecraft.getMinecraft().thePlayer);
|
||||||
if (flag || flag1) {
|
if (flag || flag1) {
|
||||||
this.bindTexture(textureLocation);
|
if (!this.bindEntityTexture(entitylivingbase)) {
|
||||||
// if (!this.bindEntityTexture(entitylivingbase)) {
|
return;
|
||||||
// return;
|
}
|
||||||
// }
|
|
||||||
if (flag1 && DeferredStateManager.isDeferredRenderer()) {
|
if (flag1 && DeferredStateManager.isDeferredRenderer()) {
|
||||||
if (!DeferredStateManager.isEnableShadowRender()
|
if (!DeferredStateManager.isEnableShadowRender()
|
||||||
&& DeferredStateManager.forwardCallbackHandler != null) {
|
&& DeferredStateManager.forwardCallbackHandler != null) {
|
||||||
|
@ -296,7 +282,7 @@ public abstract class RendererLivingEntity<T extends EntityLivingBase> extends R
|
||||||
GlStateManager.enableAlpha();
|
GlStateManager.enableAlpha();
|
||||||
GlStateManager.alphaFunc(GL_GREATER, 0.003921569F);
|
GlStateManager.alphaFunc(GL_GREATER, 0.003921569F);
|
||||||
GlStateManager.color(1.0F, 1.0F, 1.0F, 0.15F);
|
GlStateManager.color(1.0F, 1.0F, 1.0F, 0.15F);
|
||||||
RendererLivingEntity.this.bindTexture(textureLocation);
|
RendererLivingEntity.this.bindEntityTexture(entitylivingbase);
|
||||||
RendererLivingEntity.this.mainModel.swingProgress = RendererLivingEntity.this
|
RendererLivingEntity.this.mainModel.swingProgress = RendererLivingEntity.this
|
||||||
.getSwingProgress(entitylivingbase, f1);
|
.getSwingProgress(entitylivingbase, f1);
|
||||||
RendererLivingEntity.this.mainModel.isRiding = entitylivingbase.isRiding();
|
RendererLivingEntity.this.mainModel.isRiding = entitylivingbase.isRiding();
|
||||||
|
|
Loading…
Reference in New Issue