mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 22:38:00 +01:00
Merge pull request #87 from TheWeatherPony/master
Friendlier Modifiers for external mod access
This commit is contained in:
commit
b485f07d17
4 changed files with 8 additions and 8 deletions
|
@ -33,11 +33,11 @@ import static com.minelittlepony.model.PonyModelConstants.*;
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
|
public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
|
||||||
|
|
||||||
private boolean isSleeping;
|
public boolean isSleeping;
|
||||||
private boolean isFlying;
|
public boolean isFlying;
|
||||||
private boolean isElytraFlying;
|
public boolean isElytraFlying;
|
||||||
private boolean isSwimming;
|
public boolean isSwimming;
|
||||||
private boolean headGear;
|
public boolean headGear;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Associcated pony data.
|
* Associcated pony data.
|
||||||
|
|
|
@ -100,7 +100,7 @@ public class PonyData implements IPonyData {
|
||||||
/**
|
/**
|
||||||
* Parses an image buffer into a new IPonyData representing the values stored in it's individual trigger pixels.
|
* Parses an image buffer into a new IPonyData representing the values stored in it's individual trigger pixels.
|
||||||
*/
|
*/
|
||||||
static IPonyData parse(BufferedImage image) {
|
public static IPonyData parse(BufferedImage image) {
|
||||||
return new PonyData(image);
|
return new PonyData(image);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ public class RenderPony<T extends EntityLivingBase> {
|
||||||
|
|
||||||
public ModelWrapper playerModel;
|
public ModelWrapper playerModel;
|
||||||
|
|
||||||
private AbstractPonyModel ponyModel;
|
protected AbstractPonyModel ponyModel;
|
||||||
|
|
||||||
private Pony pony;
|
private Pony pony;
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ import javax.annotation.Nonnull;
|
||||||
// and is the whole reason we had this scaling bug in the first place.
|
// and is the whole reason we had this scaling bug in the first place.
|
||||||
public abstract class RenderPonyMob<T extends EntityLiving> extends RenderLiving<T> implements IRenderPony<T> {
|
public abstract class RenderPonyMob<T extends EntityLiving> extends RenderLiving<T> implements IRenderPony<T> {
|
||||||
|
|
||||||
protected final RenderPony<T> renderPony = new RenderPony<T>(this);
|
protected RenderPony<T> renderPony = new RenderPony<T>(this);
|
||||||
|
|
||||||
public RenderPonyMob(RenderManager manager, ModelWrapper model) {
|
public RenderPonyMob(RenderManager manager, ModelWrapper model) {
|
||||||
super(manager, model.getBody(), 0.5F);
|
super(manager, model.getBody(), 0.5F);
|
||||||
|
|
Loading…
Reference in a new issue