1
0
Fork 0

skibidi toilet rizz

This commit is contained in:
HoosierTransfer 2024-03-17 20:10:55 -04:00
parent ec860a0834
commit 98914879aa
2 changed files with 40502 additions and 40540 deletions

File diff suppressed because it is too large Load Diff

View File

@ -23,6 +23,7 @@ import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.model.ModelCow;
import net.minecraft.client.renderer.EntityRenderer;
import net.minecraft.client.renderer.GLAllocation;
import net.minecraft.client.renderer.Tessellator;
@ -36,6 +37,7 @@ import net.minecraft.scoreboard.ScorePlayerTeam;
import net.minecraft.scoreboard.Team;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.MathHelper;
import net.minecraft.util.ResourceLocation;
/**+
* This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code.
@ -61,12 +63,15 @@ public abstract class RendererLivingEntity<T extends EntityLivingBase> extends R
private static final Logger logger = LogManager.getLogger();
private static final DynamicTexture field_177096_e = new DynamicTexture(16, 16);
protected ModelBase mainModel;
protected ModelBase baseModel; // HoosierTransfer mod
protected FloatBuffer brightnessBuffer = GLAllocation.createDirectFloatBuffer(4);
protected List<LayerRenderer<T>> layerRenderers = Lists.newArrayList();
protected boolean renderOutlines = false;
ResourceLocation textureLocation; // HoosierTransfer mod
public RendererLivingEntity(RenderManager renderManagerIn, ModelBase modelBaseIn, float shadowSizeIn) {
super(renderManagerIn);
this.baseModel = modelBaseIn;
this.mainModel = modelBaseIn;
this.shadowSize = shadowSizeIn;
}
@ -249,12 +254,23 @@ public abstract class RendererLivingEntity<T extends EntityLivingBase> extends R
// f4,
// f9,
// 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 flag1 = !flag && !entitylivingbase.isInvisibleToPlayer(Minecraft.getMinecraft().thePlayer);
if (flag || flag1) {
if (!this.bindEntityTexture(entitylivingbase)) {
return;
}
this.bindTexture(textureLocation);
// if (!this.bindEntityTexture(entitylivingbase)) {
// return;
// }
if (flag1 && DeferredStateManager.isDeferredRenderer()) {
if (!DeferredStateManager.isEnableShadowRender()
&& DeferredStateManager.forwardCallbackHandler != null) {
@ -280,7 +296,7 @@ public abstract class RendererLivingEntity<T extends EntityLivingBase> extends R
GlStateManager.enableAlpha();
GlStateManager.alphaFunc(GL_GREATER, 0.003921569F);
GlStateManager.color(1.0F, 1.0F, 1.0F, 0.15F);
RendererLivingEntity.this.bindEntityTexture(entitylivingbase);
RendererLivingEntity.this.bindTexture(textureLocation);
RendererLivingEntity.this.mainModel.swingProgress = RendererLivingEntity.this
.getSwingProgress(entitylivingbase, f1);
RendererLivingEntity.this.mainModel.isRiding = entitylivingbase.isRiding();