Fixed the flammability of all of the blocks
This commit is contained in:
parent
07e0e399fa
commit
ace4f77e1b
15 changed files with 36 additions and 21 deletions
|
@ -37,7 +37,6 @@ public class BlockBOPAppleLeaves extends BlockLeavesBase implements IShearable
|
|||
//TODO: Material.leaves
|
||||
super(Material.field_151584_j, false);
|
||||
|
||||
//TODO: FEATURE Blocks.fire.setFireInfo(this, 30, 60);
|
||||
//TODO: setTickRandomly()
|
||||
this.func_149675_a(true);
|
||||
//TODO: this.setHardness
|
||||
|
|
|
@ -52,7 +52,6 @@ public class BlockBOPColorizedLeaves extends BlockLeavesBase implements IShearab
|
|||
|
||||
//TODO: setTickRandomly()
|
||||
this.func_149675_a(true);
|
||||
//TODO: FEATURE Blocks.fire.setFireInfo(this, 30, 60);
|
||||
//TODO: this.setHardness
|
||||
this.func_149711_c(0.2F);
|
||||
//TODO setStepSound(Block.soundGrassFootstep)
|
||||
|
|
|
@ -57,7 +57,6 @@ public class BlockBOPFoliage extends BlockTallGrass implements IShearable
|
|||
//TODO setStepSound(Block.soundGrassFootstep)
|
||||
this.func_149672_a(Block.field_149779_h);
|
||||
|
||||
//TODO: FEATURE Blocks.fire.setFireInfo(this, 60, 100);
|
||||
//TODO: setBlockBounds
|
||||
this.func_149676_a(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.8F, 0.5F + f);
|
||||
|
||||
|
|
|
@ -12,8 +12,6 @@ import biomesoplenty.api.BOPItemHelper;
|
|||
|
||||
public class BlockBOPGeneric extends Block
|
||||
{
|
||||
//TODO: FEATURE KILL THIS AWFUL CLASS
|
||||
|
||||
public enum BlockType
|
||||
{
|
||||
ASH_STONE, HARD_SAND, HARD_DIRT, HARD_ICE, DRIED_DIRT, CRAG_ROCK, MUD_BRICK, HOLY_DIRT, CRYSTAL;
|
||||
|
|
|
@ -38,7 +38,6 @@ public class BlockBOPPersimmonLeaves extends BlockLeavesBase implements IShearab
|
|||
//TODO: Material.leaves
|
||||
super(Material.field_151584_j, false);
|
||||
|
||||
//TODO: FEATURE Blocks.fire.setFireInfo(this, 30, 60);
|
||||
//TODO: setTickRandomly()
|
||||
this.func_149675_a(true);
|
||||
//TODO: this.setHardness
|
||||
|
|
|
@ -28,7 +28,6 @@ public class BlockBOPPetals extends BlockLeavesBase implements IShearable
|
|||
//TODO: Material.leaves
|
||||
super(Material.field_151584_j, false);
|
||||
|
||||
//TODO: FEATURE Blocks.fire.setFireInfo(this, 30, 60);
|
||||
//TODO: setTickRandomly()
|
||||
this.func_149675_a(true);
|
||||
//TODO: this.setHardness
|
||||
|
|
|
@ -29,8 +29,6 @@ public class BlockBOPPlank extends Block
|
|||
//TODO setStepSound(Block.soundWoodFootstep)
|
||||
this.func_149672_a(Block.field_149766_f);
|
||||
|
||||
//TODO: FEATURE Blocks.fire.setFireInfo(this, 5, 20);
|
||||
|
||||
//TODO: this.setCreativeTab()
|
||||
this.func_149647_a(BiomesOPlenty.tabBiomesOPlenty);
|
||||
}
|
||||
|
|
|
@ -55,7 +55,6 @@ public class BlockBOPPlant extends BOPBlockWorldDecor implements IShearable
|
|||
//TODO: setTickRandomly()
|
||||
this.func_149675_a(true);
|
||||
float var3 = 0.4F;
|
||||
//TODO: FEATURE Blocks.fire.setFireInfo(this, 60, 100);
|
||||
//TODO: setBlockBounds
|
||||
this.func_149676_a(0.5F - var3, 0.0F, 0.5F - var3, 0.5F + var3, 0.8F, 0.5F + var3);
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@ public class BlockBOPSlab extends BlockSlab
|
|||
//TODO: Material.wood
|
||||
if (material == Material.field_151575_d)
|
||||
{
|
||||
//TODO: FEATURE Blocks.fire.setFireInfo(this, 5, 20);
|
||||
//TODO: this.setHardness
|
||||
this.func_149711_c(2.0F);
|
||||
//TODO: this.setResistance
|
||||
|
|
|
@ -54,8 +54,6 @@ public class BlockBOPStairs extends BlockStairs
|
|||
//TODO setStepSound(Block.soundStoneFootstep)
|
||||
this.func_149672_a(Block.field_149780_i);
|
||||
}
|
||||
//TODO: FEATURE Blocks.fire.setFireInfo(this, 5, 20);
|
||||
|
||||
//TODO: useNeighborBrightness?
|
||||
field_149783_u = true;
|
||||
|
||||
|
|
|
@ -30,8 +30,7 @@ public class BlockBamboo extends Block
|
|||
|
||||
//TODO setStepSound(Block.soundWoodFootstep)
|
||||
this.func_149672_a(Block.field_149766_f);
|
||||
|
||||
//TODO: FEATURE Blocks.fire.setFireInfo(this, 5, 5);
|
||||
|
||||
//TODO: setTickRandomly()
|
||||
this.func_149675_a(true);
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@ public class BlockMoss extends BlockVine
|
|||
//TODO setStepSound(Block.soundGrassFootstep)
|
||||
this.func_149672_a(Block.field_149779_h);
|
||||
|
||||
//TODO: FEATURE Blocks.fire.setFireInfo(this, 15, 100);
|
||||
//TODO: setTickRandomly()
|
||||
this.func_149675_a(true);
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ public class BlockTreeMoss extends BlockVine
|
|||
|
||||
//TODO: setTickRandomly()
|
||||
this.func_149675_a(true);
|
||||
//TODO: FEATURE Blocks.fire.setFireInfo(this, 15, 100);
|
||||
|
||||
//TODO: this.setCreativeTab()
|
||||
this.func_149647_a(BiomesOPlenty.tabBiomesOPlenty);
|
||||
|
|
|
@ -16,7 +16,6 @@ public class BlockWillow extends BlockVine
|
|||
//TODO setStepSound(Block.soundGrassFootstep)
|
||||
this.func_149672_a(Block.field_149779_h);
|
||||
|
||||
//TODO: FEATURE Blocks.fire.setFireInfo(this, 15, 100);
|
||||
//TODO: setTickRandomly()
|
||||
this.func_149675_a(true);
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ package biomesoplenty.common.core;
|
|||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
|
||||
import org.apache.logging.log4j.Level;
|
||||
|
@ -95,7 +96,7 @@ public class BOPBlocks
|
|||
public static void init()
|
||||
{
|
||||
initializeBlocks();
|
||||
registerShearBlocks();
|
||||
setFireInfo();
|
||||
}
|
||||
|
||||
private static void initializeBlocks()
|
||||
|
@ -231,9 +232,40 @@ public class BOPBlocks
|
|||
registerBlock(new BlockBOPColorizedLeaves(ColourizedLeafCategory.CAT2).func_149663_c("colorizedLeaves2"), ItemBlockColorizedLeaves.class);
|
||||
}
|
||||
|
||||
private static void registerShearBlocks()
|
||||
private static void setFireInfo()
|
||||
{
|
||||
//BOPBlockHelper.addShearBlock(block, speed);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("bamboo"), 5, 5);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("appleLeaves"), 30, 60);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("colorizedLeaves1"), 30, 60);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("colorizedLeaves2"), 30, 60);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("foliage"), 60, 100);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("persimmonLeaves"), 30, 60);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("petals"), 30, 60);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("planks"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("plants"), 60, 100);
|
||||
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("woodenSingleSlab1"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("woodenDoubleSlab1"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("woodenSingleSlab2"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("woodenDoubleSlab2"), 5, 20);
|
||||
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("sacredoakStairs"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("cherryStairs"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("darkStairs"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("firStairs"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("holyStairs"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("magicStairs"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("mangroveStairs"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("palmStairs"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("redwoodStairs"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("willowStairs"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("pineStairs"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("hellBarkStairs"), 5, 20);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("jacarandaStairs"), 5, 20);
|
||||
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("moss"), 15, 100);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("treeMoss"), 15, 100);
|
||||
Blocks.fire.setFireInfo(BOPBlockHelper.get("willow"), 15, 100);
|
||||
}
|
||||
|
||||
public static void registerBlock(Block block)
|
||||
|
|
Loading…
Reference in a new issue