Package net.minecraft.util

Examples of net.minecraft.util.AxisAlignedBB


    World world = housing.getWorld();

    if (isHalted(storedData, housing))
      return storedData;

    AxisAlignedBB hurtBox = getBounding(genome, housing, 1.0f);
    @SuppressWarnings("rawtypes")
    List list = world.getEntitiesWithinAABB(EntityLivingBase.class, hurtBox);

    for (Object obj : list) {
      EntityLivingBase entity = (EntityLivingBase) obj;
View Full Code Here


    Vect offset = new Vect(housing.getOffset());

    Vect min = coords.add(offset);
    Vect max = coords.add(offset).add(area);

    AxisAlignedBB harvestBox = AxisAlignedBB.getBoundingBox(min.x, min.y, min.z, max.x, max.y, max.z);
    List<Entity> list = getWorld().getEntitiesWithinAABB(Entity.class, harvestBox);

    for (Entity entity : list) {
      if (entity instanceof EntityItem) {
        EntityItem item = (EntityItem) entity;
View Full Code Here

                X = parseDouble(sender, split[0], sender.posX);
                Y = parseDouble(sender, split[1], sender.posY);
                Z = parseDouble(sender, split[2], sender.posZ);
            }
        }
        AxisAlignedBB pool = AxisAlignedBB.getBoundingBox(X - radius, Y - radius, Z - radius, X + radius + 1, Y + radius + 1, Z + radius + 1);
        TaskRegistry.registerTask(new CommandButcherTickTask(sender, mobType, pool, radius, sender.dimension));
    }
View Full Code Here

    if (args.length == 4)
    {
      worldID = parseInt(sender, args[3]);
    }
        WorldPoint center = new WorldPoint(worldID, x, y, z);
        AxisAlignedBB pool = AxisAlignedBB.getBoundingBox(center.getX() - radius, center.getY() - radius, center.getZ() - radius, center.getX() + radius + 1, center.getY() + radius + 1,
                center.getZ() + radius + 1);
        TaskRegistry.registerTask(new CommandButcherTickTask(sender, mobType, pool, radius, worldID));
    }
View Full Code Here

        {
            return block != null && block.isLadder(world, x, y, z, entity);
        }
        else
        {
            AxisAlignedBB bb = entity.boundingBox;
            int mX = MathHelper.floor_double(bb.minX);
            int mY = MathHelper.floor_double(bb.minY);
            int mZ = MathHelper.floor_double(bb.minZ);
            for (int y2 = mY; y2 < bb.maxY; y2++)
            {
View Full Code Here

*/
public class JubilanceProviderHermit extends JubilanceDefault {

  @Override
  public boolean isJubilant(IAlleleBeeSpecies species, IBeeGenome genome, IBeeHousing housing) {
    AxisAlignedBB bounding = this.getBounding(genome, housing, 1.0f);

    @SuppressWarnings("rawtypes")
    List list = housing.getWorld().getEntitiesWithinAABB(EntityLiving.class, bounding);
    if (list.size() > 0)
      return false;
View Full Code Here

    World world = housing.getWorld();

    if (isHalted(storedData, housing))
      return storedData;

    AxisAlignedBB infectionBox = getBounding(genome, housing, 1.0f);
    @SuppressWarnings("rawtypes")
    List list = world.getEntitiesWithinAABB(EntityPlayer.class, infectionBox);

    for (Object obj : list) {
View Full Code Here

  public IEffectData doEffect(IBeeGenome genome, IEffectData storedData, IBeeHousing housing) {

    if (isHalted(storedData, housing))
      return storedData;

    AxisAlignedBB beatifyBox = getBounding(genome, housing, 1.0f);
    @SuppressWarnings("rawtypes")
    List list = housing.getWorld().getEntitiesWithinAABB(EntityPlayer.class, beatifyBox);

    for (Object obj : list) {
      EntityPlayer player = (EntityPlayer) obj;
View Full Code Here

  public IEffectData doEffect(IBeeGenome genome, IEffectData storedData, IBeeHousing housing) {

    if (isHalted(storedData, housing))
      return storedData;

    AxisAlignedBB beatifyBox = getBounding(genome, housing, 1.0f);
    @SuppressWarnings("rawtypes")
    List list = housing.getWorld().getEntitiesWithinAABB(EntityPlayer.class, beatifyBox);

    for (Object obj : list) {
      EntityPlayer player = (EntityPlayer) obj;
View Full Code Here

  public IEffectData doEffect(IBeeGenome genome, IEffectData storedData, IBeeHousing housing) {

    if (isHalted(storedData, housing))
      return storedData;

    AxisAlignedBB hurtBox = getBounding(genome, housing, 1.0f);
    @SuppressWarnings("rawtypes")
    List list = housing.getWorld().getEntitiesWithinAABB(EntityLivingBase.class, hurtBox);

    for (Object obj : list) {
      EntityLivingBase entity = (EntityLivingBase) obj;
View Full Code Here

TOP

Related Classes of net.minecraft.util.AxisAlignedBB

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.