More fluid stuff lot more TODO
This commit is contained in:
parent
77634fafd3
commit
1ae5a20517
12 changed files with 97 additions and 1 deletions
|
@ -0,0 +1,14 @@
|
|||
package techreborn.blocks.fluid;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
|
||||
public class BlockCalciumCarbonate extends BlockFluidBase{
|
||||
|
||||
public BlockCalciumCarbonate(Fluid fluid, Material material)
|
||||
{
|
||||
super(fluid, material);
|
||||
setBlockName("techreborn.calciumcarbonate");
|
||||
}
|
||||
|
||||
}
|
14
src/main/java/techreborn/blocks/fluid/BlockFluidCalcium.java
Normal file
14
src/main/java/techreborn/blocks/fluid/BlockFluidCalcium.java
Normal file
|
@ -0,0 +1,14 @@
|
|||
package techreborn.blocks.fluid;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
|
||||
public class BlockFluidCalcium extends BlockFluidBase{
|
||||
|
||||
public BlockFluidCalcium(Fluid fluid, Material material)
|
||||
{
|
||||
super(fluid, material);
|
||||
setBlockName("techreborn.calcium");
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package techreborn.blocks.fluid;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
|
||||
public class BlockFluidChlorite extends BlockFluidBase{
|
||||
|
||||
public BlockFluidChlorite(Fluid fluid, Material material)
|
||||
{
|
||||
super(fluid, material);
|
||||
setBlockName("techreborn.chlorite");
|
||||
}
|
||||
|
||||
}
|
|
@ -1,9 +1,12 @@
|
|||
package techreborn.init;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import techreborn.blocks.fluid.BlockCalciumCarbonate;
|
||||
import techreborn.blocks.fluid.BlockFluidBerylium;
|
||||
import techreborn.blocks.fluid.BlockFluidChlorite;
|
||||
import techreborn.lib.ModInfo;
|
||||
import techreborn.util.BucketHandler;
|
||||
import techreborn.blocks.fluid.BlockFluidCalcium;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
@ -15,6 +18,15 @@ public class ModFluids {
|
|||
public static Fluid fluidberylium = new Fluid("fluidberylium");
|
||||
public static Block BlockFluidBerylium;
|
||||
|
||||
public static Fluid fluidcalcium = new Fluid("fluidcalcium");
|
||||
public static Block BlockFluidCalcium;
|
||||
|
||||
public static Fluid fluidcalciumcarbonate = new Fluid("fluidcalciumcarbonate");
|
||||
public static Block BlockFluidCalciumCarbonate;
|
||||
|
||||
public static Fluid fluidChlorite = new Fluid("fluidchlorite");
|
||||
public static Block BlockFluidChlorite;
|
||||
|
||||
public static void init()
|
||||
{
|
||||
FluidRegistry.registerFluid(fluidberylium);
|
||||
|
@ -22,7 +34,22 @@ public class ModFluids {
|
|||
GameRegistry.registerBlock(BlockFluidBerylium, ModInfo.MOD_ID + "_" + BlockFluidBerylium.getUnlocalizedName().substring(5));
|
||||
fluidberylium.setUnlocalizedName(BlockFluidBerylium.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidcalcium);
|
||||
BlockFluidCalcium = new BlockFluidCalcium(fluidcalcium, Material.water);
|
||||
GameRegistry.registerBlock(BlockFluidCalcium, ModInfo.MOD_ID + "_" + BlockFluidCalcium.getUnlocalizedName().substring(5));
|
||||
fluidcalcium.setUnlocalizedName(BlockFluidCalcium.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidcalciumcarbonate);
|
||||
BlockFluidCalciumCarbonate = new BlockCalciumCarbonate(fluidcalciumcarbonate, Material.water);
|
||||
GameRegistry.registerBlock(BlockFluidCalciumCarbonate, ModInfo.MOD_ID + "_" + BlockFluidCalciumCarbonate.getUnlocalizedName().substring(5));
|
||||
fluidcalcium.setUnlocalizedName(BlockFluidCalciumCarbonate.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidChlorite);
|
||||
BlockFluidChlorite = new BlockFluidChlorite(fluidChlorite, Material.water);
|
||||
GameRegistry.registerBlock(BlockFluidChlorite, ModInfo.MOD_ID + "_" + BlockFluidChlorite.getUnlocalizedName().substring(5));
|
||||
fluidChlorite.setUnlocalizedName(BlockFluidChlorite.getUnlocalizedName());
|
||||
|
||||
//TODO
|
||||
BucketHandler.INSTANCE.buckets.put(ModFluids.BlockFluidBerylium, ModItems.cells);
|
||||
MinecraftForge.EVENT_BUS.register(BucketHandler.INSTANCE);
|
||||
}
|
||||
|
|
|
@ -22,6 +22,7 @@ import techreborn.items.armor.ItemGravityChest;
|
|||
import techreborn.items.armor.ItemLapotronPack;
|
||||
import techreborn.items.armor.ItemLithiumBatpack;
|
||||
import techreborn.items.tools.ItemAdvancedDrill;
|
||||
import techreborn.items.tools.ItemFluidbucket;
|
||||
import techreborn.items.tools.ItemOmniTool;
|
||||
import techreborn.items.tools.ItemRockCutter;
|
||||
import techreborn.items.tools.ItemTechPda;
|
||||
|
@ -50,6 +51,7 @@ public class ModItems {
|
|||
public static Item rods;
|
||||
public static Item crushedOre;
|
||||
public static Item purifiedCrushedOre;
|
||||
public static Item fluidBucket;
|
||||
|
||||
public static void init()
|
||||
{
|
||||
|
@ -93,6 +95,8 @@ public class ModItems {
|
|||
GameRegistry.registerItem(manuel, "techmanuel");
|
||||
uuMatter = new ItemUUmatter();
|
||||
GameRegistry.registerItem(uuMatter, "uumatter");
|
||||
fluidBucket = new ItemFluidbucket(ModFluids.BlockFluidBerylium);
|
||||
GameRegistry.registerItem(fluidBucket, "fluidbucket");
|
||||
|
||||
LogHelper.info("TechReborns Items Loaded");
|
||||
|
||||
|
|
23
src/main/java/techreborn/items/tools/ItemFluidbucket.java
Normal file
23
src/main/java/techreborn/items/tools/ItemFluidbucket.java
Normal file
|
@ -0,0 +1,23 @@
|
|||
package techreborn.items.tools;
|
||||
|
||||
import techreborn.lib.ModInfo;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.item.ItemBucket;
|
||||
|
||||
public class ItemFluidbucket extends ItemBucket{
|
||||
|
||||
public ItemFluidbucket(Block block)
|
||||
{
|
||||
super(block);
|
||||
setUnlocalizedName("techreborn.fluidbucket");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IIconRegister iconRegister)
|
||||
{
|
||||
itemIcon = iconRegister.registerIcon(ModInfo.MOD_ID.toLowerCase() + ":"
|
||||
+ getUnlocalizedName());
|
||||
}
|
||||
|
||||
}
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Loading…
Reference in a new issue