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

The following are Jave code examples for showing how to use end_portal() 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: connor41-etfuturum2   File: EntityPlacedEndCrystal.java   View Source Code Vote up 5 votes
private boolean isOnSuitablePlace() {
	if (worldObj.provider.dimensionId == 1 && worldObj.getBlock(blockX, blockY, blockZ) == Blocks.bedrock) {
		int portalCount = 0;
		for (int i = -6; i <= 6; i++)
			for (int j = -6; j <= 6; j++)
				if (worldObj.getBlock(blockX + i, blockY, blockZ + j) == Blocks.end_portal)
					portalCount++;

		return portalCount == 20;
	}

	return false;
}
 
Example 2
Project: DecompiledMinecraft   File: EntityWither.java   View Source Code Vote up 4 votes
public static boolean func_181033_a(Block p_181033_0_)
{
    return p_181033_0_ != Blocks.bedrock && p_181033_0_ != Blocks.end_portal && p_181033_0_ != Blocks.end_portal_frame && p_181033_0_ != Blocks.command_block && p_181033_0_ != Blocks.barrier;
}
 
Example 3
Project: DecompiledMinecraft   File: EntityWither.java   View Source Code Vote up 4 votes
public static boolean func_181033_a(Block p_181033_0_)
{
    return p_181033_0_ != Blocks.bedrock && p_181033_0_ != Blocks.end_portal && p_181033_0_ != Blocks.end_portal_frame && p_181033_0_ != Blocks.command_block && p_181033_0_ != Blocks.barrier;
}
 
Example 4
Project: BaseClient   File: EntityWither.java   View Source Code Vote up 4 votes
public static boolean func_181033_a(Block p_181033_0_)
{
    return p_181033_0_ != Blocks.bedrock && p_181033_0_ != Blocks.end_portal && p_181033_0_ != Blocks.end_portal_frame && p_181033_0_ != Blocks.command_block && p_181033_0_ != Blocks.barrier;
}
 
Example 5
Project: BaseClient   File: EntityWither.java   View Source Code Vote up 4 votes
public static boolean func_181033_a(Block p_181033_0_)
{
    return p_181033_0_ != Blocks.bedrock && p_181033_0_ != Blocks.end_portal && p_181033_0_ != Blocks.end_portal_frame && p_181033_0_ != Blocks.command_block && p_181033_0_ != Blocks.barrier;
}