Beispiel #1
0
 public bool canEntityBeSeen(Entity entity)
 {
     return
         (worldObj.rayTraceBlocks(Vec3D.createVector(posX, posY + getEyeHeight(), posZ),
                                  Vec3D.createVector(entity.posX, entity.posY + entity.getEyeHeight(),
                                                     entity.posZ)) == null);
 }