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

@ -52,7 +52,7 @@ public class ItemArcaneAshes extends Item implements IVariantProvider
if (!world.isRemote)
{
EnumFacing rotation = EnumFacing.fromAngle(player.getRotationYawHead());
world.setBlockState(newPos, ModBlocks.alchemyArray.getDefaultState());
world.setBlockState(newPos, ModBlocks.ALCHEMY_ARRAY.getDefaultState());
TileEntity tile = world.getTileEntity(newPos);
if (tile instanceof TileAlchemyArray)
{

View file

@ -153,7 +153,7 @@ public class ItemRitualDiviner extends Item implements IVariantProvider
return false;
}
int meta = component.getRuneType().ordinal();
IBlockState newState = ModBlocks.ritualStone.getStateFromMeta(meta);
IBlockState newState = ModBlocks.RITUAL_STONE.getStateFromMeta(meta);
world.setBlockState(newPos, newState);
return true;
} else
@ -212,7 +212,7 @@ public class ItemRitualDiviner extends Item implements IVariantProvider
if (item instanceof ItemBlock)
{
Block block = ((ItemBlock) item).getBlock();
if (block == ModBlocks.ritualStone)
if (block == ModBlocks.RITUAL_STONE)
{
newStack.stackSize--;
if (newStack.stackSize <= 0)

View file

@ -42,7 +42,7 @@ public class ItemSigilBloodLight extends ItemSigilBase
if (world.isAirBlock(blockPos))
{
world.setBlockState(blockPos, ModBlocks.bloodLight.getDefaultState());
world.setBlockState(blockPos, ModBlocks.BLOOD_LIGHT.getDefaultState());
if (!world.isRemote)
NetworkHelper.syphonAndDamage(NetworkHelper.getSoulNetwork(player), player, getLpUsed());
resetCooldown(stack);

View file

@ -36,7 +36,7 @@ public class ItemSigilPhantomBridge extends ItemSigilToggleableBase
BlockPos blockPos = new BlockPos(ix, posY + verticalOffset, iz);
if (world.isAirBlock(blockPos))
world.setBlockState(blockPos, ModBlocks.phantomBlock.getDefaultState());
world.setBlockState(blockPos, ModBlocks.PHANTOM_BLOCK.getDefaultState());
}
}
}