Changed access to use this qualifier
This commit is contained in:
@@ -31,7 +31,7 @@ public class ClientDCInternalInv implements Comparable<ClientDCInternalInv>
|
||||
final public long sortBy;
|
||||
|
||||
public ClientDCInternalInv(int size, long id, long sortBy, String unlocalizedName) {
|
||||
inv = new AppEngInternalInventory( null, size );
|
||||
this.inv = new AppEngInternalInventory( null, size );
|
||||
this.unlocalizedName = unlocalizedName;
|
||||
this.id = id;
|
||||
this.sortBy = sortBy;
|
||||
@@ -39,16 +39,16 @@ public class ClientDCInternalInv implements Comparable<ClientDCInternalInv>
|
||||
|
||||
public String getName()
|
||||
{
|
||||
String s = StatCollector.translateToLocal( unlocalizedName + ".name" );
|
||||
if ( s.equals( unlocalizedName + ".name" ) )
|
||||
return StatCollector.translateToLocal( unlocalizedName );
|
||||
String s = StatCollector.translateToLocal( this.unlocalizedName + ".name" );
|
||||
if ( s.equals( this.unlocalizedName + ".name" ) )
|
||||
return StatCollector.translateToLocal( this.unlocalizedName );
|
||||
return s;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(ClientDCInternalInv o)
|
||||
{
|
||||
return ItemSorters.compareLong( sortBy, o.sortBy );
|
||||
return ItemSorters.compareLong( this.sortBy, o.sortBy );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -39,16 +39,16 @@ public class InternalSlotME
|
||||
|
||||
public ItemStack getStack()
|
||||
{
|
||||
return repo.getItem( offset );
|
||||
return this.repo.getItem( this.offset );
|
||||
}
|
||||
|
||||
public IAEItemStack getAEStack()
|
||||
{
|
||||
return repo.getReferenceItem( offset );
|
||||
return this.repo.getReferenceItem( this.offset );
|
||||
}
|
||||
|
||||
public boolean hasPower()
|
||||
{
|
||||
return repo.hasPower();
|
||||
return this.repo.hasPower();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,30 +64,30 @@ public class ItemRepo
|
||||
|
||||
public IAEItemStack getReferenceItem(int idx)
|
||||
{
|
||||
idx += src.getCurrentScroll() * rowSize;
|
||||
idx += this.src.getCurrentScroll() * this.rowSize;
|
||||
|
||||
if ( idx >= view.size() )
|
||||
if ( idx >= this.view.size() )
|
||||
return null;
|
||||
return view.get( idx );
|
||||
return this.view.get( idx );
|
||||
}
|
||||
|
||||
public ItemStack getItem(int idx)
|
||||
{
|
||||
idx += src.getCurrentScroll() * rowSize;
|
||||
idx += this.src.getCurrentScroll() * this.rowSize;
|
||||
|
||||
if ( idx >= dsp.size() )
|
||||
if ( idx >= this.dsp.size() )
|
||||
return null;
|
||||
return dsp.get( idx );
|
||||
return this.dsp.get( idx );
|
||||
}
|
||||
|
||||
void setSearch(String search)
|
||||
{
|
||||
searchString = search == null ? "" : search;
|
||||
this.searchString = search == null ? "" : search;
|
||||
}
|
||||
|
||||
public void postUpdate(IAEItemStack is)
|
||||
{
|
||||
IAEItemStack st = list.findPrecise( is );
|
||||
IAEItemStack st = this.list.findPrecise( is );
|
||||
|
||||
if ( st != null )
|
||||
{
|
||||
@@ -95,15 +95,15 @@ public class ItemRepo
|
||||
st.add( is );
|
||||
}
|
||||
else
|
||||
list.add( is );
|
||||
this.list.add( is );
|
||||
}
|
||||
|
||||
IPartitionList<IAEItemStack> myPartitionList;
|
||||
|
||||
public void setViewCell(ItemStack[] list)
|
||||
{
|
||||
myPartitionList = ItemViewCell.createFilter( list );
|
||||
updateView();
|
||||
this.myPartitionList = ItemViewCell.createFilter( list );
|
||||
this.updateView();
|
||||
}
|
||||
|
||||
private String NEIWord = null;
|
||||
@@ -112,16 +112,16 @@ public class ItemRepo
|
||||
{
|
||||
try
|
||||
{
|
||||
if ( NEIWord == null || !NEIWord.equals( filter ) )
|
||||
if ( this.NEIWord == null || !this.NEIWord.equals( filter ) )
|
||||
{
|
||||
Class c = ReflectionHelper.getClass( getClass().getClassLoader(), "codechicken.nei.LayoutManager" );
|
||||
Class c = ReflectionHelper.getClass( this.getClass().getClassLoader(), "codechicken.nei.LayoutManager" );
|
||||
Field fldSearchField = c.getField( "searchField" );
|
||||
Object searchField = fldSearchField.get( c );
|
||||
|
||||
Method a = searchField.getClass().getMethod( "setText", String.class );
|
||||
Method b = searchField.getClass().getMethod( "onTextChange", String.class );
|
||||
|
||||
NEIWord = filter;
|
||||
this.NEIWord = filter;
|
||||
a.invoke( searchField, filter );
|
||||
b.invoke( searchField, "" );
|
||||
}
|
||||
@@ -134,38 +134,38 @@ public class ItemRepo
|
||||
|
||||
public void updateView()
|
||||
{
|
||||
view.clear();
|
||||
dsp.clear();
|
||||
this.view.clear();
|
||||
this.dsp.clear();
|
||||
|
||||
view.ensureCapacity( list.size() );
|
||||
dsp.ensureCapacity( list.size() );
|
||||
this.view.ensureCapacity( this.list.size() );
|
||||
this.dsp.ensureCapacity( this.list.size() );
|
||||
|
||||
Enum viewMode = sortSrc.getSortDisplay();
|
||||
Enum viewMode = this.sortSrc.getSortDisplay();
|
||||
Enum searchMode = AEConfig.instance.settings.getSetting( Settings.SEARCH_MODE );
|
||||
if ( searchMode == SearchBoxMode.NEI_AUTOSEARCH || searchMode == SearchBoxMode.NEI_MANUAL_SEARCH )
|
||||
updateNEI( searchString );
|
||||
this.updateNEI( this.searchString );
|
||||
|
||||
innerSearch = searchString;
|
||||
this.innerSearch = this.searchString;
|
||||
boolean terminalSearchToolTips = AEConfig.instance.settings.getSetting( Settings.SEARCH_TOOLTIPS ) != YesNo.NO;
|
||||
// boolean terminalSearchMods = Configuration.instance.settings.getSetting( Settings.SEARCH_MODS ) != YesNo.NO;
|
||||
|
||||
boolean searchMod = false;
|
||||
if ( innerSearch.startsWith( "@" ) )
|
||||
if ( this.innerSearch.startsWith( "@" ) )
|
||||
{
|
||||
searchMod = true;
|
||||
innerSearch = innerSearch.substring( 1 );
|
||||
this.innerSearch = this.innerSearch.substring( 1 );
|
||||
}
|
||||
|
||||
Pattern m = null;
|
||||
try
|
||||
{
|
||||
m = Pattern.compile( innerSearch.toLowerCase(), Pattern.CASE_INSENSITIVE );
|
||||
m = Pattern.compile( this.innerSearch.toLowerCase(), Pattern.CASE_INSENSITIVE );
|
||||
}
|
||||
catch (Throwable ignore)
|
||||
{
|
||||
try
|
||||
{
|
||||
m = Pattern.compile( Pattern.quote( innerSearch.toLowerCase() ), Pattern.CASE_INSENSITIVE );
|
||||
m = Pattern.compile( Pattern.quote( this.innerSearch.toLowerCase() ), Pattern.CASE_INSENSITIVE );
|
||||
}
|
||||
catch (Throwable __)
|
||||
{
|
||||
@@ -174,11 +174,11 @@ public class ItemRepo
|
||||
}
|
||||
|
||||
boolean notDone = false;
|
||||
for (IAEItemStack is : list)
|
||||
for (IAEItemStack is : this.list)
|
||||
{
|
||||
if ( myPartitionList != null )
|
||||
if ( this.myPartitionList != null )
|
||||
{
|
||||
if ( !myPartitionList.isListed( is ) )
|
||||
if ( !this.myPartitionList.isListed( is ) )
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ public class ItemRepo
|
||||
|
||||
if ( m.matcher( dspName.toLowerCase() ).find() )
|
||||
{
|
||||
view.add( is );
|
||||
this.view.add( is );
|
||||
notDone = false;
|
||||
}
|
||||
|
||||
@@ -208,7 +208,7 @@ public class ItemRepo
|
||||
for (Object lp : Platform.getTooltip( is ))
|
||||
if ( lp instanceof String && m.matcher( (String) lp ).find() )
|
||||
{
|
||||
view.add( is );
|
||||
this.view.add( is );
|
||||
notDone = false;
|
||||
break;
|
||||
}
|
||||
@@ -220,40 +220,40 @@ public class ItemRepo
|
||||
*/
|
||||
}
|
||||
|
||||
Enum SortBy = sortSrc.getSortBy();
|
||||
Enum SortDir = sortSrc.getSortDir();
|
||||
Enum SortBy = this.sortSrc.getSortBy();
|
||||
Enum SortDir = this.sortSrc.getSortDir();
|
||||
|
||||
ItemSorters.Direction = (appeng.api.config.SortDir) SortDir;
|
||||
ItemSorters.init();
|
||||
|
||||
if ( SortBy == SortOrder.MOD )
|
||||
Collections.sort( view, ItemSorters.ConfigBased_SortByMod );
|
||||
Collections.sort( this.view, ItemSorters.ConfigBased_SortByMod );
|
||||
else if ( SortBy == SortOrder.AMOUNT )
|
||||
Collections.sort( view, ItemSorters.ConfigBased_SortBySize );
|
||||
Collections.sort( this.view, ItemSorters.ConfigBased_SortBySize );
|
||||
else if ( SortBy == SortOrder.INVTWEAKS )
|
||||
Collections.sort( view, ItemSorters.ConfigBased_SortByInvTweaks );
|
||||
Collections.sort( this.view, ItemSorters.ConfigBased_SortByInvTweaks );
|
||||
else
|
||||
Collections.sort( view, ItemSorters.ConfigBased_SortByName );
|
||||
Collections.sort( this.view, ItemSorters.ConfigBased_SortByName );
|
||||
|
||||
for (IAEItemStack is : view)
|
||||
dsp.add( is.getItemStack() );
|
||||
for (IAEItemStack is : this.view)
|
||||
this.dsp.add( is.getItemStack() );
|
||||
}
|
||||
|
||||
public int size()
|
||||
{
|
||||
return view.size();
|
||||
return this.view.size();
|
||||
}
|
||||
|
||||
public void clear()
|
||||
{
|
||||
list.resetStatus();
|
||||
this.list.resetStatus();
|
||||
}
|
||||
|
||||
private boolean hasPower;
|
||||
|
||||
public boolean hasPower()
|
||||
{
|
||||
return hasPower;
|
||||
return this.hasPower;
|
||||
}
|
||||
|
||||
public void setPower(boolean hasPower)
|
||||
|
||||
@@ -32,7 +32,7 @@ public class SlotDisconnected extends AppEngSlot
|
||||
|
||||
public SlotDisconnected(ClientDCInternalInv me, int which, int x, int y) {
|
||||
super( me.inv, which, x, y );
|
||||
mySlot = me;
|
||||
this.mySlot = me;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -73,7 +73,7 @@ public class SlotDisconnected extends AppEngSlot
|
||||
@Override
|
||||
public boolean getHasStack()
|
||||
{
|
||||
return getStack() != null;
|
||||
return this.getStack() != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -31,21 +31,21 @@ public class SlotME extends Slot
|
||||
|
||||
public SlotME(InternalSlotME me) {
|
||||
super( null, 0, me.xPos, me.yPos );
|
||||
mySlot = me;
|
||||
this.mySlot = me;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getStack()
|
||||
{
|
||||
if ( mySlot.hasPower() )
|
||||
return mySlot.getStack();
|
||||
if ( this.mySlot.hasPower() )
|
||||
return this.mySlot.getStack();
|
||||
return null;
|
||||
}
|
||||
|
||||
public IAEItemStack getAEStack()
|
||||
{
|
||||
if ( mySlot.hasPower() )
|
||||
return mySlot.getAEStack();
|
||||
if ( this.mySlot.hasPower() )
|
||||
return this.mySlot.getAEStack();
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -70,8 +70,8 @@ public class SlotME extends Slot
|
||||
@Override
|
||||
public boolean getHasStack()
|
||||
{
|
||||
if ( mySlot.hasPower() )
|
||||
return getStack() != null;
|
||||
if ( this.mySlot.hasPower() )
|
||||
return this.getStack() != null;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user