Package net.minecraft.network.play.server

Examples of net.minecraft.network.play.server.S35PacketUpdateTileEntity


 
  @Override
  public Packet getDescriptionPacket() {
    NBTTagCompound tag = new NBTTagCompound();
    writeCustomNBT(tag);
    return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
  }
View Full Code Here


  @Override
  public Packet getDescriptionPacket() {
    NBTTagCompound tag = new NBTTagCompound();
    writeCustomNBT(tag);
    return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
  }
View Full Code Here

  @Override
  public Packet getDescriptionPacket() {
    NBTTagCompound nbt = new NBTTagCompound();
    this.writeToNBT(nbt);
    return new S35PacketUpdateTileEntity(this.xCoord, this.yCoord, this.zCoord, 1, nbt);
  }
View Full Code Here

  @Override
  public Packet getDescriptionPacket() {
    NBTTagCompound nbttagcompound = new NBTTagCompound();
    writeCustomNBT(nbttagcompound);
    return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, -999, nbttagcompound);
  }
View Full Code Here

    if(!worldObj.isRemote) {
      NBTTagCompound nbttagcompound = new NBTTagCompound();
      writeCustomNBT(nbttagcompound);
      nbttagcompound.setInteger(TAG_KNOWN_MANA, getCurrentMana());
      if(player instanceof EntityPlayerMP)
        ((EntityPlayerMP) player).playerNetServerHandler.sendPacket(new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, -999, nbttagcompound));
    }

    worldObj.playSoundAtEntity(player, "botania:ding", 0.11F, 1F);
  }
View Full Code Here

      if(!worldObj.isRemote) {
        NBTTagCompound nbttagcompound = new NBTTagCompound();
        writeCustomNBT(nbttagcompound);
        nbttagcompound.setInteger(TAG_KNOWN_MANA, mana);
        if(player instanceof EntityPlayerMP)
          ((EntityPlayerMP) player).playerNetServerHandler.sendPacket(new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, -999, nbttagcompound));
      }
      worldObj.playSoundAtEntity(player, "botania:ding", 0.1F, 1F);
    } else {
      MovingObjectPosition pos = raytraceFromEntity(worldObj, player, true, 5);
      if(pos != null && pos.hitVec != null && !worldObj.isRemote) {
View Full Code Here

  public Packet getDescriptionPacket()
  {
    NBTTagCompound tagCompound = new NBTTagCompound();
    this.writeToNBT(tagCompound);
   
    return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 0, tagCompound);
  }
View Full Code Here

    @Override
    public Packet getDescriptionPacket ()
    {
        NBTTagCompound tag = new NBTTagCompound();
        writeNetworkNBT(tag);
        return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
    }
View Full Code Here

    public Packet getDescriptionPacket()
    {
        NBTTagCompound tags = new NBTTagCompound();
        tags.setByte("TeamID", base == null ? (byte)0 : (byte)base.getOwnerID());
        tags.setString("Map", base == null || base.getMap() == null ? "" : base.getMap().shortName);
        return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tags);
    }
View Full Code Here

    return compound;
  }
 
  @Override
  public Packet getDescriptionPacket() {
        return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 0, getDescriptionPacketData(new NBTTagCompound()));
  }
View Full Code Here

TOP

Related Classes of net.minecraft.network.play.server.S35PacketUpdateTileEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.