generate(world, rand, new BlockPos(x, y, z)); } } 代码示例来源:origin: SonOfTheStars/Logistics-Pipes-2 public void generate(World world, Random rand, int x, int z) { BlockPos pos; for(int i = 0; i<chunkOccurence; i++) { if(rand.nextInt(100)<weight) { pos = new Block...
importnet.minecraft.world.gen.feature.WorldGenerator;//导入方法依赖的package包/类@OverridepublicvoidgenerateTree(@Nonnull World worldIn, @Nonnull BlockPos pos, @Nonnull IBlockState state, @Nonnull Random rand){if(!net.minecraftforge.event.terraingen.TerrainGen.saplingGrowTree(worldIn, rand, pos)) ...
Simple, free, and easy-to-use online tool that generates random images. Simply press a button and generate a random image.
Incredibly simple, free, and fast browser-based utility for generating random JPEG pictures. Just set the image size and color and a new random JPEG will be instantly generated.
public void dropRandomLootFromLootTable(ResourceLocation dungeonLoot, boolean wasRecentlyHit, int lootingModifier, DamageSource source) { long LootTableSeed = 0; int maxCount = 0; int currentCount = 0; Random Randomize = new Random(); int roll = 0; // Things for Looting enchant calculations...
toBlockPos(position)); } 代码示例来源:origin: superckl/BiomeTweaker @Override public void generate(final World world, final Random rand, final BlockPos chunkPos) { for (int j = 0; j < this.count; ++j){ final BlockPos blockpos = chunkPos.add(rand.nextInt(16), rand.nextInt(this.max...
minable.generate(world, random, pos); } } } 开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:16,代码来源:CrystalOreFeature.java 示例5: addEndOreSpawn ▲点赞 2▼ importnet.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable;//导入依赖的package包/类publicvoidaddEndOreSpawn(IBlockState targe...
public void dropRandomLootFromLootTable(ResourceLocation dungeonLoot, boolean wasRecentlyHit, int lootingModifier, DamageSource source) { long LootTableSeed = 0; int maxCount = 0; int currentCount = 0; Random Randomize = new Random(); int roll = 0; // Things for Looting enchant calculations...
arenaWorld.getBlockAt(-5000,45, -5000).setType(Material.STONE); arenaWorld.setSpawnLocation(-5000,50, -5000);for(Map.Entry<String, String> entry : plugin.getConfiguration().getArenaGamerules().entrySet()) { arenaWorld.setGameRuleValue(entry.getKey(), entry.getValue()); ...
BlockPos blockpos =this.getTopSolidOrLiquidBlock(newBlockPos(j,0, k)).up();if(worldgeneratorbonuschest.generate(this,this.rand, blockpos)) {break; } } } 开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:20,代码来源:WorldServer.java ...