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

项目:DecompiledMinecraft    文件:NetHandlerPlayClient.java   
public void handleEffect(S28PacketEffect packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);

    if (packetIn.isSoundServerwide())
    {
        this.gameController.theWorld.playBroadcastSound(packetIn.getSoundType(), packetIn.getSoundPos(), packetIn.getSoundData());
    }
    else
    {
        this.gameController.theWorld.playAuxSFX(packetIn.getSoundType(), packetIn.getSoundPos(), packetIn.getSoundData());
    }
}
项目:BaseClient    文件:NetHandlerPlayClient.java   
public void handleEffect(S28PacketEffect packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);

    if (packetIn.isSoundServerwide())
    {
        this.gameController.theWorld.playBroadcastSound(packetIn.getSoundType(), packetIn.getSoundPos(), packetIn.getSoundData());
    }
    else
    {
        this.gameController.theWorld.playAuxSFX(packetIn.getSoundType(), packetIn.getSoundPos(), packetIn.getSoundData());
    }
}
项目:BaseClient    文件:NetHandlerPlayClient.java   
public void handleEffect(S28PacketEffect packetIn) {
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);

    if (packetIn.isSoundServerwide()) {
        this.gameController.theWorld.playBroadcastSound(packetIn.getSoundType(), packetIn.getSoundPos(),
                packetIn.getSoundData());
    } else {
        this.gameController.theWorld.playAuxSFX(packetIn.getSoundType(), packetIn.getSoundPos(),
                packetIn.getSoundData());
    }
}
项目:Resilience-Client-Source    文件:NetHandlerPlayClient.java   
public void handleEffect(S28PacketEffect p_147277_1_)
{
    if (p_147277_1_.func_149244_c())
    {
        this.gameController.theWorld.playBroadcastSound(p_147277_1_.func_149242_d(), p_147277_1_.func_149240_f(), p_147277_1_.func_149243_g(), p_147277_1_.func_149239_h(), p_147277_1_.func_149241_e());
    }
    else
    {
        this.gameController.theWorld.playAuxSFX(p_147277_1_.func_149242_d(), p_147277_1_.func_149240_f(), p_147277_1_.func_149243_g(), p_147277_1_.func_149239_h(), p_147277_1_.func_149241_e());
    }
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleEffect(S28PacketEffect p_147277_1_)
{
    if (p_147277_1_.func_149244_c())
    {
        this.gameController.theWorld.playBroadcastSound(p_147277_1_.func_149242_d(), p_147277_1_.func_149240_f(), p_147277_1_.func_149243_g(), p_147277_1_.func_149239_h(), p_147277_1_.func_149241_e());
    }
    else
    {
        this.gameController.theWorld.playAuxSFX(p_147277_1_.func_149242_d(), p_147277_1_.func_149240_f(), p_147277_1_.func_149243_g(), p_147277_1_.func_149239_h(), p_147277_1_.func_149241_e());
    }
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleEffect(S28PacketEffect p_147277_1_)
{
    if (p_147277_1_.func_149244_c())
    {
        this.gameController.theWorld.playBroadcastSound(p_147277_1_.func_149242_d(), p_147277_1_.func_149240_f(), p_147277_1_.func_149243_g(), p_147277_1_.func_149239_h(), p_147277_1_.func_149241_e());
    }
    else
    {
        this.gameController.theWorld.playAuxSFX(p_147277_1_.func_149242_d(), p_147277_1_.func_149240_f(), p_147277_1_.func_149243_g(), p_147277_1_.func_149239_h(), p_147277_1_.func_149241_e());
    }
}
项目:DecompiledMinecraft    文件:WorldManager.java   
public void playAuxSFX(EntityPlayer player, int sfxType, BlockPos blockPosIn, int p_180439_4_)
{
    this.mcServer.getConfigurationManager().sendToAllNearExcept(player, (double)blockPosIn.getX(), (double)blockPosIn.getY(), (double)blockPosIn.getZ(), 64.0D, this.theWorldServer.provider.getDimensionId(), new S28PacketEffect(sfxType, blockPosIn, p_180439_4_, false));
}
项目:DecompiledMinecraft    文件:WorldManager.java   
public void broadcastSound(int p_180440_1_, BlockPos p_180440_2_, int p_180440_3_)
{
    this.mcServer.getConfigurationManager().sendPacketToAllPlayers(new S28PacketEffect(p_180440_1_, p_180440_2_, p_180440_3_, true));
}
项目:DecompiledMinecraft    文件:WorldManager.java   
public void playAuxSFX(EntityPlayer player, int sfxType, BlockPos blockPosIn, int p_180439_4_)
{
    this.mcServer.getConfigurationManager().sendToAllNearExcept(player, (double)blockPosIn.getX(), (double)blockPosIn.getY(), (double)blockPosIn.getZ(), 64.0D, this.theWorldServer.provider.getDimensionId(), new S28PacketEffect(sfxType, blockPosIn, p_180439_4_, false));
}
项目:DecompiledMinecraft    文件:WorldManager.java   
public void broadcastSound(int p_180440_1_, BlockPos p_180440_2_, int p_180440_3_)
{
    this.mcServer.getConfigurationManager().sendPacketToAllPlayers(new S28PacketEffect(p_180440_1_, p_180440_2_, p_180440_3_, true));
}
项目:BaseClient    文件:WorldManager.java   
public void playAuxSFX(EntityPlayer player, int sfxType, BlockPos blockPosIn, int p_180439_4_)
{
    this.mcServer.getConfigurationManager().sendToAllNearExcept(player, (double)blockPosIn.getX(), (double)blockPosIn.getY(), (double)blockPosIn.getZ(), 64.0D, this.theWorldServer.provider.getDimensionId(), new S28PacketEffect(sfxType, blockPosIn, p_180439_4_, false));
}
项目:BaseClient    文件:WorldManager.java   
public void broadcastSound(int p_180440_1_, BlockPos p_180440_2_, int p_180440_3_)
{
    this.mcServer.getConfigurationManager().sendPacketToAllPlayers(new S28PacketEffect(p_180440_1_, p_180440_2_, p_180440_3_, true));
}
项目:BaseClient    文件:WorldManager.java   
public void playAuxSFX(EntityPlayer player, int sfxType, BlockPos blockPosIn, int p_180439_4_)
{
    this.mcServer.getConfigurationManager().sendToAllNearExcept(player, (double)blockPosIn.getX(), (double)blockPosIn.getY(), (double)blockPosIn.getZ(), 64.0D, this.theWorldServer.provider.getDimensionId(), new S28PacketEffect(sfxType, blockPosIn, p_180439_4_, false));
}
项目:BaseClient    文件:WorldManager.java   
public void broadcastSound(int p_180440_1_, BlockPos p_180440_2_, int p_180440_3_)
{
    this.mcServer.getConfigurationManager().sendPacketToAllPlayers(new S28PacketEffect(p_180440_1_, p_180440_2_, p_180440_3_, true));
}
项目:Resilience-Client-Source    文件:WorldManager.java   
/**
 * Plays a pre-canned sound effect along with potentially auxiliary data-driven one-shot behaviour (particles, etc).
 */
public void playAuxSFX(EntityPlayer par1EntityPlayer, int par2, int par3, int par4, int par5, int par6)
{
    this.mcServer.getConfigurationManager().func_148543_a(par1EntityPlayer, (double)par3, (double)par4, (double)par5, 64.0D, this.theWorldServer.provider.dimensionId, new S28PacketEffect(par2, par3, par4, par5, par6, false));
}
项目:Resilience-Client-Source    文件:WorldManager.java   
public void broadcastSound(int par1, int par2, int par3, int par4, int par5)
{
    this.mcServer.getConfigurationManager().func_148540_a(new S28PacketEffect(par1, par2, par3, par4, par5, true));
}
项目:Cauldron    文件:WorldManager.java   
public void playAuxSFX(EntityPlayer p_72706_1_, int p_72706_2_, int p_72706_3_, int p_72706_4_, int p_72706_5_, int p_72706_6_)
{
    this.mcServer.getConfigurationManager().sendToAllNearExcept(p_72706_1_, (double)p_72706_3_, (double)p_72706_4_, (double)p_72706_5_, 64.0D, this.theWorldServer.provider.dimensionId, new S28PacketEffect(p_72706_2_, p_72706_3_, p_72706_4_, p_72706_5_, p_72706_6_, false));
}
项目:Cauldron    文件:WorldManager.java   
public void broadcastSound(int p_82746_1_, int p_82746_2_, int p_82746_3_, int p_82746_4_, int p_82746_5_)
{
    this.mcServer.getConfigurationManager().sendPacketToAllPlayers(new S28PacketEffect(p_82746_1_, p_82746_2_, p_82746_3_, p_82746_4_, p_82746_5_, true));
}
项目:Cauldron    文件:EntityLivingBase.java   
protected void updateFallState(double p_70064_1_, boolean p_70064_3_)
{
    if (!this.isInWater())
    {
        this.handleWaterMovement();
    }

    if (p_70064_3_ && this.fallDistance > 0.0F)
    {
        int i = MathHelper.floor_double(this.posX);
        int j = MathHelper.floor_double(this.posY - 0.20000000298023224D - (double)this.yOffset);
        int k = MathHelper.floor_double(this.posZ);
        Block block = this.worldObj.getBlock(i, j, k);

        if (block.getMaterial() == Material.air)
        {
            int l = this.worldObj.getBlock(i, j - 1, k).getRenderType();

            if (l == 11 || l == 32 || l == 21)
            {
                block = this.worldObj.getBlock(i, j - 1, k);
            }
        }
        else if (!this.worldObj.isRemote && this.fallDistance > 3.0F)
        {
            // CraftBukkit start - supply player as argument in particles for visibility API to work
            if (this instanceof EntityPlayerMP)
            {
                this.worldObj.playAuxSFXAtEntity((EntityPlayer) this, 2006, i, j, k, MathHelper.ceiling_float_int(this.fallDistance - 3.0F));
                ((EntityPlayerMP) this).playerNetServerHandler.sendPacket(new S28PacketEffect(2006, i, j, k, MathHelper.ceiling_float_int(this.fallDistance - 3.0F), false));
            }
            else
            {
                this.worldObj.playAuxSFX(2006, i, j, k, MathHelper.ceiling_float_int(this.fallDistance - 3.0F));
            }

            // CraftBukkit end
        }

        block.onFallenUpon(this.worldObj, i, j, k, this, this.fallDistance);
    }

    super.updateFallState(p_70064_1_, p_70064_3_);
}
项目:Cauldron    文件:WorldManager.java   
public void playAuxSFX(EntityPlayer p_72706_1_, int p_72706_2_, int p_72706_3_, int p_72706_4_, int p_72706_5_, int p_72706_6_)
{
    this.mcServer.getConfigurationManager().sendToAllNearExcept(p_72706_1_, (double)p_72706_3_, (double)p_72706_4_, (double)p_72706_5_, 64.0D, this.theWorldServer.provider.dimensionId, new S28PacketEffect(p_72706_2_, p_72706_3_, p_72706_4_, p_72706_5_, p_72706_6_, false));
}
项目:Cauldron    文件:WorldManager.java   
public void broadcastSound(int p_82746_1_, int p_82746_2_, int p_82746_3_, int p_82746_4_, int p_82746_5_)
{
    this.mcServer.getConfigurationManager().sendPacketToAllPlayers(new S28PacketEffect(p_82746_1_, p_82746_2_, p_82746_3_, p_82746_4_, p_82746_5_, true));
}
项目:DecompiledMinecraft    文件:INetHandlerPlayClient.java   
void handleEffect(S28PacketEffect packetIn);
项目:DecompiledMinecraft    文件:INetHandlerPlayClient.java   
void handleEffect(S28PacketEffect packetIn);
项目:BaseClient    文件:INetHandlerPlayClient.java   
void handleEffect(S28PacketEffect packetIn);
项目:BaseClient    文件:INetHandlerPlayClient.java   
void handleEffect(S28PacketEffect packetIn);
项目:Resilience-Client-Source    文件:INetHandlerPlayClient.java   
void handleEffect(S28PacketEffect var1);
项目:Cauldron    文件:INetHandlerPlayClient.java   
void handleEffect(S28PacketEffect p_147277_1_);
项目:Cauldron    文件:INetHandlerPlayClient.java   
void handleEffect(S28PacketEffect p_147277_1_);