QuartzFixture and (semi-borked) LightningFX

This commit is contained in:
Sebastian Hartte
2020-06-01 16:59:11 +02:00
parent 260b2d1c92
commit 2a1ba12516
37 changed files with 270 additions and 233 deletions
@@ -165,7 +165,7 @@ public class TileCraftingTile extends AENetworkTile implements IAEMultiBlock, IP
// The tile might try to update while being destroyed
if( current.getBlock() instanceof BlockCraftingUnit )
{
final BlockState newState = current.withProperty( BlockCraftingUnit.POWERED, power ).withProperty( BlockCraftingUnit.FORMED, formed );
final BlockState newState = current.with( BlockCraftingUnit.POWERED, power ).with( BlockCraftingUnit.FORMED, formed );
if( current != newState )
{
@@ -536,7 +536,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IUpgrade
{
if( this.pushDirection == AEPartLocation.INTERNAL )
{
for( final Direction d : Direction.VALUES )
for( final Direction d : Direction.values() )
{
output = this.pushTo( output, d );
}
@@ -161,7 +161,7 @@ public class TilePaint extends AEBaseTile
return;
}
for( final Direction side : Direction.VALUES )
for( final Direction side : Direction.values() )
{
if( !this.isSideValid( side ) )
{
@@ -128,7 +128,7 @@ public class TileController extends AENetworkPowerTile
if( this.checkController( this.pos ) && this.world.getBlockState( this.pos ).getValue( BlockController.CONTROLLER_STATE ) != metaState )
{
this.world.setBlockState( this.pos, this.world.getBlockState( this.pos ).withProperty( BlockController.CONTROLLER_STATE, metaState ) );
this.world.setBlockState( this.pos, this.world.getBlockState( this.pos ).with( BlockController.CONTROLLER_STATE, metaState ) );
}
}
@@ -94,7 +94,7 @@ public class TileEnergyCell extends AENetworkTile implements IAEPowerStorage
if( this.currentMeta != storageLevel )
{
this.currentMeta = (byte) storageLevel;
this.world.setBlockState( this.pos, this.world.getBlockState( this.pos ).withProperty( BlockEnergyCell.ENERGY_STORAGE, storageLevel ) );
this.world.setBlockState( this.pos, this.world.getBlockState( this.pos ).with( BlockEnergyCell.ENERGY_STORAGE, storageLevel ) );
}
}