Package com.forgeessentials.util.selections

Examples of com.forgeessentials.util.selections.WorldPoint


        if (FMLCommonHandler.instance().getEffectiveSide().isClient())
            return;
        if (e.entityLiving instanceof EntityPlayer)
            return;

        WorldPoint point = new WorldPoint(e.entityLiving);
        String mobID = EntityList.getEntityString(e.entity);
        if (!APIRegistry.perms.checkUserPermission(null, point, ModuleProtection.PERM_MOBSPAWN_NATURAL + "." + mobID))
        {
            e.setResult(Result.DENY);
            OutputHandler.debug(mobID + " : DENIED");
View Full Code Here


        if (FMLCommonHandler.instance().getEffectiveSide().isClient())
            return;
        if (e.entityLiving instanceof EntityPlayer)
            return;

        WorldPoint point = new WorldPoint(e.entityLiving);
        String mobID = EntityList.getEntityString(e.entity);

        if (!APIRegistry.perms.checkUserPermission(null, point, ModuleProtection.PERM_MOBSPAWN_FORCED + "." + mobID))
        {
            e.setResult(Result.DENY);
View Full Code Here

        if (e.target instanceof EntityItem)
        {
            // 1) Destroy item when player in creative mode
            // 2) If creative mode is set for any group at the location where the block was destroyed, prevent drops
            if (getGamemode(e.entityPlayer) == GameType.CREATIVE || anyCreativeModeAtPoint(e.entityPlayer, new WorldPoint(e.target)))
            {
                e.target.worldObj.removeEntity(e.target);
                return;
            }
        }
View Full Code Here

    }

    public void parse(ICommandSender sender, String[] args, boolean undo, boolean execute)
    {
        int time = 0;
        WorldPoint point = (sender instanceof EntityPlayer) ? new WorldPoint((EntityPlayer) sender) : null;
        int rad = 0;

        for (int i = 1; i < args.length; i++)
        {
            String arg = args[i];
View Full Code Here

        }
    if (args.length == 4)
    {
      worldID = parseInt(sender, args[3]);
    }
        WorldPoint center = new WorldPoint(worldID, x, y, z);
        AxisAlignedBB pool = AxisAlignedBB.getBoundingBox(center.getX() - radius, center.getY() - radius, center.getZ() - radius, center.getX() + radius + 1, center.getY() + radius + 1,
                center.getZ() + radius + 1);
        TaskRegistry.registerTask(new CommandButcherTickTask(sender, mobType, pool, radius, worldID));
    }
View Full Code Here

TOP

Related Classes of com.forgeessentials.util.selections.WorldPoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.