Package net.aufdemrand.denizen.utilities

Examples of net.aufdemrand.denizen.utilities.DenizenMapRenderer


                    map.setWorld(reset.getWorld());
                }
            }
        }
        else {
            DenizenMapRenderer dmr = null;
            List<MapRenderer> oldRendererList = map.getRenderers();
            for (MapRenderer renderer : oldRendererList) {
                if (!(renderer instanceof DenizenMapRenderer) || dmr != null)
                    map.removeRenderer(renderer);
                else
                    dmr = (DenizenMapRenderer) renderer;
            }
            if (dmr == null) {
                dmr = new DenizenMapRenderer(oldRendererList);
                map.addRenderer(dmr);
            }
            if (image != null)
                dmr.addImage(x.asInt(), y.asInt(), new File(DenizenAPI.getCurrentInstance().getDataFolder(),
                        image.asString()).getPath(), resize.asBoolean());
            else if (text != null)
                dmr.addText(x.asInt(), y.asInt(), text.asString());
        }

    }
View Full Code Here

TOP

Related Classes of net.aufdemrand.denizen.utilities.DenizenMapRenderer

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.