public UndergroundBiomeOvergrown() { super(Blocks.MOSSY_COBBLESTONE.getDefaultState(), Blocks.LEAVES.getDefaultState().withProperty(BlockLeaves.DECAYABLE, false), null); }
@Override @SideOnly(Side.CLIENT) public BlockRenderLayer getBlockLayer() { return Blocks.LEAVES.getBlockLayer(); }
@Override public boolean isOpaqueCube(IBlockState state) { return Blocks.LEAVES.isOpaqueCube(state); }
@Override @SideOnly(Side.CLIENT) public boolean shouldSideBeRendered(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) { return Blocks.LEAVES.shouldSideBeRendered(state, world, pos, side); }
@SuppressWarnings("deprecation") @SideOnly(Side.CLIENT) @Override public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) { /* * See comment on getRenderLayer() */ leavesFancy = Minecraft.getMinecraft().gameSettings.fancyGraphics; return super.shouldSideBeRendered(blockState, blockAccess, pos, side); }
public Builder leaves(BlockPlanks.EnumType a) { if (a.getMetadata() < 4) { this.leaves = Blocks.LEAVES.getDefaultState().withProperty(BlockLeaves.CHECK_DECAY, false).withProperty(BlockOldLeaf.VARIANT, a); } else { this.leaves = Blocks.LEAVES2.getDefaultState().withProperty(BlockLeaves.CHECK_DECAY, false).withProperty(BlockNewLeaf.VARIANT, a); } return this; }
@Override @SideOnly(Side.CLIENT) public BlockRenderLayer getBlockLayer() { return Blocks.LEAVES.getBlockLayer(); }
@Override public boolean isOpaqueCube(IBlockState state) { return Blocks.LEAVES.isOpaqueCube(state); }
public Builder altLeaves(BlockPlanks.EnumType a) { if (a.getMetadata() < 4) { this.altLeaves = Blocks.LEAVES.getDefaultState().withProperty(BlockLeaves.CHECK_DECAY, false).withProperty(BlockOldLeaf.VARIANT, a); } else { this.altLeaves = Blocks.LEAVES2.getDefaultState().withProperty(BlockLeaves.CHECK_DECAY, false).withProperty(BlockNewLeaf.VARIANT, a); } return this; }
@Override @SideOnly(Side.CLIENT) public BlockRenderLayer getBlockLayer() { return Blocks.LEAVES.getBlockLayer(); }
public BiomeGenVampireForest() { super(new BiomeProperties(name).setWaterColor(0xEE2505).setBaseHeight(0.1F).setHeightVariation(0.025F)); this.spawnableCreatureList.clear(); this.spawnableMonsterList.clear(); this.spawnableWaterCreatureList.clear(); this.spawnableCaveCreatureList.clear(); this.spawnableMonsterList.add(new SpawnListEntry(EntityGhost.class, 3, 1, 1)); this.spawnableMonsterList.add(new SpawnListEntry(EntityBasicVampire.class, 7, 1, 3)); this.spawnableMonsterList.add(new SpawnListEntry(EntityVampireBaron.class, 2, 1, 1)); this.spawnableCaveCreatureList.add(new SpawnListEntry(EntityBlindingBat.class, 8, 2, 4)); this.spawnableCreatureList.add(new SpawnListEntry(EntityDummyBittenAnimal.class, 15, 3, 6)); this.topBlock = ModBlocks.cursed_earth.getDefaultState(); this.fillerBlock = ModBlocks.cursed_earth.getDefaultState(); this.decorator.treesPerChunk = 5; this.decorator.grassPerChunk = 4; this.decorator.deadBushPerChunk = 3; this.worldGenTrees = new WorldGenTrees(false, 4, Blocks.LOG.getDefaultState().withProperty(BlockOldLog.VARIANT, BlockPlanks.EnumType.SPRUCE), Blocks.LEAVES.getDefaultState().withProperty(BlockOldLeaf.VARIANT, BlockPlanks.EnumType.OAK), false); }
public static void generateLeaves(World worldIn, BlockPos blockpos, BlockPos origin, int radius, Random rand) { if (worldIn.getBlockState(blockpos.down()).isSideSolid(worldIn, blockpos.down(), EnumFacing.UP)) { IBlockState leaf = Blocks.LEAVES.getDefaultState().withProperty(BlockOldLeaf.VARIANT, BlockPlanks.EnumType.OAK).withProperty(BlockLeaves.DECAYABLE, Boolean.valueOf(false)); for (BiomeDictionary.Type type : BiomeDictionary.getTypes(worldIn.getBiome(blockpos))) { if (type == BiomeDictionary.Type.SANDY || type == BiomeDictionary.Type.SAVANNA || type == BiomeDictionary.Type.WASTELAND) { leaf = Blocks.LEAVES2.getDefaultState().withProperty(BlockNewLeaf.VARIANT, BlockPlanks.EnumType.ACACIA).withProperty(BlockLeaves.DECAYABLE, Boolean.valueOf(false)); break; leaf = Blocks.LEAVES.getDefaultState().withProperty(BlockOldLeaf.VARIANT, BlockPlanks.EnumType.JUNGLE).withProperty(BlockLeaves.DECAYABLE, Boolean.valueOf(false)); break; leaf = Blocks.LEAVES.getDefaultState().withProperty(BlockOldLeaf.VARIANT, BlockPlanks.EnumType.SPRUCE).withProperty(BlockLeaves.DECAYABLE, Boolean.valueOf(false)); break;
block == Blocks.AIR || block.canBeReplacedByLeaves(loopBlockState, world, loopPos))) { this.setBlockAndNotifyAdequately(world, loopPos, getLeaves().getDefaultState());
trees = new WorldGenShrub(Blocks.LOG.getDefaultState(), Blocks.LEAVES.getDefaultState()); genCrate = true;
public void setupChars(LostCityProfile profile) { if (!charsSetup) { airChar = (char) Block.BLOCK_STATE_IDS.get(Blocks.AIR.getDefaultState()); hardAirChar = (char) Block.BLOCK_STATE_IDS.get(Blocks.COMMAND_BLOCK.getDefaultState()); glowstoneChar = (char) Block.BLOCK_STATE_IDS.get(Blocks.GLOWSTONE.getDefaultState()); gravelChar = (char) Block.BLOCK_STATE_IDS.get(Blocks.GRAVEL.getDefaultState()); baseChar = (char) Block.BLOCK_STATE_IDS.get(profile.getBaseBlock()); liquidChar = (char) Block.BLOCK_STATE_IDS.get(profile.getLiquidBlock()); // @todo glassChar = (char) Block.BLOCK_STATE_IDS.get(Blocks.GLASS.getDefaultState()); leavesChar = (char) Block.BLOCK_STATE_IDS.get(Blocks.LEAVES.getDefaultState() .withProperty(BlockLeaves.DECAYABLE, false)); leaves2Char = (char) Block.BLOCK_STATE_IDS.get(Blocks.LEAVES.getDefaultState() .withProperty(BlockLeaves.DECAYABLE, false) .withProperty(BlockOldLeaf.VARIANT, BlockPlanks.EnumType.JUNGLE)); leaves3Char = (char) Block.BLOCK_STATE_IDS.get(Blocks.LEAVES.getDefaultState() .withProperty(BlockLeaves.DECAYABLE, false) .withProperty(BlockOldLeaf.VARIANT, BlockPlanks.EnumType.SPRUCE)); ironbarsChar = (char) Block.BLOCK_STATE_IDS.get(Blocks.IRON_BARS.getDefaultState()); grassChar = (char) Block.BLOCK_STATE_IDS.get(Blocks.GRASS.getDefaultState()); bedrockChar = (char) Block.BLOCK_STATE_IDS.get(Blocks.BEDROCK.getDefaultState()); endportalChar = (char) Block.BLOCK_STATE_IDS.get(Blocks.END_PORTAL.getDefaultState()); endportalFrameChar = (char) Block.BLOCK_STATE_IDS.get(Blocks.END_PORTAL_FRAME.getDefaultState()); goldBlockChar = (char) Block.BLOCK_STATE_IDS.get(Blocks.GOLD_BLOCK.getDefaultState()); diamondBlockChar = (char) Block.BLOCK_STATE_IDS.get(Blocks.DIAMOND_BLOCK.getDefaultState()); charsSetup = true; } }
if (b == L) if (w.getDifficulty() != EnumDifficulty.HARD) block = Blocks.LEAVES.getDefaultState().withProperty(BlockLeaves.CHECK_DECAY, false); else block = Blocks.AIR.getDefaultState();
IBlockState jungleLeaves = Blocks.LEAVES.getDefaultState() .withProperty(BlockOldLeaf.VARIANT, BlockPlanks.EnumType.JUNGLE) .withProperty(BlockLeaves.CHECK_DECAY, false);
@Override public void recipes() { Modifiers.recipes.convertInput(new ItemStack(Blocks.WOOL, 1, OreDictionary.WILDCARD_VALUE), ContentHelper.woolOreDict); for (int i = 0; i < ConstantHelper.dyeColors.length; i++) { Modifiers.recipes.convertInput(new ItemStack(Blocks.WOOL, 1, 15 - i), ContentHelper.woolOreDict + ConstantHelper.dyeColors[i]); Modifiers.recipes.excludeOutput(new ItemStack(Blocks.WOOL, 1, 15 - i)); } GameRegistry.addShapedRecipe(new ItemStack(kapokBlock), "~~", "~~", '~', new ItemStack(kapokTuft)); for (int i = 0; i < ConstantHelper.dyeColors.length; i++) { GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(kapokBlock, 1, 15 - i), "dye" + ConstantHelper.dyeColors[i], new ItemStack(kapokBlock))); } BlockSpecifier jungleLeavesSpecifier = new BlockSpecifier(Blocks.LEAVES.getDefaultState().withProperty(BlockOldLeaf.VARIANT, BlockPlanks.EnumType.JUNGLE), BlockOldLeaf.VARIANT); Modifiers.drops.addDropsToBlock(jungleLeavesSpecifier, new DropSpecifier(new ItemStack(kapokTuft), 0.07f, 1, 2)); GameRegistry.addShapedRecipe(new ItemStack(Items.STRING), "~~~", '~', kapokTuft); }
ToolCrafting.init(); ActuallyAdditionsAPI.addCompostRecipe(Ingredient.fromStacks(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.MASHED_FOOD.ordinal())), Blocks.LEAVES.getDefaultState(), new ItemStack(InitItems.itemFertilizer), Blocks.DIRT.getDefaultState()); ActuallyAdditionsAPI.addCompostRecipe(Ingredient.fromItems(InitItems.itemCanolaSeed), Blocks.DIRT.getDefaultState(), new ItemStack(InitItems.itemMisc, 1, TheMiscItems.BIOMASS.ordinal()), Blocks.SOUL_SAND.getDefaultState());
this.setBlockState(world, Blocks.LEAVES.getDefaultState().withProperty(BlockLeaves.DECAYABLE, false), 2, 2, 2, sbb); this.setBlockState(world, Blocks.OAK_FENCE.getDefaultState(), 8, 1, 2, sbb); this.setBlockState(world, Blocks.LEAVES.getDefaultState().withProperty(BlockLeaves.DECAYABLE, false), 8, 2, 2, sbb); this.setBlockState(world, Blocks.OAK_FENCE.getDefaultState(), 2, 1, 6, sbb); this.setBlockState(world, Blocks.LEAVES.getDefaultState().withProperty(BlockLeaves.DECAYABLE, false), 2, 2, 6, sbb); IBlockState stairWest = Blocks.OAK_STAIRS.getDefaultState().withProperty(BlockStairs.FACING, EnumFacing.WEST); this.fillWithBlocks(world, sbb, 2, 1, 3, 2, 1, 5, stairWest, stairWest, false);