Beispiel #1
0
 public virtual bool CanInteractWith(net.minecraft.src.EntityPlayer entityplayer)
 {
     if (worldObj.GetBlockTileEntity(xCoord, yCoord, zCoord) != this)
     {
         return(false);
     }
     return(entityplayer.GetDistanceSq((double)xCoord + 0.5D, (double)yCoord + 0.5D, (
                                           double)zCoord + 0.5D) <= 64D);
 }
Beispiel #2
0
 public override bool CanInteractWith(net.minecraft.src.EntityPlayer entityplayer)
 {
     if (field_20150_c.GetBlockId(field_20149_h, field_20148_i, field_20147_j) != net.minecraft.src.Block
         .WORKBENCH.ID)
     {
         return(false);
     }
     return(entityplayer.GetDistanceSq((double)field_20149_h + 0.5D, (double)field_20148_i
                                       + 0.5D, (double)field_20147_j + 0.5D) <= 64D);
 }