mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-28 16:06:04 +00:00
More null annotations
This commit is contained in:
1 parent
da8a833485
commit
a5daa93bf1
163 files changed
+952
-849
No files matched your search
@@ -10,6 +10,8 @@ import binnie.craftgui.core.geometry.IArea;
|
||||
import binnie.craftgui.core.geometry.IPoint;
|
||||
import binnie.craftgui.minecraft.Window;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -39,6 +41,13 @@ public class Control extends Widget implements ITooltipHelp, ITooltip {
|
||||
public void onUpdateClient() {
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public IWidget getParent() {
|
||||
//noinspection ConstantConditions
|
||||
return super.getParent();
|
||||
}
|
||||
|
||||
public void addHelp(final String string) {
|
||||
this.helpStrings.add(string);
|
||||
}
|
||||
@@ -76,6 +85,6 @@ public class Control extends Widget implements ITooltipHelp, ITooltip {
|
||||
}
|
||||
|
||||
public Window getWindow() {
|
||||
return (Window) this.getSuperParent();
|
||||
return (Window) this.getTopParent();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user