this doesn't compile yet, but have something to peek at
This commit is contained in:
parent
973f1019a5
commit
5fcdd978d7
329 changed files with 3247 additions and 2953 deletions
|
@ -2,9 +2,8 @@ package WayofTime.bloodmagic.block;
|
|||
|
||||
import java.awt.Color;
|
||||
|
||||
import lombok.Getter;
|
||||
import WayofTime.bloodmagic.BloodMagic;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.util.BlockRenderLayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
|
@ -19,16 +18,15 @@ import WayofTime.bloodmagic.util.helper.TextHelper;
|
|||
|
||||
public class BlockLifeEssence extends BlockFluidClassic
|
||||
{
|
||||
@Getter
|
||||
private static Fluid lifeEssence = new FluidLifeEssence();
|
||||
private static final Fluid LIFE_ESSENCE = new FluidLifeEssence();
|
||||
|
||||
public BlockLifeEssence()
|
||||
{
|
||||
super(lifeEssence, Material.WATER);
|
||||
super(LIFE_ESSENCE, Material.WATER);
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".fluid.lifeEssence");
|
||||
setUnlocalizedName(BloodMagic.MODID + ".fluid.lifeEssence");
|
||||
getLifeEssence().setBlock(this);
|
||||
BloodMagicAPI.setLifeEssence(getLifeEssence());
|
||||
BloodMagicAPI.lifeEssence = LIFE_ESSENCE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -43,6 +41,10 @@ public class BlockLifeEssence extends BlockFluidClassic
|
|||
return !world.getBlockState(blockPos).getBlock().getMaterial(world.getBlockState(blockPos)).isLiquid() && super.displaceIfPossible(world, blockPos);
|
||||
}
|
||||
|
||||
public static Fluid getLifeEssence() {
|
||||
return LIFE_ESSENCE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockRenderLayer getBlockLayer()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue