Remove redundant casts, unnecessary object creation, and string ==

This commit is contained in:
mezz committed 2016-10-21 00:32:06 -07:00
1 parent 100784b51b
commit a4cd13282a
57 files changed
+180 -156

No files matched your search

@@ -44,7 +44,7 @@ public class WindowArboristDatabase extends WindowAbstractDatabase {
(this.listBox = new ControlListBox<ItemStack>(this.modePage, area.x(), area.y(), area.w(), area.h(), 12.0f) {
@Override
public IWidget createOption(final ItemStack value, final int y) {
return new ControlItemStackOption(((ControlScrollableContent<ControlList<ItemStack>>) this).getContent(), value, y);
return new ControlItemStackOption(this.getContent(), value, y);
}
}).setOptions(((TreeBreedingSystem) WindowArboristDatabase.this.getBreedingSystem()).allFruits);
}
@@ -55,7 +55,7 @@ public class WindowArboristDatabase extends WindowAbstractDatabase {
(this.listBox = new ControlListBox<ItemStack>(this.modePage, area.x(), area.y(), area.w(), area.h(), 12.0f) {
@Override
public IWidget createOption(final ItemStack value, final int y) {
return new ControlItemStackOption(((ControlScrollableContent<ControlList<ItemStack>>) this).getContent(), value, y);
return new ControlItemStackOption(this.getContent(), value, y);
}
}).setOptions(((TreeBreedingSystem) WindowArboristDatabase.this.getBreedingSystem()).allWoods);
}
@@ -66,7 +66,7 @@ public class WindowArboristDatabase extends WindowAbstractDatabase {
this.listBox = new ControlListBox<ItemStack>(this.modePage, area.x(), area.y(), area.w(), area.h(), 12.0f) {
@Override
public IWidget createOption(final ItemStack value, final int y) {
return new ControlItemStackOption(((ControlScrollableContent<ControlList<ItemStack>>) this).getContent(), value, y);
return new ControlItemStackOption(this.getContent(), value, y);
}
};
}