Examples of addEntity()


Examples of rakama.worldtools.data.Chunk.addEntity()

    public void addEntity(Entity e)
    {       
        int x = (int)e.getX();
        int z = (int)e.getZ();
        Chunk chunk = manager.getChunk(x >> 4, z >> 4, true);
        chunk.addEntity(e);
    }
   
    public void addTileEntity(TileEntity e)
    {
        int x = e.getX();
View Full Code Here

Examples of rakama.worldtools.data.Schematic.addEntity()

                }
            }
        }

        for(Entity e : getEntities(x0, y0, z0, x1, y1, z1))
            schema.addEntity(e.clone(-x0, -y0, -z0));
       
        for(TileEntity e : getTileEntities(x0, y0, z0, x1, y1, z1))
            schema.addTileEntity(e.clone(-x0, -y0, -z0));

        return schema;
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.