// Path: src/main/java/net/mechanicalcat/pycode/script/MyEntityPlayer.java
// public class MyEntityPlayer extends MyEntityLiving {
//     public String name;
// 
//     public MyEntityPlayer(EntityPlayer player) {
//         super(player);
//         this.name = player.getName();
//     }
// 
//     @Override
//     public boolean isPlayer() {
//         return true;
//     }
//     public boolean isMob() {
//         return false;
//     }
// 
//     public String toString() {
//         return this.name;
//     }
// 
//     public void chat(Object... args) {
//         if (this.entity.worldObj == null || !this.entity.worldObj.isRemote) return;
//         StringBuilder sbStr = new StringBuilder();
//         for (Object arg : args) {
//             if (arg != args[0]) sbStr.append(" ");
//             sbStr.append(arg);
//         }
//         ((EntityPlayer) this.entity).addChatComponentMessage(new TextComponentString(sbStr.toString()));
//     }
// 
//     public void giveAchievement(String name) throws CommandException {
//         if (!name.contains(".")) {
//             name = "achievement." + name;
//         }
//         this.achiev("give", name);
//     }
// 
//     public void takeAchievement(String name) throws CommandException {
//         if (!name.contains(".")) {
//             name = "achievement." + name;
//         }
//         this.achiev("take", name);
//     }
// 
//     private void achiev(String... args) throws CommandException {
//         if (this.entity.worldObj == null || this.entity.worldObj.isRemote) return;
//         new CommandAchievement().execute(this.entity.worldObj.getMinecraftServer(), this.entity,
//                args);
//     }
// }


import net.minecraft.world.World;
import javax.annotation.Nullable;
import java.util.LinkedList;
import java.util.List;
import net.mechanicalcat.pycode.script.MyEntityPlayer;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
import net.minecraft.command.PlayerNotFoundException;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.math.BlockPos;
/*
 * Copyright (c) 2017 Richard Jones <richard@mechanicalcat.net>
 * All Rights Reserved
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 * of the Software, and to permit persons to whom the Software is furnished to do
 * so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 */

package net.mechanicalcat.pycode.script;



public class MyEntityPlayers {
    World world;

    public MyEntityPlayers(World world) {
        this.world = world;
    }

// Path: src/main/java/net/mechanicalcat/pycode/script/MyEntityPlayer.java
// public class MyEntityPlayer extends MyEntityLiving {
//     public String name;
// 
//     public MyEntityPlayer(EntityPlayer player) {
//         super(player);
//         this.name = player.getName();
//     }
// 
//     @Override
//     public boolean isPlayer() {
//         return true;
//     }
//     public boolean isMob() {
//         return false;
//     }
// 
//     public String toString() {
//         return this.name;
//     }
// 
//     public void chat(Object... args) {
//         if (this.entity.worldObj == null || !this.entity.worldObj.isRemote) return;
//         StringBuilder sbStr = new StringBuilder();
//         for (Object arg : args) {
//             if (arg != args[0]) sbStr.append(" ");
//             sbStr.append(arg);
//         }
//         ((EntityPlayer) this.entity).addChatComponentMessage(new TextComponentString(sbStr.toString()));
//     }
// 
//     public void giveAchievement(String name) throws CommandException {
//         if (!name.contains(".")) {
//             name = "achievement." + name;
//         }
//         this.achiev("give", name);
//     }
// 
//     public void takeAchievement(String name) throws CommandException {
//         if (!name.contains(".")) {
//             name = "achievement." + name;
//         }
//         this.achiev("take", name);
//     }
// 
//     private void achiev(String... args) throws CommandException {
//         if (this.entity.worldObj == null || this.entity.worldObj.isRemote) return;
//         new CommandAchievement().execute(this.entity.worldObj.getMinecraftServer(), this.entity,
//                args);
//     }
// }


// Path: src/main/java/net/mechanicalcat/pycode/script/MyEntityPlayers.java
import net.minecraft.world.World;
import javax.annotation.Nullable;
import java.util.LinkedList;
import java.util.List;
import net.mechanicalcat.pycode.script.MyEntityPlayer;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
import net.minecraft.command.PlayerNotFoundException;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.math.BlockPos;

/*
 * Copyright (c) 2017 Richard Jones <richard@mechanicalcat.net>
 * All Rights Reserved
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 * of the Software, and to permit persons to whom the Software is furnished to do
 * so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 */

package net.mechanicalcat.pycode.script;



public class MyEntityPlayers {
    World world;

    public MyEntityPlayers(World world) {
        this.world = world;
    }

    public MyEntityPlayer[] all() {