de.dytanic.cloudnet.lib.utility.document.Document.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(94)

本文整理了Java中de.dytanic.cloudnet.lib.utility.document.Document.<init>()方法的一些代码示例,展示了Document.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Document.<init>()方法的具体详情如下:
包路径:de.dytanic.cloudnet.lib.utility.document.Document
类名称:Document
方法名:<init>

Document.<init>介绍

暂无

代码示例

代码示例来源:origin: Dytanic/CloudNet

public PacketOutAddMob(ServerMob mob)
  {
    super(PacketRC.SERVER_SELECTORS + 3, new Document("mob", mob));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketOutExecuteCommand(String commandLine)
  {
    super(PacketRC.CN_CORE + 4, new Document("command", commandLine));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketOutAuthResult(AuthLoginResult loginResult)
  {
    super(PacketRC.INTERNAL - 2, new Document("result", loginResult));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketAPIOutGetPlayer(UUID uniqueId)
  {
    super(PacketRC.API + 1, new Document("uniqueId", uniqueId));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketOutUpdateProxyInfo(ProxyInfo proxyInfo)
  {
    super(PacketRC.SERVER_HANDLE + 2, new Document("proxyInfo", proxyInfo));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketOutUpdateOnlinePlayer(CloudPlayer cloudPlayer)
  {
    super(PacketRC.PLAYER_HANDLE + 5, new Document("player", cloudPlayer));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketOutStopProxy(ProxyInfo proxyInfo)
  {
    super(PacketRC.CN_CORE + 2, new Document("proxyInfo", proxyInfo));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketOutUpdateServerInfo(ServerInfo serverInfo)
  {
    super(PacketRC.SERVER_HANDLE + 1, new Document("serverInfo", serverInfo));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketOutLoginPlayer(UUID uniqueId, CloudPlayer cloudPlayer)
  {
    super(uniqueId, PacketRC.PLAYER_HANDLE + 1, new Document("player", cloudPlayer));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketDBOutGetSize(String name)
  {
    super(PacketRC.DB + 5, new Document("name", name));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public Document loadToExistingDocument(Path path)
{
  try (InputStreamReader reader = new InputStreamReader(Files.newInputStream(path), "UTF-8"))
  {
    this.dataCatcher = PARSER.parse(reader).getAsJsonObject();
    return this;
  } catch (Exception ex)
  {
    ex.getStackTrace();
  }
  return new Document();
}

代码示例来源:origin: Dytanic/CloudNet

public PacketOutAddServer(ServerInfo serverInfo, ServerProcessMeta serverProcessMeta)
  {
    super(PacketRC.CN_WRAPPER + 2, new Document("serverInfo", serverInfo).append("serverProcess", serverProcessMeta));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketOutMobSelector(MobConfig mobConfig, Map<UUID, ServerMob> mobs)
  {
    super(PacketRC.SERVER_SELECTORS + 2, new Document("mobConfig", mobConfig).append("mobs", mobs));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketOutAddCloudServer(ServerInfo serverInfo, CloudServerMeta cloudServerMeta)
  {
    super(PacketRC.CN_WRAPPER + 13, new Document("serverInfo", serverInfo).append("cloudServerMeta", cloudServerMeta));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketOutCustomSubChannelMessage(String channel, String message, Document document)
  {
    super(PacketRC.SERVER_HANDLE + 9, new Document("channel", channel).append("message", message).append("value", document));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketOutCustomChannelMessage(String channel, String message, Document value)
  {
    super(PacketRC.SERVER_HANDLE + 4, new Document("channel", channel).append("message", message).append("value", value));
  }
}

代码示例来源:origin: Dytanic/CloudNet

@Override
public void handleInput(Document data, PacketSender packetSender)
{
  Collection<ServerInfo> serverInfos = CollectionWrapper.transform(CloudNet.getInstance().getCloudGameServers().values(), new Catcher<ServerInfo, CloudServer>() {
    @Override
    public ServerInfo doCatch(CloudServer key)
    {
      return key.getServerInfo();
    }
  });
  packetSender.sendPacket(getResult(new Document("serverInfos", serverInfos)));
}

代码示例来源:origin: Dytanic/CloudNet

public SignDatabase(Database database)
{
  super(database);
  Document document = database.getDocument("signs");
  if (document == null)
  {
    database.insert(new DatabaseDocument("signs").append("signs", new Document()));
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketOutStartServer(String group, int memory, ServerConfig serverConfig, Properties properties, boolean priorityStop,
              String[] processParameters, Template template, String customServr, boolean onlineMode,
              Collection<ServerInstallablePlugin> plugins, String urlTemplate, String serverId)
{
  super(PacketRC.SERVER_HANDLE + 4, new Document("group", group).append("memory", memory).append("priorityStop", priorityStop).append("serverConfig", serverConfig).append("properties", properties)
      .append("processParameters", processParameters).append("customServer", customServr).append("onlineMode", onlineMode)
      .append("plugins", plugins).append("url", urlTemplate).append("serviceId", serverId));
  if (template != null)
  {
    data.append("template", template);
  }
}

代码示例来源:origin: Dytanic/CloudNet

public PacketOutStartServer(WrapperInfo wrapper, String group, int memory, ServerConfig serverConfig, Properties properties, boolean priorityStop,
              String[] processParameters, Template template, String customServr, boolean onlineMode,
              Collection<ServerInstallablePlugin> plugins, String urlTemplate)
{
  super(PacketRC.SERVER_HANDLE + 4, new Document("group", group).append("wrapper", wrapper.getServerId()).append("memory", memory).append("priorityStop", priorityStop).append("serverConfig", serverConfig).append("properties", properties)
      .append("processParameters", processParameters).append("customServer", customServr).append("onlineMode", onlineMode)
      .append("plugins", plugins).append("url", urlTemplate));
  if (template != null)
  {
    data.append("template", template);
  }
}

相关文章