net.minecraft.block.BlockPlanks Java Examples
The following examples show how to use
net.minecraft.block.BlockPlanks.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BlockTraverseWoodFenceGate.java From CommunityMod with GNU Lesser General Public License v2.1 | 5 votes |
public BlockTraverseWoodFenceGate(String name) { super(BlockPlanks.EnumType.OAK); setRegistryName(new ResourceLocation(TraverseConstants.MOD_ID, name + "_fence_gate")); setTranslationKey(getRegistryName().toString()); setCreativeTab(TraverseTab.TAB); setSoundType(SoundType.WOOD); setHardness(2.0F); setResistance(5.0F); TraverseMod.blockModelsToRegister.add(this); ShootingStar.registerModel(new ModelCompound(TraverseConstants.MOD_ID, this, "fence", POWERED, IN_WALL)); }
Example #2
Source File: BlockTraverseWoodFenceGate.java From Traverse-Legacy-1-12-2 with MIT License | 5 votes |
public BlockTraverseWoodFenceGate(String name) { super(BlockPlanks.EnumType.OAK); setRegistryName(new ResourceLocation(TraverseConstants.MOD_ID, name + "_fence_gate")); setUnlocalizedName(getRegistryName().toString()); setCreativeTab(TraverseTab.TAB); setSoundType(SoundType.WOOD); setHardness(2.0F); setResistance(5.0F); TraverseMod.blockModelsToRegister.add(this); ShootingStar.registerModel(new ModelCompound(TraverseConstants.MOD_ID, this, "fence", POWERED, IN_WALL)); }
Example #3
Source File: WrappedBlockStateTests.java From customstuff4 with GNU General Public License v3.0 | 5 votes |
@Test public void test_deserialization_propertiesAsObject() { WrappedBlockState state = gson.fromJson("{ \"block\": \"minecraft:log\", \"properties\" : { \"variant\" : \"spruce\"} }", WrappedBlockState.class); IBlockState blockState = state.createState(); assertNotNull(state); assertNotNull(blockState); assertSame(Blocks.LOG, blockState.getBlock()); assertSame(BlockPlanks.EnumType.SPRUCE, blockState.getValue(BlockOldLog.VARIANT)); }
Example #4
Source File: WrappedBlockStateTests.java From customstuff4 with GNU General Public License v3.0 | 5 votes |
@Test public void test_deserialization_propertiesAsString() { WrappedBlockState state = gson.fromJson("{ \"block\": \"minecraft:log\", \"properties\" : \"variant=spruce,axis=z\" }", WrappedBlockState.class); IBlockState blockState = state.createState(); assertNotNull(state); assertNotNull(blockState); assertSame(Blocks.LOG, blockState.getBlock()); assertSame(BlockPlanks.EnumType.SPRUCE, blockState.getValue(BlockOldLog.VARIANT)); assertSame(BlockLog.EnumAxis.Z, blockState.getValue(BlockLog.LOG_AXIS)); }
Example #5
Source File: ItemBuildersWand.java From enderutilities with GNU Lesser General Public License v3.0 | 5 votes |
private void placeHelperBlock(EntityPlayer player) { BlockPos pos = PositionUtils.getPositionInfrontOfEntity(player); //player.worldObj.setBlockState(pos, Blocks.RED_MUSHROOM_BLOCK.getDefaultState(), 3); player.getEntityWorld().setBlockState(pos, Blocks.LEAVES.getDefaultState() .withProperty(BlockOldLeaf.VARIANT, BlockPlanks.EnumType.SPRUCE) .withProperty(BlockLeaves.CHECK_DECAY, false) .withProperty(BlockLeaves.DECAYABLE, true), 3); }
Example #6
Source File: Leaves.java From minecraft-roguelike with GNU General Public License v3.0 | 5 votes |
private static BlockPlanks.EnumType getType(Wood type){ switch(type){ case OAK: return BlockPlanks.EnumType.OAK; case SPRUCE: return BlockPlanks.EnumType.SPRUCE; case BIRCH: return BlockPlanks.EnumType.BIRCH; case JUNGLE: return BlockPlanks.EnumType.JUNGLE; case ACACIA: return BlockPlanks.EnumType.ACACIA; case DARKOAK: return BlockPlanks.EnumType.DARK_OAK; default: return BlockPlanks.EnumType.OAK; } }
Example #7
Source File: Log.java From minecraft-roguelike with GNU General Public License v3.0 | 5 votes |
public static void setType(MetaBlock log, Wood type){ switch(type){ case OAK: log.withProperty(BlockOldLog.VARIANT, BlockPlanks.EnumType.OAK); return; case SPRUCE: log.withProperty(BlockOldLog.VARIANT, BlockPlanks.EnumType.SPRUCE); return; case BIRCH: log.withProperty(BlockOldLog.VARIANT, BlockPlanks.EnumType.BIRCH); return; case JUNGLE: log.withProperty(BlockOldLog.VARIANT, BlockPlanks.EnumType.JUNGLE); return; case ACACIA: log.withProperty(BlockNewLog.VARIANT, BlockPlanks.EnumType.ACACIA); return; case DARKOAK: log.withProperty(BlockNewLog.VARIANT, BlockPlanks.EnumType.DARK_OAK); return; default: log.withProperty(BlockOldLog.VARIANT, BlockPlanks.EnumType.OAK); return; } }
Example #8
Source File: BlockApricotLeaves.java From TofuCraftReload with MIT License | 4 votes |
@Override public BlockPlanks.EnumType getWoodType(int meta) { return null; }
Example #9
Source File: BlockTofuLeaves.java From TofuCraftReload with MIT License | 4 votes |
@Override public BlockPlanks.EnumType getWoodType(int meta) { return null; }
Example #10
Source File: BlockMapleLeaveOrange.java From Sakura_mod with MIT License | 4 votes |
@Override public BlockPlanks.EnumType getWoodType(int meta) { return null; }
Example #11
Source File: BlockMapleLeaveYellow.java From Sakura_mod with MIT License | 4 votes |
@Override public BlockPlanks.EnumType getWoodType(int meta) { return null; }
Example #12
Source File: BlockSakuraLeave.java From Sakura_mod with MIT License | 4 votes |
@Override public BlockPlanks.EnumType getWoodType(int meta) { return null; }
Example #13
Source File: BlockMapleLeaveGreen.java From Sakura_mod with MIT License | 4 votes |
@Override public BlockPlanks.EnumType getWoodType(int meta) { return null; }
Example #14
Source File: BlockMapleLeaveRed.java From Sakura_mod with MIT License | 4 votes |
@Override public BlockPlanks.EnumType getWoodType(int meta) { return null; }
Example #15
Source File: BlockTraverseLeaves.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
@Override public BlockPlanks.EnumType getWoodType(int meta) { return null; }
Example #16
Source File: BlockTraverseLeaves.java From Traverse-Legacy-1-12-2 with MIT License | 4 votes |
@Override public BlockPlanks.EnumType getWoodType(int meta) { return null; }