Skip to content

Commit

Permalink
add dummy host interface for terminal implementations (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 authored Oct 5, 2024
1 parent 1d756e1 commit 9cf4099
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package com.almostreliable.merequester.terminal;

public interface RequesterTerminalHost {}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public class RequesterTerminalMenu extends AbstractRequesterMenu {

public static final MenuType<RequesterTerminalMenu> TYPE = MenuTypeBuilder
.create(RequesterTerminalMenu::new, RequesterTerminalPart.class)
.create(RequesterTerminalMenu::new, RequesterTerminalHost.class)
.build(Utils.getRL(MERequester.TERMINAL_ID));

private final Long2ObjectOpenHashMap<RequestTracker> byId = new Long2ObjectOpenHashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* yoinked from {@link PatternAccessTerminalPart}
*/
public class RequesterTerminalPart extends AbstractDisplayPart {
public class RequesterTerminalPart extends AbstractDisplayPart implements RequesterTerminalHost {

@PartModels
private static final ResourceLocation MODEL_OFF = Utils.getRL(String.format("part/%s_off", MERequester.TERMINAL_ID));
Expand Down

0 comments on commit 9cf4099

Please sign in to comment.