Package net.minecraft.util

Examples of net.minecraft.util.AxisAlignedBB.offset()


    if (box == null) return;
   
    double xOff = player.lastTickPosX + (player.posX - player.lastTickPosX) * event.partialTicks;
    double yOff = player.lastTickPosY + (player.posY - player.lastTickPosY) * event.partialTicks;
    double zOff = player.lastTickPosZ + (player.posZ - player.lastTickPosZ) * event.partialTicks;
    box.offset(-xOff, -yOff, -zOff);
       
    GL11.glEnable(GL11.GL_BLEND);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    GL11.glColor4f(0.0F, 0.0F, 0.0F, 0.4F);
    GL11.glLineWidth(2.0F);
View Full Code Here


            side = ForgeDirection.NORTH;
        }
        AxisAlignedBB box = AxisAlignedBB.getBoundingBox(0, 0, 0, 1, 1, 1);
        box = MiscTools.addCoordToAABB(box, side.offsetX, 0, side.offsetZ);
        box = MiscTools.addCoordToAABB(box, side.offsetX + 1, 1, side.offsetZ + 1);
        box = box.offset(getX(), getY(), getZ());
        return box;
    }

    @Override
    public ArrowDirection getRedSignDirection() {
View Full Code Here

            side = ForgeDirection.EAST;
        }
        AxisAlignedBB box = AxisAlignedBB.getBoundingBox(0, 0, 0, 1, 1, 1);
        box = box.addCoord(side.offsetX, side.offsetY, side.offsetZ);
        box = box.addCoord(side.offsetX + 1, side.offsetY + 1, side.offsetZ + 1);
        box = box.offset(getX(), getY(), getZ());
        return box;
    }

    @Override
    public ArrowDirection getRedSignDirection() {
View Full Code Here

    @SuppressWarnings("unchecked")
    public List<EntityLivingBase> getEntitiesInSteamArea() {
        AxisAlignedBB area = AxisAlignedBB.getBoundingBox(-0.5D, -0.5D, -0.5D, 0.5D, 0.5D, 0.5D);
        MiscTools.addCoordToAABB(area, direction.offsetX * RANGE, direction.offsetY * RANGE, direction.offsetZ * RANGE);
        area.offset(xCoord + 0.5, yCoord + 0.5, zCoord + 0.5);
        List<EntityLivingBase> entities = (List<EntityLivingBase>) worldObj.getEntitiesWithinAABB(EntityLivingBase.class, area);
        return entities;
    }

    @Override
View Full Code Here

  @Override
  public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int x, int y, int z) {
    int meta = world.getBlockMetadata(x, y, z);
    AxisAlignedBB bBox = getBoundingBox(meta);
    bBox.offset(x, y, z);
    return bBox;
  }

  @Override
  public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.