Java 类net.minecraft.network.play.server.SPacketSpawnGlobalEntity 实例源码

项目:Backmemed    文件:WorldServer.java   
/**
 * adds a lightning bolt to the list of lightning bolts in this world.
 */
public boolean addWeatherEffect(Entity entityIn)
{
    if (super.addWeatherEffect(entityIn))
    {
        this.mcServer.getPlayerList().sendToAllNearExcept((EntityPlayer)null, entityIn.posX, entityIn.posY, entityIn.posZ, 512.0D, this.provider.getDimensionType().getId(), new SPacketSpawnGlobalEntity(entityIn));
        return true;
    }
    else
    {
        return false;
    }
}
项目:CustomWorldGen    文件:WorldServer.java   
/**
 * adds a lightning bolt to the list of lightning bolts in this world.
 */
public boolean addWeatherEffect(Entity entityIn)
{
    if (super.addWeatherEffect(entityIn))
    {
        this.mcServer.getPlayerList().sendToAllNearExcept((EntityPlayer)null, entityIn.posX, entityIn.posY, entityIn.posZ, 512.0D, this.provider.getDimension(), new SPacketSpawnGlobalEntity(entityIn));
        return true;
    }
    else
    {
        return false;
    }
}
项目:Backmemed    文件:INetHandlerPlayClient.java   
/**
 * Handles globally visible entities. Used in vanilla for lightning bolts
 */
void handleSpawnGlobalEntity(SPacketSpawnGlobalEntity packetIn);
项目:CustomWorldGen    文件:INetHandlerPlayClient.java   
/**
 * Handles globally visible entities. Used in vanilla for lightning bolts
 */
void handleSpawnGlobalEntity(SPacketSpawnGlobalEntity packetIn);