Java Code Examples for net.minecraft.block.state.BlockFaceShape#UNDEFINED

The following examples show how to use net.minecraft.block.state.BlockFaceShape#UNDEFINED . 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 check out the related API usage on the sidebar.
Example 1
Source File: BlockStorage.java    From enderutilities with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face)
{
    if (state.getValue(TYPE).isFullCube())
    {
        return BlockFaceShape.SOLID;
    }
    else
    {
        return BlockFaceShape.UNDEFINED;
    }
}
 
Example 2
Source File: GTBlockBaseConnect.java    From GT-Classic with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
	return BlockFaceShape.UNDEFINED;
}
 
Example 3
Source File: BlockBambooShoot.java    From Sakura_mod with MIT License 4 votes vote down vote up
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
    return BlockFaceShape.UNDEFINED;
}
 
Example 4
Source File: BlockBarrel.java    From Sakura_mod with MIT License 4 votes vote down vote up
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
    return BlockFaceShape.UNDEFINED;
}
 
Example 5
Source File: BlockKitunebi.java    From Sakura_mod with MIT License 4 votes vote down vote up
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
    return BlockFaceShape.UNDEFINED;
}
 
Example 6
Source File: BlockVanillaCrop.java    From Sakura_mod with MIT License 4 votes vote down vote up
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
	return BlockFaceShape.UNDEFINED;
}
 
Example 7
Source File: BlockPepperCrop.java    From Sakura_mod with MIT License 4 votes vote down vote up
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
	return BlockFaceShape.UNDEFINED;
}
 
Example 8
Source File: Ladder.java    From EmergingTechnology with MIT License 4 votes vote down vote up
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face)
{
    return BlockFaceShape.UNDEFINED;
}
 
Example 9
Source File: BlockBetterChest.java    From BetterChests with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
	return BlockFaceShape.UNDEFINED;
}
 
Example 10
Source File: BlockFluidBasic.java    From Sakura_mod with MIT License 4 votes vote down vote up
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess world, IBlockState state, BlockPos pos, EnumFacing facing) {
    return BlockFaceShape.UNDEFINED;
}
 
Example 11
Source File: BlockCrop.java    From AgriCraft with MIT License 4 votes vote down vote up
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess p_getBlockFaceShape_1_, IBlockState p_getBlockFaceShape_2_, BlockPos p_getBlockFaceShape_3_, EnumFacing p_getBlockFaceShape_4_) {
    // Undefined face shape prevents fence connections.
    return BlockFaceShape.UNDEFINED;
}
 
Example 12
Source File: BlockTFStorage.java    From TofuCraftReload with MIT License 4 votes vote down vote up
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
    return BlockFaceShape.UNDEFINED;
}
 
Example 13
Source File: GTBlockOreFlower.java    From GT-Classic with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
	return BlockFaceShape.UNDEFINED;
}
 
Example 14
Source File: BlockUnderVine.java    From TofuCraftReload with MIT License 4 votes vote down vote up
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
    return BlockFaceShape.UNDEFINED;
}
 
Example 15
Source File: BlockFoam.java    From GregTech with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
    return BlockFaceShape.UNDEFINED;
}
 
Example 16
Source File: BlockKawara.java    From Sakura_mod with MIT License 4 votes vote down vote up
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face)
{
  return face == EnumFacing.DOWN ? BlockFaceShape.SOLID : BlockFaceShape.UNDEFINED;
}
 
Example 17
Source File: BlockNigari.java    From TofuCraftReload with MIT License 2 votes vote down vote up
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess world, IBlockState state, BlockPos pos, EnumFacing facing) {

    return BlockFaceShape.UNDEFINED;

}
 
Example 18
Source File: BlockPortalGlowyAir.java    From CommunityMod with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Get the geometry of the queried face at the given position and state. This is used to decide whether things like
 * buttons are allowed to be placed on the face, or how glass panes connect to the face, among other things.
 * <p>
 * Common values are {@code SOLID}, which is the default, and {@code UNDEFINED}, which represents something that
 * does not fit the other descriptions and will generally cause other things not to connect to the face.
 * 
 * @return an approximation of the form of the given face
 */
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face)
{
    return BlockFaceShape.UNDEFINED;
}
 
Example 19
Source File: BlockTofuFarmLand.java    From TofuCraftReload with MIT License 2 votes vote down vote up
/**
 * Get the geometry of the queried face at the given position and state. This is used to decide whether things like
 * buttons are allowed to be placed on the face, or how glass panes connect to the face, among other things.
 * <p>
 * Common values are {@code SOLID}, which is the default, and {@code UNDEFINED}, which represents something that
 * does not fit the other descriptions and will generally cause other things not to connect to the face.
 *
 * @return an approximation of the form of the given face
 */
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face)
{
    return face == EnumFacing.DOWN ? BlockFaceShape.SOLID : BlockFaceShape.UNDEFINED;
}
 
Example 20
Source File: BlockSoySauce.java    From TofuCraftReload with MIT License 2 votes vote down vote up
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess world, IBlockState state, BlockPos pos, EnumFacing facing) {

    return BlockFaceShape.UNDEFINED;

}