Examples of generate()


Examples of net.glowstone.generator.TreeGenerator.generate()

    @Override
    public boolean generateTree(Location loc, TreeType type, BlockChangeDelegate delegate) {
        final BlockStateDelegate blockStateDelegate = new BlockStateDelegate();
        final TreeGenerator generator = new TreeGenerator(blockStateDelegate);
        if (generator.generate(random, loc, type)) {
            final List<BlockState> blockStates = new ArrayList<BlockState>(blockStateDelegate.getBlockStates());
            StructureGrowEvent growEvent = new StructureGrowEvent(loc, type, false, null, blockStates);
            EventFactory.callEvent(growEvent);
            if (!growEvent.isCancelled()) {
                for (BlockState state : blockStates) {
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.UUIDGen.generate()

          // We are in the middle of a transaction, and we're about to cross a process boundary
          TransactionData data = stack.get(0);
          if (data.distributedTransactionID == null) {
            // This is the first time the transaction has cross a process boundary, allocate an id
            UUIDGen gen = new UUIDGen();
            gen.generate();
            data.distributedTransactionID = gen.asCharPtr();
          }
          // Add this key to the list of invokers if not already there
          data.currentInvoker = remoteMechanism;
          if (data.distributedInvokers != null) {
View Full Code Here

Examples of net.jangaroo.properties.PropertyClassGenerator.generate()

      throw new MojoExecutionException("configuration failure", e);
    }

    PropertyClassGenerator generator = new PropertyClassGenerator(config);
    try {
      generator.generate();
    } catch (PropcException e) {
      throw new MojoExecutionException("Generation failure", e);
    }

  }
View Full Code Here

Examples of net.minecraft.world.gen.feature.WorldGenDesertWells.generate()

        if (rand.nextInt(1000) == 0)
        {
            final int x1 = x + rand.nextInt(16) + 8;
            final int z1 = z + rand.nextInt(16) + 8;
            final WorldGenDesertWells wells = new WorldGenDesertWells();
            wells.generate(world, rand, x1,
                    world.getHeightValue(x1, z1) + 1, z1);
        }
    }
}
View Full Code Here

Examples of net.minecraft.world.gen.feature.WorldGenMegaJungle.generate()

            @Override
            public boolean generate(World world, Random rand, int x, int y, int z)
            {
              // TODO: Check correct generation
                final WorldGenerator worldGen = new WorldGenMegaJungle(false, 10 + rand.nextInt(20), 0, 3, 3);
                return worldGen.generate(world, rand, x, y, z);
            }
           
        }, 6);
        addWeightedTreeGenForBiome(biome.get(), new WorldGenAbstractTree(false)
        {
View Full Code Here

Examples of net.minecraft.world.gen.feature.WorldGenMinable.generate()

        int firstBlockZCoord = 16 * chunkZ + random.nextInt(16);
        ItemStack itemStack = EnumOreFrequency.getRandomOre(random);
        for (int l = 0; l < 200; l++) {
          int firstBlockYCoord = random.nextInt(245) + 6;
          WorldGenMinable mineable = new WorldGenMinable(Block.getBlockFromItem(itemStack.getItem()), itemStack.getItemDamage(), random.nextInt(20), Blocks.bedrock);
          mineable.generate(world, random, firstBlockXCoord, firstBlockYCoord, firstBlockZCoord);
        }
      }
    }
  }

View Full Code Here

Examples of net.minecraft.world.gen.feature.WorldGenShrub.generate()

        {
            @Override
            public boolean generate(World world, Random rand, int x, int y, int z)
            {
                final WorldGenerator worldGen = new WorldGenShrub(3, rand.nextInt(3));
                return worldGen.generate(world, rand, x, y, z);
            }
        }, 50);
        addWeightedTreeGenForBiome(biome.get(), JAPANESE_MAPLE_SHRUB_GEN, 50);
    }
   
View Full Code Here

Examples of net.minecraft.world.gen.feature.WorldGenTrees.generate()

        {
            @Override
            public boolean generate(World world, Random rand, int x, int y, int z)
            {
                final WorldGenerator worldGen = new WorldGenTrees(false, 4 + rand.nextInt(7), 3, 3, true);
                return worldGen.generate(world, rand, x, y, z);
            }
        }, 12);
    }
   
    private static void addGrass(Optional<? extends BiomeGenBase> biome)
View Full Code Here

Examples of net.minecraft.world.gen.feature.WorldGenerator.generate()

        else if (this.blockID == Block.mushroomRed.blockID)
        {
            worldgenbigmushroom = new WorldGenBigMushroom(1);
        }*/

        if (obj != null && obj.generate(world, random, x, y, z))
        {
            return true;
        }
        else
        {
View Full Code Here

Examples of net.octal.tools.base.PasswordGenerator.generate()

        if (customerId.isEmpty())
        {
            final Person customer = (Person) request.getSession().getAttribute("customer");
            PasswordGenerator generator = Generator.newPasswordGenerator(8, true, true, true, true);
            try {
                final String password = generator.generate();
                HashFunction hf = Hashing.sha1();
                HashCode hc = hf.newHasher()
                    .putString(password)
                    .hash();
                customer.setPassword(hc.toString());
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.