Java Code Examples for net.minecraft.block.material.Material.gourd()

The following are Jave code examples for showing how to use gourd() 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.
+ Save this method
Example 1
Project: DecompiledMinecraft   File: ItemSword.java   View Source Code Vote up 5 votes
public float getStrVsBlock(ItemStack stack, Block block)
{
    if (block == Blocks.web)
    {
        return 15.0F;
    }
    else
    {
        Material material = block.getMaterial();
        return material != Material.plants && material != Material.vine && material != Material.coral && material != Material.leaves && material != Material.gourd ? 1.0F : 1.5F;
    }
}
 
Example 2
Project: DecompiledMinecraft   File: BlockPumpkin.java   View Source Code Vote up 5 votes
protected BlockPumpkin()
{
    super(Material.gourd, MapColor.adobeColor);
    this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    this.setTickRandomly(true);
    this.setCreativeTab(CreativeTabs.tabBlock);
}
 
Example 3
Project: DecompiledMinecraft   File: ItemSword.java   View Source Code Vote up 5 votes
public float getStrVsBlock(ItemStack stack, Block block)
{
    if (block == Blocks.web)
    {
        return 15.0F;
    }
    else
    {
        Material material = block.getMaterial();
        return material != Material.plants && material != Material.vine && material != Material.coral && material != Material.leaves && material != Material.gourd ? 1.0F : 1.5F;
    }
}
 
Example 4
Project: DecompiledMinecraft   File: BlockPumpkin.java   View Source Code Vote up 5 votes
protected BlockPumpkin()
{
    super(Material.gourd, MapColor.adobeColor);
    this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    this.setTickRandomly(true);
    this.setCreativeTab(CreativeTabs.tabBlock);
}
 
Example 5
Project: BaseClient   File: ItemSword.java   View Source Code Vote up 5 votes
public float getStrVsBlock(ItemStack stack, Block block)
{
    if (block == Blocks.web)
    {
        return 15.0F;
    }
    else
    {
        Material material = block.getMaterial();
        return material != Material.plants && material != Material.vine && material != Material.coral && material != Material.leaves && material != Material.gourd ? 1.0F : 1.5F;
    }
}
 
Example 6
Project: BaseClient   File: BlockPumpkin.java   View Source Code Vote up 5 votes
protected BlockPumpkin()
{
    super(Material.gourd, MapColor.adobeColor);
    this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    this.setTickRandomly(true);
    this.setCreativeTab(CreativeTabs.tabBlock);
}
 
Example 7
Project: BaseClient   File: ItemSword.java   View Source Code Vote up 5 votes
public float getStrVsBlock(ItemStack stack, Block block)
{
    if (block == Blocks.web)
    {
        return 15.0F;
    }
    else
    {
        Material material = block.getMaterial();
        return material != Material.plants && material != Material.vine && material != Material.coral && material != Material.leaves && material != Material.gourd ? 1.0F : 1.5F;
    }
}
 
Example 8
Project: BaseClient   File: BlockPumpkin.java   View Source Code Vote up 5 votes
protected BlockPumpkin()
{
    super(Material.gourd, MapColor.adobeColor);
    this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    this.setTickRandomly(true);
    this.setCreativeTab(CreativeTabs.tabBlock);
}
 
Example 9
Project: DecompiledMinecraft   File: BlockFence.java   View Source Code Vote up 4 votes
public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos)
{
    Block block = worldIn.getBlockState(pos).getBlock();
    return block == Blocks.barrier ? false : ((!(block instanceof BlockFence) || block.blockMaterial != this.blockMaterial) && !(block instanceof BlockFenceGate) ? (block.blockMaterial.isOpaque() && block.isFullCube() ? block.blockMaterial != Material.gourd : false) : true);
}
 
Example 10
Project: DecompiledMinecraft   File: BlockWall.java   View Source Code Vote up 4 votes
public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos)
{
    Block block = worldIn.getBlockState(pos).getBlock();
    return block == Blocks.barrier ? false : (block != this && !(block instanceof BlockFenceGate) ? (block.blockMaterial.isOpaque() && block.isFullCube() ? block.blockMaterial != Material.gourd : false) : true);
}
 
Example 11
Project: DecompiledMinecraft   File: BlockMelon.java   View Source Code Vote up 4 votes
protected BlockMelon()
{
    super(Material.gourd, MapColor.limeColor);
    this.setCreativeTab(CreativeTabs.tabBlock);
}
 
Example 12
Project: DecompiledMinecraft   File: BlockFence.java   View Source Code Vote up 4 votes
public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos)
{
    Block block = worldIn.getBlockState(pos).getBlock();
    return block == Blocks.barrier ? false : ((!(block instanceof BlockFence) || block.blockMaterial != this.blockMaterial) && !(block instanceof BlockFenceGate) ? (block.blockMaterial.isOpaque() && block.isFullCube() ? block.blockMaterial != Material.gourd : false) : true);
}
 
Example 13
Project: DecompiledMinecraft   File: BlockWall.java   View Source Code Vote up 4 votes
public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos)
{
    Block block = worldIn.getBlockState(pos).getBlock();
    return block == Blocks.barrier ? false : (block != this && !(block instanceof BlockFenceGate) ? (block.blockMaterial.isOpaque() && block.isFullCube() ? block.blockMaterial != Material.gourd : false) : true);
}
 
Example 14
Project: DecompiledMinecraft   File: BlockMelon.java   View Source Code Vote up 4 votes
protected BlockMelon()
{
    super(Material.gourd, MapColor.limeColor);
    this.setCreativeTab(CreativeTabs.tabBlock);
}
 
Example 15
Project: BaseClient   File: BlockFence.java   View Source Code Vote up 4 votes
public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos)
{
    Block block = worldIn.getBlockState(pos).getBlock();
    return block == Blocks.barrier ? false : ((!(block instanceof BlockFence) || block.blockMaterial != this.blockMaterial) && !(block instanceof BlockFenceGate) ? (block.blockMaterial.isOpaque() && block.isFullCube() ? block.blockMaterial != Material.gourd : false) : true);
}
 
Example 16
Project: BaseClient   File: BlockWall.java   View Source Code Vote up 4 votes
public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos)
{
    Block block = worldIn.getBlockState(pos).getBlock();
    return block == Blocks.barrier ? false : (block != this && !(block instanceof BlockFenceGate) ? (block.blockMaterial.isOpaque() && block.isFullCube() ? block.blockMaterial != Material.gourd : false) : true);
}
 
Example 17
Project: BaseClient   File: BlockMelon.java   View Source Code Vote up 4 votes
protected BlockMelon()
{
    super(Material.gourd, MapColor.limeColor);
    this.setCreativeTab(CreativeTabs.tabBlock);
}
 
Example 18
Project: BaseClient   File: BlockFence.java   View Source Code Vote up 4 votes
public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos)
{
    Block block = worldIn.getBlockState(pos).getBlock();
    return block == Blocks.barrier ? false : ((!(block instanceof BlockFence) || block.blockMaterial != this.blockMaterial) && !(block instanceof BlockFenceGate) ? (block.blockMaterial.isOpaque() && block.isFullCube() ? block.blockMaterial != Material.gourd : false) : true);
}
 
Example 19
Project: BaseClient   File: BlockWall.java   View Source Code Vote up 4 votes
public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos)
{
    Block block = worldIn.getBlockState(pos).getBlock();
    return block == Blocks.barrier ? false : (block != this && !(block instanceof BlockFenceGate) ? (block.blockMaterial.isOpaque() && block.isFullCube() ? block.blockMaterial != Material.gourd : false) : true);
}
 
Example 20
Project: BaseClient   File: BlockMelon.java   View Source Code Vote up 4 votes
protected BlockMelon()
{
    super(Material.gourd, MapColor.limeColor);
    this.setCreativeTab(CreativeTabs.tabBlock);
}