Made all block fields final
This commit is contained in:
parent
f244f2c053
commit
537ccc092c
25 changed files with 242 additions and 254 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue