Package appeng.helpers

Examples of appeng.helpers.MeteoritePlacer.spawnMeteorite()


  {
    for (int tries = 0; tries < 20; tries++)
    {
      MeteoritePlacer mp = new MeteoritePlacer();

      if ( mp.spawnMeteorite( new MeteoritePlacer.ChunkOnly( w, x >> 4, z >> 4 ), x, depth, z ) )
      {
        int px = x >> 4;
        int pz = z >> 4;

        for (int cx = px - 6; cx < px + 6; cx++)
View Full Code Here


                continue;

              if ( WorldSettings.getInstance().hasGenerated( w.provider.dimensionId, cx, cz ) )
              {
                MeteoritePlacer mp2 = new MeteoritePlacer();
                mp2.spawnMeteorite( new MeteoritePlacer.ChunkOnly( w, cx, cz ), mp.getSettings() );
              }
            }
          }

        return true;
View Full Code Here

      // near by meteorites!
      for (NBTTagCompound data : getNearByMeteorites( w, chunkX, chunkZ ))
      {
        MeteoritePlacer mp = new MeteoritePlacer();
        mp.spawnMeteorite( new MeteoritePlacer.ChunkOnly( w, chunkX, chunkZ ), data );

        minSqDist = Math.min( minSqDist, mp.getSqDistance( x, z ) );
      }

      boolean isCluster = (minSqDist < 30 * 30) && Platform.getRandomFloat() < AEConfig.instance.meteoriteClusterChance;
View Full Code Here

  {
    if ( Platform.isClient() )
      return false;

    MeteoritePlacer mp = new MeteoritePlacer();
    boolean worked = mp.spawnMeteorite( new MeteoritePlacer.StandardWorld( world ), x, y, z );

    if ( !worked )
      player.addChatMessage( new ChatComponentText( "Un-suitable Location." ) );

    return true;
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.