chore: AbstractModule
This commit is contained in:
parent
d497c1d976
commit
3be09e9384
1 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ import net.minecraftforge.common.MinecraftForge;
|
|||
|
||||
import static ftbsc.bscv.BoSCoVicino.log;
|
||||
|
||||
public abstract class Module {
|
||||
public abstract class AbstractModule {
|
||||
public enum Group {
|
||||
SELF,
|
||||
HUD,
|
||||
|
@ -66,7 +66,7 @@ public abstract class Module {
|
|||
|
||||
public abstract void register(ForgeConfigSpec.Builder builder, CommandDispatcher<CommandSource> dispatcher);
|
||||
|
||||
protected Module(ForgeConfigSpec.Builder builder, CommandDispatcher<CommandSource> dispatcher) {
|
||||
protected AbstractModule(ForgeConfigSpec.Builder builder, CommandDispatcher<CommandSource> dispatcher) {
|
||||
// TODO can this be done in a less magic way?
|
||||
String[] pkg = this.getClass().getPackage().getName().split(".");
|
||||
this.group = Group.valueOf(pkg[pkg.length-1].toUpperCase());
|
||||
|
@ -75,7 +75,7 @@ public abstract class Module {
|
|||
this.initialize(builder, dispatcher);
|
||||
}
|
||||
|
||||
public Module done(ForgeConfigSpec.Builder builder) {
|
||||
public AbstractModule done(ForgeConfigSpec.Builder builder) {
|
||||
builder.pop();
|
||||
return this;
|
||||
}
|
Loading…
Reference in a new issue