Java Code Examples for net.minecraft.block.material.Material.CRAFTED_SNOW

The following are Jave code examples for showing how to use CRAFTED_SNOW 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.
Example 1
Project: Adventurers-Toolbox   File: ItemATShovel.java   Source Code and License Vote up 5 votes
@Override
public float getDestroySpeed(ItemStack stack, IBlockState state) {
	for (String type : getToolClasses(stack)) {
		if (state.getBlock().isToolEffective(type, state) || state.getMaterial() == Material.GROUND
				|| state.getMaterial() == Material.GRASS || state.getMaterial() == Material.SAND
				|| state.getMaterial() == Material.SNOW || state.getMaterial() == Material.CRAFTED_SNOW
				|| state.getMaterial() == Material.CLAY) {
			return getEfficiency(stack);
		}
	}
	return 1.0F;
}
 
Example 2
Project: ExPetrum   File: ItemGardeningSpade.java   Source Code and License Vote up 5 votes
@Override
public float getStrVsBlock(ItemStack stack, IBlockState state)
   {
       Material material = state.getMaterial();
       float ret = material != Material.GRASS && material != Material.GROUND && material != Material.CRAFTED_SNOW && material != Material.SNOW && material != Material.SAND && material != Material.CLAY && material != Material.GOURD ? super.getStrVsBlock(stack, state) : this.getStats(stack).getEfficiency();
   	return ret * 0.75F;
   }
 
Example 3
Project: Backmemed   File: BlockSnowBlock.java   Source Code and License Vote up 4 votes
protected BlockSnowBlock()
{
    super(Material.CRAFTED_SNOW);
    this.setTickRandomly(true);
    this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
}
 
Example 4
Project: CustomWorldGen   File: BlockSnowBlock.java   Source Code and License Vote up 4 votes
protected BlockSnowBlock()
{
    super(Material.CRAFTED_SNOW);
    this.setTickRandomly(true);
    this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
}
 
Example 5
Project: ExPetrum   File: ItemShovel.java   Source Code and License Vote up 4 votes
@Override
public float getStrVsBlock(ItemStack stack, IBlockState state)
   {
       Material material = state.getMaterial();
       return material != Material.GRASS && material != Material.GROUND && material != Material.CRAFTED_SNOW && material != Material.SNOW && material != Material.SAND && material != Material.CLAY && material != Material.GOURD ? super.getStrVsBlock(stack, state) : this.getStats(stack).getEfficiency();
   }