Search in sources :

Example 1 with BlockFluidUpwards

use of com.axanthic.loi.blocks.BlockFluidUpwards in project Lands-of-Icaria by Axanthic-Game-Studios.

the class LOIFluids method registerFluids.

public static void registerFluids() {
    FluidRegistry.registerFluid(waterFluid);
    FluidRegistry.addBucketForFluid(waterFluid);
    waterFluidBlock = new ItemBlock(new BlockFluidCustom(waterFluid, Material.WATER).canCreateSources(true));
    waterFluid.setBlock(waterFluidBlock.getBlock());
    Resources.registerBlock(waterFluidBlock);
    FluidRegistry.registerFluid(gasFluid);
    FluidRegistry.addBucketForFluid(gasFluid);
    gasFluidBlock = new ItemBlock(new BlockFluidUpwards(gasFluid, Material.WATER));
    gasFluid.setBlock(gasFluidBlock.getBlock());
    Resources.registerBlock(gasFluidBlock);
    FluidRegistry.registerFluid(voidFluid);
    FluidRegistry.addBucketForFluid(voidFluid);
    voidFluidBlock = new ItemBlock(new BlockFluidCustom(voidFluid, Material.LAVA).canCreateSources(false));
    voidFluid.setBlock(voidFluidBlock.getBlock());
    Resources.registerBlock(voidFluidBlock);
}
Also used : ItemBlock(net.minecraft.item.ItemBlock) BlockFluidCustom(com.axanthic.loi.blocks.BlockFluidCustom) BlockFluidUpwards(com.axanthic.loi.blocks.BlockFluidUpwards)

Aggregations

BlockFluidCustom (com.axanthic.loi.blocks.BlockFluidCustom)1 BlockFluidUpwards (com.axanthic.loi.blocks.BlockFluidUpwards)1 ItemBlock (net.minecraft.item.ItemBlock)1