mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 06:55:03 +00:00
Proper Reformating
This commit is contained in:
1 parent
ce75880aba
commit
180d257024
1179 files changed
+59847
-61583
No files matched your search
@@ -8,20 +8,21 @@ import noppes.npcs.compat.PixelmonHelper;
|
||||
import noppes.npcs.scripted.entity.ScriptPixelmon;
|
||||
|
||||
public class ScriptPixelmonPlayerData implements IPixelmonPlayerData {
|
||||
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);
|
||||
}
|
||||
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