2018-04-24 14:55:32 +02:00
|
|
|
package com.minelittlepony.ducks;
|
|
|
|
|
2018-04-25 13:02:10 +02:00
|
|
|
import com.minelittlepony.pony.data.Pony;
|
2018-04-24 14:55:32 +02:00
|
|
|
|
|
|
|
import net.minecraft.client.Minecraft;
|
|
|
|
import net.minecraft.client.entity.AbstractClientPlayer;
|
|
|
|
|
|
|
|
public interface IPlayerInfo {
|
2018-04-25 21:29:49 +02:00
|
|
|
/**
|
|
|
|
* Gets the pony associated with this player.
|
|
|
|
*/
|
2018-04-24 14:55:32 +02:00
|
|
|
Pony getPony();
|
|
|
|
|
2018-04-25 21:29:49 +02:00
|
|
|
/**
|
|
|
|
* Returns true if the vanilla skin (the one returned by NetworkPlayerInfo.getSkinLocation) uses the ALEX model type.
|
|
|
|
*/
|
2018-04-24 14:55:32 +02:00
|
|
|
boolean usesSlimArms();
|
|
|
|
|
2018-04-25 21:29:49 +02:00
|
|
|
/**
|
|
|
|
* Gets the player info for the given player.
|
|
|
|
*/
|
2018-04-24 14:55:32 +02:00
|
|
|
public static IPlayerInfo getPlayerInfo(AbstractClientPlayer player) {
|
|
|
|
return (IPlayerInfo)Minecraft.getMinecraft().getConnection().getPlayerInfo(player.getUniqueID());
|
|
|
|
}
|
|
|
|
}
|