MineLittlePony/src/main/java/com/brohoof/minelittlepony/model/PMAPI.java

41 lines
1.6 KiB
Java
Raw Normal View History

2015-11-17 06:09:04 +01:00
package com.brohoof.minelittlepony.model;
2015-08-02 00:36:33 +02:00
import java.lang.reflect.Field;
2015-11-17 06:09:04 +01:00
import com.brohoof.minelittlepony.model.pony.pm_Human;
import com.brohoof.minelittlepony.model.pony.pm_newPonyAdv;
import com.brohoof.minelittlepony.model.pony.pm_skeletonPony;
import com.brohoof.minelittlepony.model.pony.pm_zombiePony;
import com.brohoof.minelittlepony.model.pony.armor.pma_Human;
import com.brohoof.minelittlepony.model.pony.armor.pma_newPony;
import com.brohoof.minelittlepony.model.pony.armor.pma_skeletonPony;
import com.brohoof.minelittlepony.model.pony.armor.pma_zombiePony;
2015-08-02 00:36:33 +02:00
public final class PMAPI {
public static PlayerModel newPonyAdv_32 = new PlayerModel(new pm_newPonyAdv())
2015-08-02 00:36:33 +02:00
.setTextureHeight(32)
.setArmor(new pma_newPony());
public static PlayerModel newPonyAdv = new PlayerModel(new pm_newPonyAdv())
.setArmor(new pma_newPony());
public static PlayerModel zombiePony = new PlayerModel(new pm_zombiePony())
2015-08-02 00:36:33 +02:00
.setTextureHeight(32)
.setArmor(new pma_zombiePony());
public static PlayerModel skeletonPony = new PlayerModel(new pm_skeletonPony())
2015-08-02 00:36:33 +02:00
.setTextureHeight(32)
.setArmor(new pma_skeletonPony());
public static PlayerModel human = new PlayerModel(new pm_Human())
.setArmor(new pma_Human());
2015-08-02 00:36:33 +02:00
public static void init() {
for (Field field : PMAPI.class.getFields()) {
try {
PlayerModel model = (PlayerModel) field.get(null);
model.init();
} catch (Exception e) {
e.printStackTrace();
}
}
}
}