mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 20:47:59 +01:00
Add an interface method for getting an IPony from an already existing resource
This commit is contained in:
parent
5a3ccbee58
commit
13282898db
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue