mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 09:34:46 +00:00
1.7.10 Files
Files added
This commit is contained in:
1 parent
393ea9b463
commit
a31efb2dc3
1768 files changed
+84831
No files matched your search
@@ -0,0 +1,25 @@
|
||||
package noppes.npcs.scripted;
|
||||
|
||||
import net.minecraft.entity.passive.EntityTameable;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import noppes.npcs.controllers.PixelmonHelper;
|
||||
|
||||
public class ScriptPixelmonPlayerData {
|
||||
private EntityPlayerMP player;
|
||||
public ScriptPixelmonPlayerData(EntityPlayerMP player){
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
public ScriptPixelmon getPartySlot(int slot){
|
||||
NBTTagCompound compound = PixelmonHelper.getPartySlot(slot, player);
|
||||
if(compound == null)
|
||||
return null;
|
||||
EntityTameable pixelmon = PixelmonHelper.pixelmonFromNBT(compound, player);
|
||||
return new ScriptPixelmon(pixelmon, compound);
|
||||
}
|
||||
|
||||
public int countPCPixelmon(){
|
||||
return PixelmonHelper.countPCPixelmon(player);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user