MineLittlePony/src/main/java/com/minelittlepony/api/pony/IPonyData.java

66 lines
1.4 KiB
Java
Raw Normal View History

2020-04-03 23:54:12 +02:00
package com.minelittlepony.api.pony;
2016-11-24 02:01:23 -05:00
2020-04-03 23:54:12 +02:00
import com.minelittlepony.api.pony.meta.Gender;
import com.minelittlepony.api.pony.meta.Race;
import com.minelittlepony.api.pony.meta.Size;
import com.minelittlepony.api.pony.meta.TailLength;
import com.minelittlepony.api.pony.meta.Wearable;
2020-04-16 23:35:28 +02:00
import com.minelittlepony.common.util.animation.Interpolator;
import java.util.UUID;
2016-11-24 02:01:23 -05:00
/**
* Metadata for a pony.
2016-11-24 02:01:23 -05:00
*/
public interface IPonyData {
/**
* Gets this pony's race.
*/
2019-03-23 21:49:34 +02:00
Race getRace();
2016-11-24 02:01:23 -05:00
/**
* Gets the length of the pony's tail.
*/
2019-03-23 21:49:34 +02:00
TailLength getTail();
/**
* Get the pony's gender (usually female).
*/
2019-03-23 21:49:34 +02:00
Gender getGender();
/**
* Gets the current pony size.
*/
2019-03-23 21:49:34 +02:00
Size getSize();
/**
* Gets the magical glow colour for magic-casting races. Returns 0 otherwise.
*/
int getGlowColor();
2019-07-24 23:37:22 +02:00
/**
* Returns true if and only if this metadata represents a pony that has a horn.
*/
boolean hasHorn();
/**
* Returns true if and only if this metadata represents a pony that can cast magic.
*/
boolean hasMagic();
/**
* Returns an array of wearables that this pony is carrying.
*/
Wearable[] getGear();
/**
* Checks it this pony is wearing the given accessory.
*/
2019-03-23 21:49:34 +02:00
boolean isWearing(Wearable wearable);
/**
* Gets an interpolator for interpolating values.
*/
2020-04-16 23:35:28 +02:00
Interpolator getInterpolator(UUID interpolatorId);
2016-11-24 02:01:23 -05:00
}