Java 类net.minecraft.network.status.server.SPacketServerInfo 实例源码

项目:Backmemed    文件:NetHandlerStatusServer.java   
public void processServerQuery(CPacketServerQuery packetIn)
{
    if (this.handled)
    {
        this.networkManager.closeChannel(EXIT_MESSAGE);
    }
    else
    {
        this.handled = true;
        this.networkManager.sendPacket(new SPacketServerInfo(this.server.getServerStatusResponse()));
    }
}
项目:CustomWorldGen    文件:NetHandlerStatusServer.java   
public void processServerQuery(CPacketServerQuery packetIn)
{
    if (this.handled)
    {
        this.networkManager.closeChannel(EXIT_MESSAGE);
    }
    else
    {
        this.handled = true;
        this.networkManager.sendPacket(new SPacketServerInfo(this.server.getServerStatusResponse()));
    }
}
项目:LiteSpongeClient    文件:MixinServerPingerStatusHandler.java   
@Inject(method = "handleServerInfo(Lnet/minecraft/network/status/server/SPacketServerInfo;)V", at = @At(value = "INVOKE",
        target = "Lnet/minecraft/network/status/server/SPacketServerInfo;getResponse()Lnet/minecraft/network/ServerStatusResponse;"))
private void onHandleInfo(SPacketServerInfo packet, CallbackInfo ci) {
    IMixinServerStatusResponse response = (IMixinServerStatusResponse) packet.getResponse();
    IMixinServerData serverData = (IMixinServerData) this.val$server;
    serverData.setSpongeInfo(response.getSpongeInfo());
}
项目:Backmemed    文件:INetHandlerStatusClient.java   
void handleServerInfo(SPacketServerInfo packetIn);
项目:CustomWorldGen    文件:INetHandlerStatusClient.java   
void handleServerInfo(SPacketServerInfo packetIn);