Java Code Examples for net.minecraft.block.material.Material.PISTON

The following are Jave code examples for showing how to use PISTON of the net.minecraft.block.material.Material class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Backmemed   File: BlockPistonExtension.java   Source Code and License Vote up 5 votes
public BlockPistonExtension()
{
    super(Material.PISTON);
    this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(TYPE, BlockPistonExtension.EnumPistonType.DEFAULT).withProperty(SHORT, Boolean.valueOf(false)));
    this.setSoundType(SoundType.STONE);
    this.setHardness(0.5F);
}
 
Example 2
Project: Backmemed   File: BlockPistonBase.java   Source Code and License Vote up 5 votes
public BlockPistonBase(boolean isSticky)
{
    super(Material.PISTON);
    this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(EXTENDED, Boolean.valueOf(false)));
    this.isSticky = isSticky;
    this.setSoundType(SoundType.STONE);
    this.setHardness(0.5F);
    this.setCreativeTab(CreativeTabs.REDSTONE);
}
 
Example 3
Project: CustomWorldGen   File: BlockPistonExtension.java   Source Code and License Vote up 5 votes
public BlockPistonExtension()
{
    super(Material.PISTON);
    this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(TYPE, BlockPistonExtension.EnumPistonType.DEFAULT).withProperty(SHORT, Boolean.valueOf(false)));
    this.setSoundType(SoundType.STONE);
    this.setHardness(0.5F);
}
 
Example 4
Project: CustomWorldGen   File: BlockPistonBase.java   Source Code and License Vote up 5 votes
public BlockPistonBase(boolean isSticky)
{
    super(Material.PISTON);
    this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(EXTENDED, Boolean.valueOf(false)));
    this.isSticky = isSticky;
    this.setSoundType(SoundType.STONE);
    this.setHardness(0.5F);
    this.setCreativeTab(CreativeTabs.REDSTONE);
}
 
Example 5
Project: Backmemed   File: BlockPistonMoving.java   Source Code and License Vote up 4 votes
public BlockPistonMoving()
{
    super(Material.PISTON);
    this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(TYPE, BlockPistonExtension.EnumPistonType.DEFAULT));
    this.setHardness(-1.0F);
}
 
Example 6
Project: CustomWorldGen   File: BlockPistonMoving.java   Source Code and License Vote up 4 votes
public BlockPistonMoving()
{
    super(Material.PISTON);
    this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(TYPE, BlockPistonExtension.EnumPistonType.DEFAULT));
    this.setHardness(-1.0F);
}