Java Code Examples for net.minecraft.init.Blocks#STICKY_PISTON

The following examples show how to use net.minecraft.init.Blocks#STICKY_PISTON . These examples are extracted from open source projects. 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 want to check out the right sidebar which shows the related API usage.
Example 1
public static void generate(IWorldEditor editor, Coord origin, Cardinal dir, boolean sticky){
	MetaBlock piston = new MetaBlock(sticky ? Blocks.STICKY_PISTON : Blocks.PISTON);
	piston.withProperty(BlockPistonBase.FACING, Cardinal.facing(Cardinal.reverse(dir)));
	piston.set(editor, origin);