Java Code Examples for net.minecraft.world.World.isBlockFullCube()

The following are Jave code examples for showing how to use isBlockFullCube() of the net.minecraft.world.World 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: ThermionicsWorld   File: GeneratorMagmaSpike.java   Source Code and License Vote up 5 votes
public static boolean isNonSpikeSurface(World world, BlockPos pos) {
	Block surface = world.getBlockState(pos.down()).getBlock();
	if (surface==Blocks.MAGMA || surface==Blocks.OBSIDIAN) return false;
	
	return world.isAirBlock(pos) &&
			world.isBlockFullCube(pos.down());
}
 
Example 2
Project: ThermionicsWorld   File: NeoHellGenerators.java   Source Code and License Vote up 4 votes
boolean isValidSpot(World world, BlockPos position) {
	return world.isBlockFullCube(position);
}
 
Example 3
Project: ThermionicsWorld   File: NeoHellGenerators.java   Source Code and License Vote up 4 votes
boolean isValidSpot(World world, BlockPos position) {
	return world.isBlockFullCube(position);
}
 
Example 4
Project: ThermionicsWorld   File: NeoHellGenerators.java   Source Code and License Vote up 4 votes
public static boolean isSurface(World world, BlockPos pos) {
	return world.isAirBlock(pos) &&
			world.isBlockFullCube(pos.down());
}