Add an interface method for getting an IPony from an already existing resource

This commit is contained in:
Sollace 2018-10-20 23:18:20 +02:00
parent 5a3ccbee58
commit 13282898db

View file

@ -17,6 +17,14 @@ public interface IPony {
return MineLittlePony.getInstance().getManager().getPony(player);
}
/**
* Gets or creates a new pony associated with the provided resource location.
* The results of this method should not be cached.
*/
static IPony forResource(ResourceLocation texture) {
return MineLittlePony.getInstance().getManager().getPony(texture);
}
/**
* Returns true if the provided entity is flying like a pegasus.
* True if the entity is off the ground, has race with wings.