|
@@ -1,5 +1,12 @@
|
|
package me.km.blocks;
|
|
package me.km.blocks;
|
|
|
|
|
|
|
|
+import me.km.blocks.cauldron.BlockWoodCauldron;
|
|
|
|
+import me.km.blocks.cauldron.TileEntityCauldron;
|
|
|
|
+import me.km.blocks.campfire.TileEntityCampFire;
|
|
|
|
+import me.km.blocks.campfire.BlockCampFireBurning;
|
|
|
|
+import me.km.blocks.campfire.BlockCampFire;
|
|
|
|
+import me.km.blocks.campfire.BlockCampFireBurnt;
|
|
|
|
+import me.km.blocks.leaves.*;
|
|
import me.km.fluids.BlockFluidBase;
|
|
import me.km.fluids.BlockFluidBase;
|
|
import me.km.fluids.BlockFluidHoney;
|
|
import me.km.fluids.BlockFluidHoney;
|
|
import me.km.fluids.BlockFluidPoison;
|
|
import me.km.fluids.BlockFluidPoison;
|
|
@@ -13,6 +20,8 @@ import net.minecraft.block.material.Material;
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.item.ItemBlock;
|
|
import net.minecraft.item.ItemBlock;
|
|
|
|
+import net.minecraft.item.ItemMultiTexture;
|
|
|
|
+import net.minecraft.item.ItemStack;
|
|
import net.minecraftforge.fml.common.registry.GameRegistry;
|
|
import net.minecraftforge.fml.common.registry.GameRegistry;
|
|
import net.minecraftforge.registries.IForgeRegistry;
|
|
import net.minecraftforge.registries.IForgeRegistry;
|
|
|
|
|
|
@@ -74,9 +83,20 @@ public class ModBlocks
|
|
public static BlockModSlab gravelSlab;
|
|
public static BlockModSlab gravelSlab;
|
|
|
|
|
|
// leaves
|
|
// leaves
|
|
- public static BlockModLeaves redCrystalLeaves;
|
|
|
|
- public static BlockModLeaves blueCrystalLeaves;
|
|
|
|
- public static BlockModLeaves whiteCrystalLeaves;
|
|
|
|
|
|
+ public static BlockLeaves redCrystalLeaves;
|
|
|
|
+ public static BlockLeaves blueCrystalLeaves;
|
|
|
|
+ public static BlockLeaves whiteCrystalLeaves;
|
|
|
|
+ public static BlockLeaves apricotLeaves;
|
|
|
|
+ public static BlockLeaves pearLeaves;
|
|
|
|
+ public static BlockLeaves plumLeaves;
|
|
|
|
+
|
|
|
|
+ // saplings
|
|
|
|
+ public static BlockSapling redCrystalSapling;
|
|
|
|
+ public static BlockSapling blueCrystalSapling;
|
|
|
|
+ public static BlockSapling whiteCrystalSapling;
|
|
|
|
+ public static BlockSapling apricotSapling;
|
|
|
|
+ public static BlockSapling pearSapling;
|
|
|
|
+ public static BlockSapling plumSapling;
|
|
|
|
|
|
public static void initBlocks(IForgeRegistry<Block> r)
|
|
public static void initBlocks(IForgeRegistry<Block> r)
|
|
{
|
|
{
|
|
@@ -141,9 +161,20 @@ public class ModBlocks
|
|
gravelSlab = register(r, (BlockModSlab) new BlockModSlab(Material.SAND, "gravel_slab", "gravelSlab").setSoundType(SoundType.GROUND).setHardness(0.6F));
|
|
gravelSlab = register(r, (BlockModSlab) new BlockModSlab(Material.SAND, "gravel_slab", "gravelSlab").setSoundType(SoundType.GROUND).setHardness(0.6F));
|
|
|
|
|
|
// leaves
|
|
// leaves
|
|
- redCrystalLeaves = register(r, new BlockModLeaves("red_crystal_leaves", "redCrystalLeaves", BlockPlanks.EnumType.JUNGLE));
|
|
|
|
- blueCrystalLeaves = register(r, new BlockModLeaves("blue_crystal_leaves", "blueCrystalLeaves", BlockPlanks.EnumType.OAK));
|
|
|
|
- whiteCrystalLeaves = register(r, new BlockModLeaves("white_crystal_leaves", "whiteCrystalLeaves", BlockPlanks.EnumType.SPRUCE));
|
|
|
|
|
|
+ redCrystalLeaves = register(r, new BlockRedCrystalLeaves("red_crystal_leaves", "redCrystalLeaves"));
|
|
|
|
+ blueCrystalLeaves = register(r, new BlockBlueCrystalLeaves("blue_crystal_leaves", "blueCrystalLeaves"));
|
|
|
|
+ whiteCrystalLeaves = register(r, new BlockWhiteCrystalLeaves("white_crystal_leaves", "whiteCrystalLeaves"));
|
|
|
|
+ apricotLeaves = register(r, new BlockApricotLeaves("apricot_leaves", "apricotLeaves"));
|
|
|
|
+ pearLeaves = register(r, new BlockPearLeaves("pear_leaves", "pearLeaves"));
|
|
|
|
+ plumLeaves = register(r, new BlockPlumLeaves("plum_leaves", "plumLeaves"));
|
|
|
|
+
|
|
|
|
+ // saplings
|
|
|
|
+ redCrystalSapling = register(r, new BlockSapling("red_crystal_sapling", "redCrystalSapling", BlockPlanks.EnumType.JUNGLE, redCrystalLeaves));
|
|
|
|
+ blueCrystalSapling = register(r, new BlockSapling("blue_crystal_sapling", "blueCrystalSapling", BlockPlanks.EnumType.OAK, blueCrystalLeaves));
|
|
|
|
+ whiteCrystalSapling = register(r, new BlockSapling("white_crystal_sapling", "whiteCrystalSapling", BlockPlanks.EnumType.SPRUCE, whiteCrystalLeaves));
|
|
|
|
+ apricotSapling = register(r, new BlockSapling("apricot_sapling", "apricotSapling", BlockPlanks.EnumType.OAK, apricotLeaves));
|
|
|
|
+ pearSapling = register(r, new BlockSapling("pear_sapling", "pearSapling", BlockPlanks.EnumType.OAK, pearLeaves));
|
|
|
|
+ plumSapling = register(r, new BlockSapling("plum_sapling", "plumSapling", BlockPlanks.EnumType.OAK, plumLeaves));
|
|
}
|
|
}
|
|
|
|
|
|
public static void initItemBlocks(IForgeRegistry<Item> r)
|
|
public static void initItemBlocks(IForgeRegistry<Item> r)
|
|
@@ -203,6 +234,17 @@ public class ModBlocks
|
|
register(r, redCrystalLeaves, getItemBlock(redCrystalLeaves));
|
|
register(r, redCrystalLeaves, getItemBlock(redCrystalLeaves));
|
|
register(r, blueCrystalLeaves, getItemBlock(blueCrystalLeaves));
|
|
register(r, blueCrystalLeaves, getItemBlock(blueCrystalLeaves));
|
|
register(r, whiteCrystalLeaves, getItemBlock(whiteCrystalLeaves));
|
|
register(r, whiteCrystalLeaves, getItemBlock(whiteCrystalLeaves));
|
|
|
|
+ register(r, apricotLeaves, getItemBlock(apricotLeaves));
|
|
|
|
+ register(r, pearLeaves, getItemBlock(pearLeaves));
|
|
|
|
+ register(r, plumLeaves, getItemBlock(plumLeaves));
|
|
|
|
+
|
|
|
|
+ // saplings
|
|
|
|
+ register(r, redCrystalSapling, getItemBlock(redCrystalSapling));
|
|
|
|
+ register(r, blueCrystalSapling, getItemBlock(blueCrystalSapling));
|
|
|
|
+ register(r, whiteCrystalSapling, getItemBlock(whiteCrystalSapling));
|
|
|
|
+ register(r, apricotSapling, getItemBlock(apricotSapling));
|
|
|
|
+ register(r, pearSapling, getItemBlock(pearSapling));
|
|
|
|
+ register(r, plumSapling, getItemBlock(plumSapling));
|
|
}
|
|
}
|
|
|
|
|
|
private static void register(IForgeRegistry<Item> r, Block block, Item itemBlock)
|
|
private static void register(IForgeRegistry<Item> r, Block block, Item itemBlock)
|