Optimize cosmetics

This commit is contained in:
ThisIsALegitUsername 2023-02-11 19:52:33 +00:00
parent 7147735ecd
commit d8751e939e
6 changed files with 11 additions and 21 deletions

View File

@ -1,6 +1,8 @@
package dev.resent.cosmetic;
import net.minecraft.client.entity.AbstractClientPlayer;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.renderer.entity.RenderPlayer;
import net.minecraft.client.renderer.entity.layers.LayerRenderer;
@ -21,8 +23,15 @@ public abstract class CosmeticBase implements LayerRenderer<AbstractClientPlayer
public abstract void render(AbstractClientPlayer player, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale);
@Override
public boolean shouldCombineTextures() {
return false;
public boolean shouldCombineTextures() { return false; }
public class CosmeticModelBase extends ModelBase{
protected final ModelBiped playerModel;
public CosmeticModelBase(RenderPlayer player){
this.playerModel = player.getMainModel();
}
}
}

View File

@ -1,15 +0,0 @@
package dev.resent.cosmetic;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.renderer.entity.RenderPlayer;
public class CosmeticModelBase extends ModelBase{
protected final ModelBiped playerModel;
public CosmeticModelBase(RenderPlayer player){
this.playerModel = player.getMainModel();
}
}

View File

@ -2,7 +2,6 @@ package dev.resent.cosmetic.impl;
import dev.resent.cosmetic.CosmeticBase;
import dev.resent.cosmetic.CosmeticController;
import dev.resent.cosmetic.CosmeticModelBase;
import net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.AbstractClientPlayer;

View File

@ -2,7 +2,6 @@ package dev.resent.cosmetic.impl;
import dev.resent.cosmetic.CosmeticBase;
import dev.resent.cosmetic.CosmeticController;
import dev.resent.cosmetic.CosmeticModelBase;
import net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager;
import net.minecraft.client.entity.AbstractClientPlayer;
import net.minecraft.client.model.ModelRenderer;

View File

@ -2,7 +2,6 @@ package dev.resent.cosmetic.impl;
import dev.resent.cosmetic.CosmeticBase;
import dev.resent.cosmetic.CosmeticController;
import dev.resent.cosmetic.CosmeticModelBase;
import dev.resent.util.render.Color;
import net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager;
import net.minecraft.client.Minecraft;

View File

@ -2,7 +2,6 @@ package dev.resent.cosmetic.impl;
import dev.resent.cosmetic.CosmeticBase;
import dev.resent.cosmetic.CosmeticController;
import dev.resent.cosmetic.CosmeticModelBase;
import net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager;
import net.minecraft.client.entity.AbstractClientPlayer;
import net.minecraft.client.model.ModelRenderer;