MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / addItem

Method addItem

src/main/java/Menu/Menu.java:58–61  ·  view source on GitHub ↗
(MenuItem mi)

Source from the content-addressed store, hash-verified

56 public int getItemCount() { return menuitems.size(); }
57
58 public void addItem(MenuItem mi){
59 mi.pos=getItemCount();
60 menuitems.addElement(mi);
61 }
62
63 public void addItem(String label, int index, int iconIndex){
64 addItem(new MenuItem(label, index, iconIndex, il));

Callers 4

JuickThingsMenuMethod · 0.80
MyMenuMethod · 0.80
RosterToolsMenuMethod · 0.80
RosterItemActionsMethod · 0.80

Calls 2

getItemCountMethod · 0.95
addElementMethod · 0.80

Tested by

no test coverage detected