project: Add a bit of backward compatibility to the reworked menus
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user