Examples of doesAllowPlayer()


Examples of pneumaticCraft.common.tileentity.TileEntitySecurityStation.doesAllowPlayer()

    }

    @Override
    public boolean canHack(IBlockAccess world, int x, int y, int z, EntityPlayer player){
        TileEntitySecurityStation te = (TileEntitySecurityStation)world.getTileEntity(x, y, z);
        return !te.doesAllowPlayer(player);
    }

    @Override
    public void addInfo(World world, int x, int y, int z, List<String> curInfo, EntityPlayer player){
        curInfo.add("pneumaticHelmet.hacking.result.access");
View Full Code Here

Examples of pneumaticCraft.common.tileentity.TileEntitySecurityStation.doesAllowPlayer()

        for(TileEntity te : (List<TileEntity>)world.loadedTileEntityList) {
            if(te instanceof TileEntitySecurityStation) {
                TileEntitySecurityStation station = (TileEntitySecurityStation)te;
                if(station.hasValidNetwork()) {
                    if(Math.abs(station.xCoord - x) <= station.getSecurityRange() && Math.abs(station.yCoord - y) <= station.getSecurityRange() && Math.abs(station.zCoord - z) <= station.getSecurityRange()) {
                        if(!station.doesAllowPlayer(player)) {
                            blockingStations++;
                            if(showRangeLines) station.showRangeLines();
                        }
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.