Always use qualified access for fields and methods

This commit is contained in:
yueh
2017-07-20 21:27:22 +02:00
parent f9cad0758d
commit 15582fd1df
211 changed files with 1086 additions and 1086 deletions
@@ -267,7 +267,7 @@ public class ItemFacade extends AEBaseItem implements IFacadeItem, IAlphaPassIte
public IBlockState getTextureBlockState( ItemStack is )
{
ItemStack baseItemStack = getTextureItem( is );
ItemStack baseItemStack = this.getTextureItem( is );
if( baseItemStack.isEmpty() )
{
@@ -166,7 +166,7 @@ public final class ItemPart extends AEBaseItem implements IPartItem, IItemGroup
public String getUnlocalizedName( final ItemStack is )
{
Preconditions.checkNotNull( is );
return "item.appliedenergistics2.multi_part." + getTypeByStack( is ).getUnlocalizedName().toLowerCase();
return "item.appliedenergistics2.multi_part." + this.getTypeByStack( is ).getUnlocalizedName().toLowerCase();
}
@Override
@@ -111,13 +111,13 @@ public class ItemPartRendering extends ItemRenderingCustomizer
List<ResourceLocation> partResourceLocs = modelNames.stream()
.map( name -> new ResourceLocation( AppEng.MOD_ID, name ) )
.collect( Collectors.toList() );
partModels.registerModels( partResourceLocs );
this.partModels.registerModels( partResourceLocs );
}
private ModelResourceLocation getItemMeshDefinition( ItemStack is )
{
PartType partType = item.getTypeByStack( is );
int variant = item.variantOf( is.getItemDamage() );
PartType partType = this.item.getTypeByStack( is );
int variant = this.item.variantOf( is.getItemDamage() );
return partType.getItemModels().get( variant );
}
}
@@ -314,13 +314,13 @@ public enum PartType
this.enabled = features.stream().allMatch( AEConfig.instance()::isFeatureEnabled ) && integrations.stream()
.allMatch( IntegrationRegistry.INSTANCE::isEnabled );
if( enabled )
if( this.enabled )
{
// Only load models if the part is enabled, otherwise we also run into class-loading issues while
// scanning for annotations
if( Platform.isClientInstall() )
{
this.itemModels = createItemModels( itemModel );
this.itemModels = this.createItemModels( itemModel );
}
if( c != null )
{
@@ -355,7 +355,7 @@ public enum PartType
public boolean isEnabled()
{
return enabled;
return this.enabled;
}
int getBaseDamage()
@@ -385,7 +385,7 @@ public enum PartType
String getUnlocalizedName()
{
return name().toLowerCase();
return this.name().toLowerCase();
}
GuiText getExtraName()
@@ -406,12 +406,12 @@ public enum PartType
@SideOnly( Side.CLIENT )
public List<ModelResourceLocation> getItemModels()
{
return itemModels;
return this.itemModels;
}
public Set<ResourceLocation> getModels()
{
return models;
return this.models;
}
}