Formatted code
This commit is contained in:
@@ -49,36 +49,36 @@ public class BlockController extends AEBaseTileBlock
|
||||
{
|
||||
return this.name();
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
public static final PropertyEnum CONTROLLER_STATE = PropertyEnum.create("state",ControllerBlockState.class);
|
||||
|
||||
@Override
|
||||
protected IProperty[] getAEStates()
|
||||
{
|
||||
return new IProperty[]{ CONTROLLER_STATE };
|
||||
}
|
||||
|
||||
public static final PropertyEnum CONTROLLER_STATE = PropertyEnum.create( "state", ControllerBlockState.class );
|
||||
|
||||
@Override
|
||||
protected IProperty[] getAEStates()
|
||||
{
|
||||
return new IProperty[] { CONTROLLER_STATE };
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetaFromState(
|
||||
final IBlockState state )
|
||||
{
|
||||
return ((ControllerBlockState)state.getValue( CONTROLLER_STATE )).ordinal();
|
||||
return ( (ControllerBlockState) state.getValue( CONTROLLER_STATE ) ).ordinal();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public IBlockState getStateFromMeta( final int meta )
|
||||
{
|
||||
return this.getDefaultState().withProperty( CONTROLLER_STATE, ControllerBlockState.OFFLINE );
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public EnumWorldBlockLayer getBlockLayer()
|
||||
{
|
||||
return EnumWorldBlockLayer.CUTOUT;
|
||||
}
|
||||
|
||||
|
||||
public BlockController()
|
||||
{
|
||||
super( Material.iron );
|
||||
|
||||
@@ -36,9 +36,9 @@ public class BlockDenseEnergyCell extends BlockEnergyCell
|
||||
}
|
||||
|
||||
@Override
|
||||
public appeng.client.texture.IAESprite getIcon( final net.minecraft.util.EnumFacing side, final net.minecraft.block.state.IBlockState state)
|
||||
public appeng.client.texture.IAESprite getIcon( final net.minecraft.util.EnumFacing side, final net.minecraft.block.state.IBlockState state )
|
||||
{
|
||||
switch( (int)state.getValue( ENERGY_STORAGE ) )
|
||||
switch( (int) state.getValue( ENERGY_STORAGE ) )
|
||||
{
|
||||
default:
|
||||
case 0:
|
||||
@@ -59,7 +59,7 @@ public class BlockDenseEnergyCell extends BlockEnergyCell
|
||||
return ExtraBlockTextures.MEDenseEnergyCell7.getIcon();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public double getMaxPower()
|
||||
{
|
||||
|
||||
@@ -52,15 +52,15 @@ public class BlockEnergyCell extends AEBaseTileBlock
|
||||
public int getMetaFromState(
|
||||
final IBlockState state )
|
||||
{
|
||||
return (int)state.getValue( ENERGY_STORAGE );
|
||||
return (int) state.getValue( ENERGY_STORAGE );
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public IBlockState getStateFromMeta( final int meta )
|
||||
{
|
||||
return this.getDefaultState().withProperty( ENERGY_STORAGE, Math.min( 7, Math.max( 0, meta ) ) );
|
||||
return this.getDefaultState().withProperty( ENERGY_STORAGE, Math.min( 7, Math.max( 0, meta ) ) );
|
||||
}
|
||||
|
||||
|
||||
public BlockEnergyCell()
|
||||
{
|
||||
super( AEGlassMaterial.INSTANCE );
|
||||
@@ -76,9 +76,9 @@ public class BlockEnergyCell extends AEBaseTileBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public appeng.client.texture.IAESprite getIcon( final net.minecraft.util.EnumFacing side, final IBlockState state)
|
||||
public appeng.client.texture.IAESprite getIcon( final net.minecraft.util.EnumFacing side, final IBlockState state )
|
||||
{
|
||||
switch( (int)state.getValue( ENERGY_STORAGE ) )
|
||||
switch( (int) state.getValue( ENERGY_STORAGE ) )
|
||||
{
|
||||
default:
|
||||
case 0:
|
||||
@@ -122,7 +122,7 @@ public class BlockEnergyCell extends AEBaseTileBlock
|
||||
@Override
|
||||
protected IProperty[] getAEStates()
|
||||
{
|
||||
return new IProperty[]{ENERGY_STORAGE};
|
||||
return new IProperty[] { ENERGY_STORAGE };
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -67,7 +67,7 @@ public class BlockWireless extends AEBaseTileBlock implements ICustomCollision
|
||||
{
|
||||
return EnumWorldBlockLayer.CUTOUT;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean onBlockActivated(
|
||||
final World w,
|
||||
|
||||
Reference in New Issue
Block a user