Class McbsSivGoalGUI
java.lang.Object
com.thecsdev.betterstats.api.mcbs.view.goal.McbsGoalGUI<McbsSivGoal>
com.thecsdev.betterstats.mcbs.view.goal.McbsSivGoalGUI
McbsGoalGUI implementation for McbsSivGoal.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull net.minecraft.client.gui.screens.ScreencreateEditScreen(@Nullable net.minecraft.client.gui.screens.Screen lastScreen, @NotNull McbsEditorFileTab editorTab, @NonNull McbsSivGoal goal) Creates aScreenthat presents an interface allowing the user to edit properties for anMcbsGoalof typeT.final voidinitIcon(@Nullable McbsSivGoal goal, @NotNull com.thecsdev.commonmc.api.client.gui.TElement onto, int pad) Creates GUI that visually acts as a goal's "icon", and then adds it to the providedTElement.final booleanReturnstrueif and only ifMcbsGoalGUI.createEditScreen(Screen, McbsEditorFileTab, McbsGoal)is intended to be used.Methods inherited from class McbsGoalGUI
findFor, findFor, getKey, getType
-
Field Details
-
INSTANCE
The main instance of thisClass.
-
-
Method Details
-
initIcon
public final void initIcon(@Nullable @Nullable McbsSivGoal goal, @NotNull @NotNull com.thecsdev.commonmc.api.client.gui.TElement onto, int pad) throws NullPointerException Description copied from class:McbsGoalGUICreates GUI that visually acts as a goal's "icon", and then adds it to the providedTElement.- Overrides:
initIconin classMcbsGoalGUI<McbsSivGoal>- Parameters:
goal- TheMcbsGoalinstance for which the icon is to be initialized.onto- The icon's background, aka the 'slot' where the icon is to be initialized.pad- The preferred padding to be applied around the icon.- Throws:
NullPointerException- If aNotNullargument isnull.
-
isEditable
public final boolean isEditable()Description copied from class:McbsGoalGUIReturnstrueif and only ifMcbsGoalGUI.createEditScreen(Screen, McbsEditorFileTab, McbsGoal)is intended to be used.- Overrides:
isEditablein classMcbsGoalGUI<McbsSivGoal>
-
createEditScreen
@NotNull public final @NotNull net.minecraft.client.gui.screens.Screen createEditScreen(@Nullable @Nullable net.minecraft.client.gui.screens.Screen lastScreen, @NotNull @NotNull McbsEditorFileTab editorTab, @NonNull McbsSivGoal goal) throws NullPointerException Description copied from class:McbsGoalGUICreates aScreenthat presents an interface allowing the user to edit properties for anMcbsGoalof typeT.- Overrides:
createEditScreenin classMcbsGoalGUI<McbsSivGoal>- Parameters:
lastScreen- TheScreenthat the returned screen will use as its "last screen".editorTab- TheMcbsEditorFileTabthat displayed the goals interface, where the user clicked to edit the givenMcbsGoal.goal- The goal whose properties are to be edited.- Throws:
NullPointerException- If aNotNullargument isnull.
-