Package net.minecraft.util

Examples of net.minecraft.util.ChunkCoordinates


  private boolean shouldDoFakeParticles() {
    if(ConfigHandler.staticWandBeam)
      return true;

    ChunkCoordinates coords = getBurstSourceChunkCoordinates();
    TileEntity tile = worldObj.getTileEntity(coords.posX, coords.posY, coords.posZ);
    if(tile != null && tile instanceof TileSpreader)
      return getMana() != getStartingMana() && fullManaLastTick || Math.abs(((TileSpreader) tile).burstParticleTick - getTicksExisted()) < 4;
    return false;
  }
View Full Code Here


      return getMana() != getStartingMana() && fullManaLastTick || Math.abs(((TileSpreader) tile).burstParticleTick - getTicksExisted()) < 4;
    return false;
  }

  private void incrementFakeParticleTick() {
    ChunkCoordinates coords = getBurstSourceChunkCoordinates();
    TileEntity tile = worldObj.getTileEntity(coords.posX, coords.posY, coords.posZ);
    if(tile != null && tile instanceof TileSpreader) {
      TileSpreader spreader = (TileSpreader) tile;
      spreader.burstParticleTick += 2;
      if(spreader.lastBurstDeathTick != -1 && spreader.burstParticleTick > spreader.lastBurstDeathTick)
View Full Code Here

        spreader.burstParticleTick = 0;
    }
  }

  private void setDeathTicksForFakeParticle() {
    ChunkCoordinates coords = getBurstSourceChunkCoordinates();
    TileEntity tile = worldObj.getTileEntity(coords.posX, coords.posY, coords.posZ);
    if(tile != null && tile instanceof TileSpreader)
      ((TileSpreader) tile).lastBurstDeathTick = getTicksExisted();
  }
View Full Code Here

    public PositionProperties(Entity entity) {
      int x = MathHelper.floor_double(entity.posX);
      int y = MathHelper.floor_double(entity.posY);
      int z = MathHelper.floor_double(entity.posZ);
      coords = new ChunkCoordinates(x, y, z);
      block = entity.worldObj.getBlock(x, y, z);
      meta = entity.worldObj.getBlockMetadata(x, y, z);
    }
View Full Code Here

    if(needsNew) {
      IManaNetwork network = BotaniaAPI.internalHandler.getManaNetworkInstance();
      int size = network.getAllCollectorsInWorld(supertile.getWorldObj()).size();
      if(BotaniaAPI.internalHandler.shouldForceCheck() || size != sizeLastCheck) {
        ChunkCoordinates coords = new ChunkCoordinates(supertile.xCoord, supertile.yCoord, supertile.zCoord);
        linkedCollector = network.getClosestCollector(coords, supertile.getWorldObj(), range);
        sizeLastCheck = size;
      }
    }
  }
View Full Code Here

    int x = cmp.getInteger(TAG_COLLECTOR_X);
    int y = cmp.getInteger(TAG_COLLECTOR_Y);
    int z = cmp.getInteger(TAG_COLLECTOR_Z);

    cachedCollectorCoordinates = new ChunkCoordinates(x, y, z);
  }
View Full Code Here

  @Override
  public ChunkCoordinates getBinding() {
    if(linkedCollector == null)
      return null;
    return new ChunkCoordinates(linkedCollector.xCoord, linkedCollector.yCoord, linkedCollector.zCoord);
  }
View Full Code Here

    if(needsNew) {
      IManaNetwork network = BotaniaAPI.internalHandler.getManaNetworkInstance();
      int size = network.getAllPoolsInWorld(supertile.getWorldObj()).size();
      if(BotaniaAPI.internalHandler.shouldForceCheck() || size != sizeLastCheck) {
        ChunkCoordinates coords = new ChunkCoordinates(supertile.xCoord, supertile.yCoord, supertile.zCoord);
        linkedPool = network.getClosestPool(coords, supertile.getWorldObj(), range);
        sizeLastCheck = size;
      }
    }
  }
View Full Code Here

    int x = cmp.getInteger(TAG_POOL_X);
    int y = cmp.getInteger(TAG_POOL_Y);
    int z = cmp.getInteger(TAG_POOL_Z);

    cachedPoolCoordinates = new ChunkCoordinates(x, y, z);
  }
View Full Code Here

  @Override
  public ChunkCoordinates getBinding() {
    if(linkedPool == null)
      return null;
    return new ChunkCoordinates(linkedPool.xCoord, linkedPool.yCoord, linkedPool.zCoord);
  }
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.