Made all block fields final

This commit is contained in:
Nicholas Ignoffo 2016-09-10 16:13:20 -07:00
parent f244f2c053
commit 537ccc092c
25 changed files with 242 additions and 254 deletions

View file

@ -5,7 +5,6 @@ import WayofTime.bloodmagic.api.soul.EnumDemonWillType;
import WayofTime.bloodmagic.api.soul.IDemonWillConduit;
import WayofTime.bloodmagic.demonAura.WorldDemonWillHandler;
import WayofTime.bloodmagic.registry.ModBlocks;
import WayofTime.bloodmagic.tile.base.TileBase;
import WayofTime.bloodmagic.tile.base.TileTicking;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
@ -61,7 +60,7 @@ public class TileDemonCrystallizer extends TileTicking implements IDemonWillCond
public boolean formCrystal(EnumDemonWillType type, BlockPos position)
{
worldObj.setBlockState(position, ModBlocks.demonCrystal.getStateFromMeta(type.ordinal()));
worldObj.setBlockState(position, ModBlocks.DEMON_CRYSTAL.getStateFromMeta(type.ordinal()));
TileEntity tile = worldObj.getTileEntity(position);
if (tile instanceof TileDemonCrystal)
{

View file

@ -148,7 +148,7 @@ public class TileInversionPillar extends TileTicking
if (!state.getBlock().isAir(state, worldObj, offsetPos))
{
//Consume Will and set this block
return worldObj.setBlockState(offsetPos, ModBlocks.demonExtras.getStateFromMeta(0));
return worldObj.setBlockState(offsetPos, ModBlocks.DEMON_EXTRAS.getStateFromMeta(0));
}
return false;

View file

@ -142,7 +142,7 @@ public class TileMimic extends TileInventory implements ITickable
if (player.isSneaking())
return false;
if (player.getHeldItem(hand) != null && player.getHeldItem(hand).getItem() == new ItemStack(ModBlocks.mimic).getItem())
if (player.getHeldItem(hand) != null && player.getHeldItem(hand).getItem() == new ItemStack(ModBlocks.MIMIC).getItem())
return false;
if (getStackInSlot(0) != null && player.getHeldItem(hand) != null)

View file

@ -88,7 +88,7 @@ public class TileSpectralBlock extends TileTicking
if (world.isAirBlock(blockPos))
return;
IBlockState cachedState = world.getBlockState(blockPos);
world.setBlockState(blockPos, ModBlocks.spectralBlock.getDefaultState());
world.setBlockState(blockPos, ModBlocks.SPECTRAL_BLOCK.getDefaultState());
TileSpectralBlock tile = (TileSpectralBlock) world.getTileEntity(blockPos);
tile.setContainedBlockInfo(cachedState);
tile.setDuration(duration);