project: Add a bit of backward compatibility to the reworked menus

This commit is contained in:
Owain van Brakel
2021-12-16 10:18:41 +01:00
parent a42c845ad3
commit df5e3e2334
5 changed files with 181 additions and 0 deletions

View File

@@ -163,4 +163,46 @@ public class TestMenuEntry implements MenuEntry
{
return this;
}
@Override
public int getOpcode()
{
return this.type;
}
@Override
public void setOpcode(int opcode)
{
this.type = opcode;
}
@Override
public int getActionParam0()
{
return this.param0;
}
@Override
public void setActionParam0(int param0)
{
this.param0 = param0;
}
@Override
public int getActionParam1()
{
return this.param1;
}
@Override
public void setActionParam1(int param1)
{
this.param1 = param1;
}
@Override
public MenuAction getMenuAction()
{
return MenuAction.of(this.type);
}
}