2018-04-25 13:02:10 +02:00
|
|
|
package com.minelittlepony.pony.data;
|
2016-11-24 02:01:23 -05:00
|
|
|
|
|
|
|
import net.minecraft.client.resources.data.IMetadataSection;
|
|
|
|
|
|
|
|
/**
|
2018-04-25 21:29:49 +02:00
|
|
|
* Metadata for a pony.
|
2016-11-24 02:01:23 -05:00
|
|
|
*/
|
|
|
|
public interface IPonyData extends IMetadataSection {
|
2018-04-25 21:29:49 +02:00
|
|
|
/**
|
|
|
|
* Gets this pony's race.
|
|
|
|
*/
|
2018-04-24 14:55:32 +02:00
|
|
|
PonyRace getRace();
|
2016-11-24 02:01:23 -05:00
|
|
|
|
2018-04-25 21:29:49 +02:00
|
|
|
/**
|
|
|
|
* Gets the length of the pony's tail.
|
|
|
|
*/
|
2018-04-24 14:55:32 +02:00
|
|
|
TailLengths getTail();
|
|
|
|
|
2018-04-25 21:29:49 +02:00
|
|
|
/**
|
|
|
|
* Get the pony's gender (usually female).
|
|
|
|
*/
|
2018-04-24 14:55:32 +02:00
|
|
|
PonyGender getGender();
|
|
|
|
|
2018-04-25 21:29:49 +02:00
|
|
|
/**
|
|
|
|
* Gets the current pony size.
|
|
|
|
*/
|
2018-04-24 14:55:32 +02:00
|
|
|
PonySize getSize();
|
|
|
|
|
2018-04-25 21:29:49 +02:00
|
|
|
/**
|
|
|
|
* Gets the magical glow colour for magic-casting races. Returns 0 otherwise.
|
|
|
|
*/
|
2018-04-24 14:55:32 +02:00
|
|
|
int getGlowColor();
|
|
|
|
|
2018-04-25 21:29:49 +02:00
|
|
|
/**
|
|
|
|
* Returns true if and only if this metadata represents a pony that can cast magic.
|
|
|
|
*/
|
2018-04-24 14:55:32 +02:00
|
|
|
boolean hasMagic();
|
2018-06-05 20:18:57 +02:00
|
|
|
|
|
|
|
boolean isWearing(PonyWearable wearable);
|
2016-11-24 02:01:23 -05:00
|
|
|
}
|