Package org.bukkit

Examples of org.bukkit.WorldType


      return;
   
    PacketContainer loginPacket = new PacketContainer(PacketType.Play.Server.LOGIN);
    StructureModifier<WorldType> worldAccess = loginPacket.getWorldTypeModifier();
   
    WorldType testValue = WorldType.LARGE_BIOMES;
   
    assertNull(worldAccess.read(0));
   
    // Insert and read back
    worldAccess.write(0, testValue);
View Full Code Here


  }

  @Override
  public WorldType select(String arg, CommandSender sender)
  {
    WorldType ret = null;
   
    // "DEFAULT_1_1" --> "11"
    // "LARGE_BIOMES" --> "large"
    // "Default" --> ""
    arg = arg.toLowerCase();
View Full Code Here

        // If they didn't specify a type, default to NORMAL
        if (typeString == null) {
            typeString = "NORMAL";
        }
        WorldType type = EnvironmentCommand.getWorldTypeFromString(typeString);
        if (type == null) {
            sender.sendMessage(ChatColor.RED + "That is not a valid World Type.");
            EnvironmentCommand.showWorldTypes(sender);
            return;
        }
View Full Code Here

                }
            }

            world.setSeed(theSeed);
        }
        WorldType type = world.getWorldType();

        if (this.deleteWorld(name, false, false)) {
            this.doLoad(name, true, type);
            SafeTTeleporter teleporter = this.plugin.getSafeTTeleporter();
            Location newSpawn = world.getSpawnLocation();
View Full Code Here

TOP

Related Classes of org.bukkit.WorldType

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.