Optimize cosmetics
This commit is contained in:
parent
7147735ecd
commit
d8751e939e
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user