mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-23 18:19:40 +00:00
Interfaces have a file strucutre resembling the file structure of their implementing classes.
This commit is contained in:
1 parent
c2546c3f82
commit
6dea5a1cbc
128 files changed
+401
-321
No files matched your search
@@ -0,0 +1,40 @@
|
||||
package noppes.npcs.scripted.interfaces.overlay;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import noppes.npcs.scripted.interfaces.entity.IPlayer;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ICustomOverlay {
|
||||
int getID();
|
||||
|
||||
List<ICustomOverlayComponent> getComponents();
|
||||
|
||||
int getDefaultAlignment();
|
||||
|
||||
void setDefaultAlignment(int defaultAlignment);
|
||||
|
||||
IOverlayTexturedRect addTexturedRect(int id, String texture, int x, int y, int width, int height);
|
||||
|
||||
IOverlayTexturedRect addTexturedRect(int id, String texture, int x, int y, int width, int height, int textureX, int textureY);
|
||||
|
||||
IOverlayLabel addLabel(int id, String label, int x, int y, int width, int height);
|
||||
|
||||
IOverlayLabel addLabel(int id, String label, int x, int y, int width, int height, int color);
|
||||
|
||||
IOverlayLine addLine(int id, int x1, int y1, int x2, int y2, int color, int thickness);
|
||||
|
||||
IOverlayLine addLine(int id, int x1, int y1, int x2, int y2);
|
||||
|
||||
ICustomOverlayComponent getComponent(int componentID);
|
||||
|
||||
void removeComponent(int componentID);
|
||||
|
||||
void updateComponent(ICustomOverlayComponent component);
|
||||
|
||||
void update(IPlayer player);
|
||||
|
||||
ICustomOverlay fromNBT(NBTTagCompound tag);
|
||||
|
||||
NBTTagCompound toNBT();
|
||||
}
|
||||
Reference in new issue
Block a user