final variables and parameters
This commit is contained in:
@@ -41,7 +41,7 @@ public class AEItemResolver implements ISubItemResolver
|
||||
{
|
||||
|
||||
@Override
|
||||
public Object resolveItemByName( String nameSpace, String itemName )
|
||||
public Object resolveItemByName( final String nameSpace, final String itemName )
|
||||
{
|
||||
|
||||
if( nameSpace.equals( AppEng.MOD_ID ) )
|
||||
@@ -120,8 +120,8 @@ public class AEItemResolver implements ISubItemResolver
|
||||
|
||||
if( itemName.startsWith( "ItemMaterial." ) )
|
||||
{
|
||||
String materialName = itemName.substring( itemName.indexOf( '.' ) + 1 );
|
||||
MaterialType mt = MaterialType.valueOf( materialName );
|
||||
final String materialName = itemName.substring( itemName.indexOf( '.' ) + 1 );
|
||||
final MaterialType mt = MaterialType.valueOf( materialName );
|
||||
// itemName = itemName.substring( 0, itemName.indexOf( "." ) );
|
||||
if( mt.itemInstance == MultiItem.instance && mt.damageValue >= 0 && mt.isRegistered() )
|
||||
{
|
||||
@@ -131,10 +131,10 @@ public class AEItemResolver implements ISubItemResolver
|
||||
|
||||
if( itemName.startsWith( "ItemPart." ) )
|
||||
{
|
||||
String partName = itemName.substring( itemName.indexOf( '.' ) + 1 );
|
||||
PartType pt = PartType.valueOf( partName );
|
||||
final String partName = itemName.substring( itemName.indexOf( '.' ) + 1 );
|
||||
final PartType pt = PartType.valueOf( partName );
|
||||
// itemName = itemName.substring( 0, itemName.indexOf( "." ) );
|
||||
int dVal = ItemMultiPart.instance.getDamageByType( pt );
|
||||
final int dVal = ItemMultiPart.instance.getDamageByType( pt );
|
||||
if( dVal >= 0 )
|
||||
{
|
||||
return new ResolverResult( "ItemMultiPart", dVal );
|
||||
@@ -145,7 +145,7 @@ public class AEItemResolver implements ISubItemResolver
|
||||
return null;
|
||||
}
|
||||
|
||||
private Object paintBall( AEColoredItemDefinition partType, String substring, boolean lumen )
|
||||
private Object paintBall( final AEColoredItemDefinition partType, final String substring, final boolean lumen )
|
||||
{
|
||||
AEColor col;
|
||||
|
||||
@@ -153,7 +153,7 @@ public class AEItemResolver implements ISubItemResolver
|
||||
{
|
||||
col = AEColor.valueOf( substring );
|
||||
}
|
||||
catch( Throwable t )
|
||||
catch( final Throwable t )
|
||||
{
|
||||
col = AEColor.Transparent;
|
||||
}
|
||||
@@ -163,11 +163,11 @@ public class AEItemResolver implements ISubItemResolver
|
||||
return null;
|
||||
}
|
||||
|
||||
ItemStack is = partType.stack( col, 1 );
|
||||
final ItemStack is = partType.stack( col, 1 );
|
||||
return new ResolverResult( "ItemPaintBall", ( lumen ? 20 : 0 ) + is.getItemDamage() );
|
||||
}
|
||||
|
||||
private Object cableItem( AEColoredItemDefinition partType, String substring )
|
||||
private Object cableItem( final AEColoredItemDefinition partType, final String substring )
|
||||
{
|
||||
AEColor col;
|
||||
|
||||
@@ -175,12 +175,12 @@ public class AEItemResolver implements ISubItemResolver
|
||||
{
|
||||
col = AEColor.valueOf( substring );
|
||||
}
|
||||
catch( Throwable t )
|
||||
catch( final Throwable t )
|
||||
{
|
||||
col = AEColor.Transparent;
|
||||
}
|
||||
|
||||
ItemStack is = partType.stack( col, 1 );
|
||||
final ItemStack is = partType.stack( col, 1 );
|
||||
return new ResolverResult( "ItemMultiPart", is.getItemDamage() );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user