Java 类net.minecraft.network.play.INetHandlerPlayServer 实例源码

项目:CreeperHostGui    文件:CreeperHostServer.java   
@SubscribeEvent
public void clientConnectedtoServer(FMLNetworkEvent.ServerConnectionFromClientEvent event)
{
    if (!CreeperHost.instance.active)
        return;
    MinecraftServer server = FMLCommonHandler.instance().getMinecraftServerInstance();
    if (server == null || server.isSinglePlayer() || discoverMode != Discoverability.PUBLIC)
        return;

    INetHandlerPlayServer handler = event.handler;
    if (handler instanceof NetHandlerPlayServer)
    {
        EntityPlayerMP entity = ((NetHandlerPlayServer) handler).playerEntity;
        playersJoined.add(entity.getUniqueID());
    }
}
项目:CreeperHostGui    文件:CreeperHostServer.java   
@SubscribeEvent
public void clientConnectedtoServer(FMLNetworkEvent.ServerConnectionFromClientEvent event)
{
    if (!CreeperHost.instance.active)
        return;
    MinecraftServer server = FMLCommonHandler.instance().getMinecraftServerInstance();
    if (server == null || server.isSinglePlayer() || discoverMode != Discoverability.PUBLIC)
        return;

    INetHandlerPlayServer handler = event.getHandler();
    if (handler instanceof NetHandlerPlayServer)
    {
        EntityPlayerMP entity = ((NetHandlerPlayServer)handler).playerEntity;
        playersJoined.add(entity.getUniqueID());
    }
}
项目:Backmemed    文件:CPacketCustomPayload.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processCustomPayload(this);

    if (this.data != null)
    {
        this.data.release();
    }
}
项目:CustomWorldGen    文件:FMLClientHandler.java   
@Override
public IThreadListener getWorldThread(INetHandler net)
{
    if (net instanceof INetHandlerPlayClient ||
        net instanceof INetHandlerLoginClient ||
        net instanceof INetHandlerStatusClient) return getClient();
    if (net instanceof INetHandlerHandshakeServer ||
        net instanceof INetHandlerLoginServer ||
        net instanceof INetHandlerPlayServer ||
        net instanceof INetHandlerStatusServer) return getServer();
    throw new RuntimeException("Unknown INetHandler: " + net);
}
项目:ModularMachinery    文件:PlayerStructureSelectionHelper.java   
@SubscribeEvent
public void onDisconnect(FMLNetworkEvent.ServerDisconnectionFromClientEvent event) {
    INetHandlerPlayServer handlerServer = event.getHandler();
    if(handlerServer instanceof NetHandlerPlayServer) {
        purgeSelection(((NetHandlerPlayServer) handlerServer).player);
    }
}
项目:WirelessRedstone    文件:WRServerPH.java   
@Override
public void handlePacket(PacketCustom packet, EntityPlayerMP sender, INetHandlerPlayServer handler) {
    handlePacket((WorldServer) sender.world, sender, packet);
}
项目:DecompiledMinecraft    文件:C15PacketClientSettings.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processClientSettings(this);
}
项目:CustomWorldGen    文件:FMLNetworkEvent.java   
public ServerConnectionFromClientEvent(NetworkManager manager)
{
    super((INetHandlerPlayServer) manager.getNetHandler(), INetHandlerPlayServer.class, manager);
    this.isLocal = manager.isLocalChannel();
}
项目:Backmemed    文件:CPacketSteerBoat.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processSteerBoat(this);
}
项目:CustomWorldGen    文件:CPacketConfirmTransaction.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processConfirmTransaction(this);
}
项目:DecompiledMinecraft    文件:C01PacketChatMessage.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processChatMessage(this);
}
项目:Backmemed    文件:CPacketAnimation.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.handleAnimation(this);
}
项目:DecompiledMinecraft    文件:C10PacketCreativeInventoryAction.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processCreativeInventoryAction(this);
}
项目:DecompiledMinecraft    文件:C0FPacketConfirmTransaction.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processConfirmTransaction(this);
}
项目:CustomWorldGen    文件:CPacketResourcePackStatus.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.handleResourcePackStatus(this);
}
项目:DecompiledMinecraft    文件:C02PacketUseEntity.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processUseEntity(this);
}
项目:DecompiledMinecraft    文件:C0DPacketCloseWindow.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processCloseWindow(this);
}
项目:DecompiledMinecraft    文件:C07PacketPlayerDigging.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processPlayerDigging(this);
}
项目:Backmemed    文件:CPacketResourcePackStatus.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.handleResourcePackStatus(this);
}
项目:DecompiledMinecraft    文件:C11PacketEnchantItem.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processEnchantItem(this);
}
项目:CustomWorldGen    文件:CPacketPlayer.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processPlayer(this);
}
项目:DecompiledMinecraft    文件:C00PacketKeepAlive.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processKeepAlive(this);
}
项目:DecompiledMinecraft    文件:C0APacketAnimation.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.handleAnimation(this);
}
项目:DecompiledMinecraft    文件:C0BPacketEntityAction.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processEntityAction(this);
}
项目:Backmemed    文件:CPacketClientSettings.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processClientSettings(this);
}
项目:Backmemed    文件:CPacketTabComplete.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processTabComplete(this);
}
项目:CustomWorldGen    文件:FMLProxyPacket.java   
public Packet<INetHandlerPlayServer> toC17Packet()
{
    return new CPacketCustomPayload(channel, payload);
}
项目:DecompiledMinecraft    文件:C0CPacketInput.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processInput(this);
}
项目:DecompiledMinecraft    文件:C15PacketClientSettings.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processClientSettings(this);
}
项目:DecompiledMinecraft    文件:C0EPacketClickWindow.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processClickWindow(this);
}
项目:DecompiledMinecraft    文件:C19PacketResourcePackStatus.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.handleResourcePackStatus(this);
}
项目:DecompiledMinecraft    文件:C12PacketUpdateSign.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processUpdateSign(this);
}
项目:DecompiledMinecraft    文件:C01PacketChatMessage.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processChatMessage(this);
}
项目:DecompiledMinecraft    文件:C03PacketPlayer.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processPlayer(this);
}
项目:Backmemed    文件:CPacketPlayer.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processPlayer(this);
}
项目:DecompiledMinecraft    文件:C0FPacketConfirmTransaction.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processConfirmTransaction(this);
}
项目:Backmemed    文件:CPacketClientStatus.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processClientStatus(this);
}
项目:DecompiledMinecraft    文件:C02PacketUseEntity.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processUseEntity(this);
}
项目:DecompiledMinecraft    文件:C0DPacketCloseWindow.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processCloseWindow(this);
}
项目:DecompiledMinecraft    文件:C07PacketPlayerDigging.java   
/**
 * Passes this Packet on to the NetHandler for processing.
 */
public void processPacket(INetHandlerPlayServer handler)
{
    handler.processPlayerDigging(this);
}