Clean Up Api

This commit is contained in:
Nedelosk committed 2016-10-22 19:18:25 +02:00
1 parent 8b1bce6963
commit 0806d2ac38
7 files changed
+29 -34

No files matched your search

@@ -22,8 +22,8 @@ public class ControlColourMixItem extends ControlOption<IColourMix> {
this.arrowSymbol = new ControlColourMixSymbol(this, 64, 4, 1);
final BreedingSystem system = ((WindowAbstractDatabase) this.getSuperParent()).getBreedingSystem();
if (this.getValue() != null) {
this.itemWidget1.setValue(this.getValue().getColour1());
this.itemWidget2.setValue(this.getValue().getColour2());
this.itemWidget1.setValue(this.getValue().getColourFirst());
this.itemWidget2.setValue(this.getValue().getColourSecond());
this.itemWidget3.setValue(this.getValue().getResult());
this.addSymbol.setValue(this.getValue());
this.arrowSymbol.setValue(this.getValue());
@@ -26,7 +26,7 @@ public class PageColourMix extends PageAbstract<IFlowerColour> {
public void onValueChanged(final IFlowerColour colour) {
final List<IColourMix> mixes = new ArrayList<>();
for (final IColourMix mix : BotanyCore.getFlowerRoot().getColourMixes(false)) {
if (mix.getColour1() == colour || mix.getColour2() == colour) {
if (mix.getColourFirst() == colour || mix.getColourSecond() == colour) {
mixes.add(mix);
}
}
@@ -224,14 +224,9 @@ public class ContainerCraftGUI extends Container {
return false;
}
//TODO: Fix random NullPointerException
@Override
public void detectAndSendChanges() {
for (int i = 0; i < this.inventorySlots.size(); ++i){
Object o = this.inventorySlots.get(i);
if(o == null){
getClass();
}
}
super.detectAndSendChanges();
final ITankMachine tanks = Machine.getInterface(ITankMachine.class, this.window.getInventory());
final IPoweredMachine powered = Machine.getInterface(IPoweredMachine.class, this.window.getInventory());