Skip to content

Commit

Permalink
This should have been abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Jun 26, 2024
1 parent 8b86ee5 commit c163f9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void loadTag(CompoundTag data, HolderLookup.Provider registries) {

public abstract MenuType<?> getMenuType();

protected void registerSettings(IConfigManagerBuilder builder) {}
protected abstract void registerSettings(IConfigManagerBuilder builder);

@Override
public IConfigManager getConfigManager() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import net.minecraft.world.inventory.MenuType;
import net.minecraft.world.level.block.state.BlockState;

import appeng.api.util.IConfigManagerBuilder;
import appeng.menu.me.common.MEStorageMenu;

import gripe._90.fulleng.block.entity.terminal.TerminalBlockEntity;
Expand All @@ -19,4 +20,7 @@ public RequesterTerminalBlockEntity(BlockPos pos, BlockState blockState) {
public MenuType<?> getMenuType() {
return Addons.REQUESTER.isLoaded() ? RequesterTerminalMenu.TYPE_FULLBLOCK : MEStorageMenu.TYPE;
}

@Override
protected void registerSettings(IConfigManagerBuilder builder) {}
}

0 comments on commit c163f9e

Please sign in to comment.