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

Method MoodItem

src/main/java/PEP/MoodItem.java:47–53  ·  view source on GitHub ↗

Creates a new instance of MoodItem

(int index)

Source from the content-addressed store, hash-verified

45
46 /** Creates a new instance of MoodItem */
47 public MoodItem(int index) {
48 super(MoodIcons.getInstance());
49
50 label=Moods.getInstance().getMoodLabel(index);
51 name=Moods.getInstance().getMoodName(index);
52 iconIndex=index;
53 }
54
55 public int getImageIndex() { return iconIndex; }
56 public int getColor() { return ColorTheme.getColor(ColorTheme.CONTACT_DEFAULT); }

Callers

nothing calls this directly

Calls 4

getInstanceMethod · 0.95
getInstanceMethod · 0.95
getMoodLabelMethod · 0.80
getMoodNameMethod · 0.80

Tested by

no test coverage detected