Ejemplo n.º 1
0
 @Override
 public void validate() {
   super.validate();
   bindPipe();
   if (pipe != null) {
     pipe.validate();
   }
 }
Ejemplo n.º 2
0
  /** Sets the TileEntity for a given block in this chunk */
  public void setChunkBlockTileEntity(int par1, int par2, int par3, TileEntity par4TileEntity) {
    ChunkPosition var5 = new ChunkPosition(par1, par2, par3);
    par4TileEntity.setWorldObj(this.worldObj);
    par4TileEntity.xCoord = this.xPosition * 16 + par1;
    par4TileEntity.yCoord = par2;
    par4TileEntity.zCoord = this.zPosition * 16 + par3;

    if (this.getBlockID(par1, par2, par3) != 0
        && Block.blocksList[this.getBlockID(par1, par2, par3)] instanceof ITileEntityProvider) {
      if (this.chunkTileEntityMap.containsKey(var5)) {
        ((TileEntity) this.chunkTileEntityMap.get(var5)).invalidate();
      }

      par4TileEntity.validate();
      this.chunkTileEntityMap.put(var5, par4TileEntity);
    }
  }
Ejemplo n.º 3
0
 public void validate() {
   super.validate();
   initialize();
 }