Turn PMAPI into an interface

This commit is contained in:
Sollace 2018-08-17 23:12:40 +02:00
parent 8527792dba
commit 2c9175b83a
2 changed files with 20 additions and 20 deletions

View file

@ -14,9 +14,9 @@ public class ModelWrapper implements IModelWrapper {
private final PonyArmor armor; private final PonyArmor armor;
/** /**
* Created a new model wrapper to contain the given pony. * Creates a new model wrapper to contain the given pony.
*/ */
public ModelWrapper(AbstractPonyModel model) { ModelWrapper(AbstractPonyModel model) {
body = model; body = model;
armor = model.createArmour(); armor = model.createArmour();
armor.apply(model.getMetadata()); armor.apply(model.getMetadata());

View file

@ -8,29 +8,29 @@ import com.minelittlepony.model.ponies.*;
* *
* TODO: Remove this, move the models to where they're being used. * TODO: Remove this, move the models to where they're being used.
*/ */
public final class PMAPI { public interface PMAPI {
public static final ModelWrapper earthpony = new ModelWrapper(new ModelEarthPony(false)); ModelWrapper earthpony = new ModelWrapper(new ModelEarthPony(false));
public static final ModelWrapper earthponySmall = new ModelWrapper(new ModelEarthPony(true)); ModelWrapper earthponySmall = new ModelWrapper(new ModelEarthPony(true));
public static final ModelWrapper pegasus = new ModelWrapper(new ModelPegasus(false)); ModelWrapper pegasus = new ModelWrapper(new ModelPegasus(false));
public static final ModelWrapper pegasusSmall = new ModelWrapper(new ModelPegasus(true)); ModelWrapper pegasusSmall = new ModelWrapper(new ModelPegasus(true));
public static final ModelWrapper unicorn = new ModelWrapper(new ModelUnicorn(false)); ModelWrapper unicorn = new ModelWrapper(new ModelUnicorn(false));
public static final ModelWrapper unicornSmall = new ModelWrapper(new ModelUnicorn(true)); ModelWrapper unicornSmall = new ModelWrapper(new ModelUnicorn(true));
public static final ModelWrapper alicorn = new ModelWrapper(new ModelAlicorn(false)); ModelWrapper alicorn = new ModelWrapper(new ModelAlicorn(false));
public static final ModelWrapper alicornSmall = new ModelWrapper(new ModelAlicorn(true)); ModelWrapper alicornSmall = new ModelWrapper(new ModelAlicorn(true));
public static final ModelWrapper zebra = new ModelWrapper(new ModelZebra(false)); ModelWrapper zebra = new ModelWrapper(new ModelZebra(false));
public static final ModelWrapper zebraSmall = new ModelWrapper(new ModelZebra(true)); ModelWrapper zebraSmall = new ModelWrapper(new ModelZebra(true));
public static final ModelWrapper seapony = new ModelWrapper(new ModelSeapony()); ModelWrapper seapony = new ModelWrapper(new ModelSeapony());
public static final ModelWrapper zombie = new ModelWrapper(new ModelZombiePony()); ModelWrapper zombie = new ModelWrapper(new ModelZombiePony());
public static final ModelWrapper skeleton = new ModelWrapper(new ModelSkeletonPony()); ModelWrapper skeleton = new ModelWrapper(new ModelSkeletonPony());
public static final ModelWrapper villager = new ModelWrapper(new ModelVillagerPony()); ModelWrapper villager = new ModelWrapper(new ModelVillagerPony());
public static final ModelWrapper illager = new ModelWrapper(new ModelIllagerPony()); ModelWrapper illager = new ModelWrapper(new ModelIllagerPony());
public static final ModelWrapper witch = new ModelWrapper(new ModelWitchPony()); ModelWrapper witch = new ModelWrapper(new ModelWitchPony());
public static final ModelWrapper enderman = new ModelWrapper(new ModelEnderStallion()); ModelWrapper enderman = new ModelWrapper(new ModelEnderStallion());
} }