mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 17:23:07 +00:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user