Java Code Examples for net.minecraft.init.Blocks.activator_rail()

The following are Jave code examples for showing how to use activator_rail() of the net.minecraft.init.Blocks class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: DecompiledMinecraft   File: BlockRailBase.java   View Source Code Vote up 4 votes
public static boolean isRailBlock(IBlockState state)
{
    Block block = state.getBlock();
    return block == Blocks.rail || block == Blocks.golden_rail || block == Blocks.detector_rail || block == Blocks.activator_rail;
}
 
Example 2
Project: DecompiledMinecraft   File: BlockRailBase.java   View Source Code Vote up 4 votes
public static boolean isRailBlock(IBlockState state)
{
    Block block = state.getBlock();
    return block == Blocks.rail || block == Blocks.golden_rail || block == Blocks.detector_rail || block == Blocks.activator_rail;
}
 
Example 3
Project: BaseClient   File: BlockRailBase.java   View Source Code Vote up 4 votes
public static boolean isRailBlock(IBlockState state) {
	Block block = state.getBlock();
	return block == Blocks.rail || block == Blocks.golden_rail || block == Blocks.detector_rail
			|| block == Blocks.activator_rail;
}
 
Example 4
Project: BaseClient   File: BlockRailBase.java   View Source Code Vote up 4 votes
public static boolean isRailBlock(IBlockState state)
{
    Block block = state.getBlock();
    return block == Blocks.rail || block == Blocks.golden_rail || block == Blocks.detector_rail || block == Blocks.activator_rail;
}