Changed access to use this qualifier
This commit is contained in:
@@ -41,7 +41,7 @@ public class ToolQuartzAxe extends ItemAxe implements IAEFeature
|
||||
public ToolQuartzAxe( AEFeature Type )
|
||||
{
|
||||
super( ToolMaterial.IRON );
|
||||
this.feature = new ItemFeatureHandler( EnumSet.of( type = Type, AEFeature.QuartzAxe ), this, this, Optional.of( Type.name() ) );
|
||||
this.feature = new ItemFeatureHandler( EnumSet.of( this.type = Type, AEFeature.QuartzAxe ), this, this, Optional.of( Type.name() ) );
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -59,6 +59,6 @@ public class ToolQuartzAxe extends ItemAxe implements IAEFeature
|
||||
@Override
|
||||
public boolean getIsRepairable( ItemStack a, ItemStack b )
|
||||
{
|
||||
return Platform.canRepair( type, a, b );
|
||||
return Platform.canRepair( this.type, a, b );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,9 +46,9 @@ public class ToolQuartzCuttingKnife extends AEBaseItem implements IGuiItem
|
||||
{
|
||||
super( ToolQuartzCuttingKnife.class, Optional.of( Type.name() ) );
|
||||
|
||||
setFeature( EnumSet.of( type = Type, AEFeature.QuartzKnife ) );
|
||||
setMaxDamage( 50 );
|
||||
setMaxStackSize( 1 );
|
||||
this.setFeature( EnumSet.of( this.type = Type, AEFeature.QuartzKnife ) );
|
||||
this.setMaxDamage( 50 );
|
||||
this.setMaxStackSize( 1 );
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -77,7 +77,7 @@ public class ToolQuartzCuttingKnife extends AEBaseItem implements IGuiItem
|
||||
@Override
|
||||
public boolean getIsRepairable( ItemStack a, ItemStack b )
|
||||
{
|
||||
return Platform.canRepair( type, a, b );
|
||||
return Platform.canRepair( this.type, a, b );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -49,7 +49,7 @@ public class ToolQuartzHoe extends ItemHoe implements IAEFeature
|
||||
@Override
|
||||
public IFeatureHandler handler()
|
||||
{
|
||||
return handler;
|
||||
return this.handler;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -61,6 +61,6 @@ public class ToolQuartzHoe extends ItemHoe implements IAEFeature
|
||||
@Override
|
||||
public boolean getIsRepairable( ItemStack a, ItemStack b )
|
||||
{
|
||||
return Platform.canRepair( feature, a, b );
|
||||
return Platform.canRepair( this.feature, a, b );
|
||||
}
|
||||
}
|
||||
@@ -61,6 +61,6 @@ public class ToolQuartzPickaxe extends ItemPickaxe implements IAEFeature
|
||||
@Override
|
||||
public boolean getIsRepairable( ItemStack a, ItemStack b )
|
||||
{
|
||||
return Platform.canRepair( type, a, b );
|
||||
return Platform.canRepair( this.type, a, b );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,13 +42,13 @@ public class ToolQuartzSpade extends ItemSpade implements IAEFeature
|
||||
{
|
||||
super( ToolMaterial.IRON );
|
||||
|
||||
this.handler = new ItemFeatureHandler( EnumSet.of( type = Type, AEFeature.QuartzSpade ), this, this, Optional.of( Type.name() ) );
|
||||
this.handler = new ItemFeatureHandler( EnumSet.of( this.type = Type, AEFeature.QuartzSpade ), this, this, Optional.of( Type.name() ) );
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFeatureHandler handler()
|
||||
{
|
||||
return handler;
|
||||
return this.handler;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -60,6 +60,6 @@ public class ToolQuartzSpade extends ItemSpade implements IAEFeature
|
||||
@Override
|
||||
public boolean getIsRepairable( ItemStack a, ItemStack b )
|
||||
{
|
||||
return Platform.canRepair( type, a, b );
|
||||
return Platform.canRepair( this.type, a, b );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,13 +41,13 @@ public class ToolQuartzSword extends ItemSword implements IAEFeature
|
||||
public ToolQuartzSword( AEFeature Type )
|
||||
{
|
||||
super( ToolMaterial.IRON );
|
||||
feature = new ItemFeatureHandler( EnumSet.of( type = Type, AEFeature.QuartzSword ), this, this, Optional.of( Type.name() ) );
|
||||
this.feature = new ItemFeatureHandler( EnumSet.of( this.type = Type, AEFeature.QuartzSword ), this, this, Optional.of( Type.name() ) );
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFeatureHandler handler()
|
||||
{
|
||||
return feature;
|
||||
return this.feature;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -59,6 +59,6 @@ public class ToolQuartzSword extends ItemSword implements IAEFeature
|
||||
@Override
|
||||
public boolean getIsRepairable( ItemStack a, ItemStack b )
|
||||
{
|
||||
return Platform.canRepair( type, a, b );
|
||||
return Platform.canRepair( this.type, a, b );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user