mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 03:23:04 +00:00
1.7.10 Files
Files added
This commit is contained in:
1 parent
393ea9b463
commit
a31efb2dc3
1768 files changed
+84831
No files matched your search
@@ -0,0 +1,41 @@
|
||||
package noppes.npcs.client.model.part;
|
||||
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import noppes.npcs.ModelData;
|
||||
import noppes.npcs.ModelPartData;
|
||||
import noppes.npcs.client.model.ModelMPM;
|
||||
import noppes.npcs.client.model.util.Model2DRenderer;
|
||||
import noppes.npcs.client.model.util.ModelPartInterface;
|
||||
|
||||
public class ModelFin extends ModelPartInterface {
|
||||
|
||||
private Model2DRenderer model;
|
||||
|
||||
public ModelFin(ModelMPM base) {
|
||||
super(base);
|
||||
model = new Model2DRenderer(base, 56, 20, 8, 12, 64, 32);
|
||||
model.setRotationPoint(-0.5F, 12, 10);
|
||||
model.setScale(0.74f);
|
||||
model.rotateAngleY = (float)Math.PI / 2;
|
||||
this.addChild(model);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initData(ModelData data) {
|
||||
ModelPartData config = data.getPartData("fin");
|
||||
if(config == null)
|
||||
{
|
||||
isHidden = true;
|
||||
return;
|
||||
}
|
||||
color = config.color;
|
||||
isHidden = false;
|
||||
|
||||
if(!config.playerTexture){
|
||||
location = config.getResource();
|
||||
}
|
||||
else
|
||||
location = null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user