MineLittlePony/src/common/java/com/minelittlepony/pony/data/IPonyData.java

51 lines
1,005 B
Java
Raw Normal View History

package com.minelittlepony.pony.data;
2016-11-24 02:01:23 -05:00
import com.minelittlepony.model.anim.IInterpolator;
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.
*/
PonyRace getRace();
2016-11-24 02:01:23 -05:00
/**
* Gets the length of the pony's tail.
*/
TailLengths getTail();
/**
* Get the pony's gender (usually female).
*/
PonyGender getGender();
/**
* Gets the current pony size.
*/
PonySize getSize();
/**
* Gets the magical glow colour for magic-casting races. Returns 0 otherwise.
*/
int getGlowColor();
/**
* Returns true if and only if this metadata represents a pony that can cast magic.
*/
boolean hasMagic();
/**
* Checks it this pony is wearing the given accessory.
*/
boolean isWearing(PonyWearable wearable);
/**
* Gets an interpolator for interpolating values.
*/
IInterpolator getInterpolator(UUID interpolatorId);
2016-11-24 02:01:23 -05:00
}