Moved model scale parts into a single ModelScale class, similar to ModelRotate.

Added NPC model data interfaces to the API.
This commit is contained in:
Luis C.M committed 2023-03-17 02:36:28 -05:00
1 parent 2ef93dd35f
commit f0b33cf913
63 files changed
+412 -283

No files matched your search

@@ -4,8 +4,8 @@ import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.ResourceLocation;
import noppes.npcs.ModelData;
import noppes.npcs.ModelPartData;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
import noppes.npcs.client.ClientProxy;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.entity.EntityCustomNpc;
@@ -5,7 +5,7 @@ import net.minecraft.client.model.ModelBox;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.renderer.GLAllocation;
import net.minecraft.client.renderer.Tessellator;
import noppes.npcs.ModelLimbConfig;
import noppes.npcs.entity.data.ModelScalePart;
import org.lwjgl.opengl.GL11;
public class ModelScaleRenderer extends ModelRenderer {
@@ -15,7 +15,7 @@ public class ModelScaleRenderer extends ModelRenderer {
/** The GL display list rendered by the Tessellator for this model */
public int displayList;
protected ModelLimbConfig config;
protected ModelScalePart config;
public float x, y, z;
@@ -28,7 +28,7 @@ public class ModelScaleRenderer extends ModelRenderer {
this.setTextureOffset(par2, par3);
}
public void setConfig(ModelLimbConfig config, float x, float y, float z){
public void setConfig(ModelScalePart config, float x, float y, float z){
this.config = config;
this.x = x;
this.y = y;