0 API Usages (NetherPortals)
Ben Woo edited this page 2021-03-15 14:34:09 +08:00

This pages provides examples and explanation for the common API usages of Multiverse-Core introduced here. It's impossible to cover all API methods in this guide, but rest assured we have javadocs provided.

public void linkSMPWorlds(String overworld, String netherworld, String endworld) {
    // Linking nether portals both ways
    netherportals.addWorldLink(overworld, netherworld, PortalType.NETHER);
    netherportals.addWorldLink(netherworld, overworld, PortalType.NETHER);

    // Linking end portals both ways
    netherportals.addWorldLink(overworld, endworld, PortalType.ENDER);
    netherportals.addWorldLink(endworld, overworld, PortalType.ENDER);
}