Examples of addTileEntity()


Examples of net.minecraft.world.chunk.Chunk.addTileEntity()

      for (int i1 = 0; i1 < nbttaglist2.tagCount(); ++i1) {
        NBTTagCompound nbttagcompound4 = (NBTTagCompound) nbttaglist2.tagAt(i1);
        TileEntity tileentity = TileEntity.createAndLoadEntity(nbttagcompound4);

        if (tileentity != null) {
          chunk.addTileEntity(tileentity);
        }
      }
    }

    if (nbtTagCompound.hasKey("TileTicks")) {
View Full Code Here

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

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

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

                else
                    continue;
                       
                cb = EntityFactory.getDefaultFactory().createCommandBlock(xc, yc, zc, cmd);
                schema.removeTileEntity(e);
                schema.addTileEntity(cb);
            }
        }
       
        // remove existing entities from target region
        List<Entity> removeEntities = destCanvas.getEntities(xDest, yDest, zDest,
View Full Code Here

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

        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.