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
@@ -204,17 +204,17 @@ public enum AEFeature
public String key()
{
return key;
return this.key;
}
public String category()
{
return category;
return this.category;
}
public boolean isEnabled()
{
return enabled;
return this.enabled;
}
private enum Constants
@@ -65,6 +65,6 @@ public class BlockDefinition extends ItemDefinition implements IBlockDefinition
@Override
public final boolean isSameAs( final IBlockAccess world, final BlockPos pos )
{
return block.isPresent() && world.getBlockState( pos ).getBlock() == this.block.get();
return this.block.isPresent() && world.getBlockState( pos ).getBlock() == this.block.get();
}
}
@@ -73,7 +73,7 @@ public class ItemDefinition implements IItemDefinition
@Override
public final boolean isSameAs( final ItemStack comparableStack )
{
return isEnabled() && Platform.itemComparisons().isEqualItemType( comparableStack, this.maybeStack( 1 ).get() );
return this.isEnabled() && Platform.itemComparisons().isEqualItemType( comparableStack, this.maybeStack( 1 ).get() );
}
}
@@ -270,6 +270,6 @@ public final class P2PTunnelRegistry implements IP2PTunnelRegistry
private void addNewAttunement( final IItemDefinition definition, final TunnelType type )
{
definition.maybeStack( 1 ).ifPresent( definitionStack -> addNewAttunement( definitionStack, type ) );
definition.maybeStack( 1 ).ifPresent( definitionStack -> this.addNewAttunement( definitionStack, type ) );
}
}
@@ -38,17 +38,17 @@ public class PartModels implements IPartModels
@Override
public void registerModels( Collection<ResourceLocation> partModels )
{
if( initialized )
if( this.initialized )
{
throw new IllegalStateException( "Cannot register models after the pre-initialization phase!" );
}
models.addAll( partModels );
this.models.addAll( partModels );
}
public Set<ResourceLocation> getModels()
{
return models;
return this.models;
}
public void setInitialized( boolean initialized )
@@ -144,7 +144,7 @@ public class RegistryContainer implements IRegistryContainer
@Override
public IPartModels partModels()
{
return partModels;
return this.partModels;
}
}
@@ -353,8 +353,8 @@ public final class GrinderRecipeManager implements IGrinderRegistry, IOreListene
{
final int prime = 31;
int result = 1;
result = prime * result + damage;
result = prime * result + ( ( item == null ) ? 0 : item.hashCode() );
result = prime * result + this.damage;
result = prime * result + ( ( this.item == null ) ? 0 : this.item.hashCode() );
return result;
}
@@ -365,26 +365,26 @@ public final class GrinderRecipeManager implements IGrinderRegistry, IOreListene
{
return true;
}
if( obj == null || getClass() != obj.getClass() )
if( obj == null || this.getClass() != obj.getClass() )
{
return false;
}
CacheKey other = (CacheKey) obj;
if( damage != other.damage )
if( this.damage != other.damage )
{
return false;
}
if( item == null )
if( this.item == null )
{
if( other.item != null )
{
return false;
}
}
else if( item != other.item )
else if( this.item != other.item )
{
return false;
}
@@ -93,8 +93,8 @@ public final class InscriberRegistry implements IInscriberRegistry
this.recipes.add( recipe );
recipe.getTopOptional().ifPresent( optionals::add );
recipe.getBottomOptional().ifPresent( optionals::add );
recipe.getTopOptional().ifPresent( this.optionals::add );
recipe.getBottomOptional().ifPresent( this.optionals::add );
this.inputs.addAll( recipe.getInputs() );
}