-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIDisplaySection.java
More file actions
23 lines (20 loc) · 843 Bytes
/
IDisplaySection.java
File metadata and controls
23 lines (20 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package io.bluebeaker.backpackdisplay.api;
import javax.annotation.Nonnull;
import net.minecraft.item.ItemStack;
/**Implement this class to add a new section of display for BackPackDisplay. */
public interface IDisplaySection {
/**Default priority of the section. Will be overridden by the config later. */
public int defaultPriority();
/**ID of the section. Must not contain spaces and the symbol ':'. */
public String getID();
/**Update the tooltip with a new ItemStack */
public void update(@Nonnull ItemStack stack);
/**Get width of the tooltip */
public int getWidth();
/**Get height of the tooltip */
public int getHeight();
/**Returns whether the tooltip is available and non-empty. */
public boolean isAvailable();
/**Renders the tooltip */
public void render(int x,int y);
}