net.minecraft.block.BlockVine Java Examples

The following examples show how to use net.minecraft.block.BlockVine. 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: CompostRegistry.java    From GardenCollection with MIT License 6 votes vote down vote up
private void init () {
    registerCompostMaterial(new ItemStack(Blocks.melon_block), defaultMaterial);
    registerCompostMaterial(new ItemStack(Blocks.pumpkin), defaultMaterial);
    registerCompostMaterial(new ItemStack(Blocks.hay_block), defaultMaterial);
    registerCompostMaterial(new ItemStack(Items.string), new StandardCompostMaterial(100, 0.0625f));
    registerCompostMaterial(new ItemStack(Items.wheat), new StandardCompostMaterial(100, 0.125f));
    registerCompostMaterial(new ItemStack(Items.reeds), new StandardCompostMaterial(150, 0.125f));
    registerCompostMaterial(new ItemStack(Items.feather), new StandardCompostMaterial(50, 0.0625f));
    registerCompostMaterial(new ItemStack(Items.rotten_flesh), new StandardCompostMaterial(150, 0.125f));
    registerCompostMaterial(new ItemStack(Items.leather), new StandardCompostMaterial(150, 0.125f));

    registerCompostMaterial("treeWood", new StandardCompostMaterial(300, 0.25f));
    registerCompostMaterial("logWood", new StandardCompostMaterial(300, 0.25f));
    registerCompostMaterial("treeLeaves", defaultMaterial);
    registerCompostMaterial("treeSapling", defaultMaterial);
    registerCompostMaterial("stickWood", defaultMaterial);

    registerCompostMaterial(IPlantable.class, defaultMaterial);
    registerCompostMaterial(IGrowable.class, defaultMaterial);
    registerCompostMaterial(BlockLeavesBase.class, defaultMaterial);
    registerCompostMaterial(BlockVine.class, defaultMaterial);
    registerCompostMaterial(ItemFood.class, defaultMaterial);
}
 
Example #2
Source File: Vine.java    From minecraft-roguelike with GNU General Public License v3.0 5 votes vote down vote up
public static MetaBlock setOrientation(MetaBlock vine, Cardinal dir){
	vine.withProperty(BlockVine.NORTH, Boolean.valueOf(dir == Cardinal.NORTH));
	vine.withProperty(BlockVine.EAST, Boolean.valueOf(dir == Cardinal.EAST));
	vine.withProperty(BlockVine.SOUTH, Boolean.valueOf(dir == Cardinal.SOUTH));
	vine.withProperty(BlockVine.WEST, Boolean.valueOf(dir == Cardinal.WEST));
	return vine;
}