Package net.minecraft.util

Examples of net.minecraft.util.ChunkCoordinates


  }

  @Override
  public ChunkCoordinates getPlayerCoordinates() {
    return new ChunkCoordinates(tablet.xCoord, tablet.yCoord, tablet.zCoord);
  }
View Full Code Here


    if (stack != null && ItemSkyPearl.isAttuned(stack)) {
      int x = ItemSkyPearl.getX(stack);
      int y = ItemSkyPearl.getY(stack);
      int z = ItemSkyPearl.getZ(stack);

      if (teleportPlayer(player, new ChunkCoordinates(x, y, z)))
        teleportedThisTick = true;
    }
  }
View Full Code Here

  private void renderPlayerLook(EntityPlayer player, ItemStack stack) {
    ChunkCoordinates[] coords = ItemPlacementMirror.getBlocksToPlace(stack, player);
    if (ItemPlacementMirror.hasBlocks(stack, player, coords)) {
      ItemStack block = new ItemStack(ItemPlacementMirror.getBlock(stack), 1, ItemPlacementMirror.getBlockMeta(stack));
      ChunkCoordinates lastCoords = new ChunkCoordinates(0, 0, 0);

      GL11.glPushMatrix();
      GL11.glEnable(GL11.GL_BLEND);
      GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
View Full Code Here

      if (entity != null) {
        entity.copyDataFrom(e, true);

        if (j == 1 && par1 == 1) {
          ChunkCoordinates chunkcoordinates = worldserver1.getSpawnPoint();
          chunkcoordinates.posY = e.worldObj.getTopSolidOrLiquidBlock(chunkcoordinates.posX, chunkcoordinates.posZ);
          entity.setLocationAndAngles((double) chunkcoordinates.posX, (double) chunkcoordinates.posY, (double) chunkcoordinates.posZ, entity.rotationYaw, entity.rotationPitch);
        }

        worldserver1.spawnEntityInWorld(entity);
View Full Code Here

  }

  private Object[] getHomeImplementation() {
    if (golem == null)
      return new String[]{ };
    ChunkCoordinates home = golem.getHomePosition();
    return new Integer[]{ home.posX, home.posY, home.posZ, golem.homeFacing };
  }
View Full Code Here

    return false;
  }

  @Override
  public ChunkCoordinates getPlayerCoordinates() {
    return new ChunkCoordinates(0, 0, 0);
  }
View Full Code Here

    @Override
    public int getRespawnDimension (EntityPlayerMP player)
    {
        if (PHNatura.canRespawnInNether)
        {
            ChunkCoordinates coords = player.getBedLocation(-1);
            if (coords != null)
                return -1;
        }
        return 0;
    }
View Full Code Here

    Tessellator.renderingWorldRenderer = false;

    EntityPlayer player = Minecraft.getMinecraft().thePlayer;
    ItemStack stack = player.getCurrentEquippedItem();
    if(stack != null && stack.getItem() instanceof ICoordBoundItem) {
      ChunkCoordinates coords = ((ICoordBoundItem) stack.getItem()).getBinding(stack);
      if(coords != null)
        renderBlockOutlineAt(coords, Color.HSBtoRGB(ClientTickHandler.ticksInGame % 200 / 200F, 0.6F, 1F));
    }

    GL11.glEnable(GL11.GL_DEPTH_TEST);
View Full Code Here

      return Vector3.fromTileEntityCenter(tile);
    }

    public LightningBolt(World world, Vector3 sourcevec, TileEntity target, float ticksPerMeter, long seed, int colorOuter, int colorInner) {
      this(world, sourcevec, getFocalPoint(target), ticksPerMeter, seed, colorOuter, colorInner);
      this.target = new ChunkCoordinates(target.xCoord, target.yCoord, target.zCoord);
    }
View Full Code Here

        for(int i = -range; i < range + 1; i++)
          for(int j = -range; j < range + 1; j++) {
            int x1 = x + i;
            int z1 = z + j;

            addIceBlock(player, new ChunkCoordinates(x1, y, z1));
          }
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.minecraft.util.ChunkCoordinates

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.