|
@@ -1,24 +1,20 @@
|
|
|
package me.lortseam.completeconfig.gui;
|
|
|
|
|
|
-import lombok.AccessLevel;
|
|
|
-import lombok.RequiredArgsConstructor;
|
|
|
import me.lortseam.completeconfig.data.Config;
|
|
|
import net.fabricmc.api.EnvType;
|
|
|
import net.fabricmc.api.Environment;
|
|
|
import net.minecraft.client.gui.screen.Screen;
|
|
|
|
|
|
-@RequiredArgsConstructor(access = AccessLevel.PROTECTED)
|
|
|
public abstract class ConfigScreenBuilder {
|
|
|
|
|
|
- protected final Config config;
|
|
|
-
|
|
|
/**
|
|
|
- * Builds the screen.
|
|
|
+ * Builds a screen based on a config.
|
|
|
*
|
|
|
* @param parentScreen the parent screen
|
|
|
+ * @param config the config to build the screen of
|
|
|
* @return the built screen
|
|
|
*/
|
|
|
@Environment(EnvType.CLIENT)
|
|
|
- public abstract Screen build(Screen parentScreen);
|
|
|
+ public abstract Screen build(Screen parentScreen, Config config);
|
|
|
|
|
|
}
|