mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-18 04:35:09 +00:00
Add CNPC+ Api
This commit is contained in:
1 parent
0c4db676e4
commit
95e2f9df01
109 files changed
+7308
No files matched your search
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.gui;
|
||||
|
||||
public interface IButton extends ICustomGuiComponent {
|
||||
int getWidth();
|
||||
|
||||
int getHeight();
|
||||
|
||||
IButton setSize(int var1, int var2);
|
||||
|
||||
String getLabel();
|
||||
|
||||
IButton setLabel(String var1);
|
||||
|
||||
String getTexture();
|
||||
|
||||
boolean hasTexture();
|
||||
|
||||
IButton setTexture(String var1);
|
||||
|
||||
int getTextureX();
|
||||
|
||||
int getTextureY();
|
||||
|
||||
IButton setTextureOffset(int var1, int var2);
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.gui;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
import noppes.npcs.api.entity.IPlayer;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ICustomGui {
|
||||
int getID();
|
||||
|
||||
int getWidth();
|
||||
|
||||
int getHeight();
|
||||
|
||||
List<ICustomGuiComponent> getComponents();
|
||||
|
||||
List<IItemSlot> getSlots();
|
||||
|
||||
void setSize(int var1, int var2);
|
||||
|
||||
void setDoesPauseGame(boolean var1);
|
||||
|
||||
void setBackgroundTexture(String var1);
|
||||
|
||||
IButton addButton(int var1, String var2, int var3, int var4);
|
||||
|
||||
IButton addButton(int var1, String var2, int var3, int var4, int var5, int var6);
|
||||
|
||||
IButton addTexturedButton(int var1, String var2, int var3, int var4, int var5, int var6, String var7);
|
||||
|
||||
IButton addTexturedButton(int var1, String var2, int var3, int var4, int var5, int var6, String var7, int var8, int var9);
|
||||
|
||||
ILabel addLabel(int var1, String var2, int var3, int var4, int var5, int var6);
|
||||
|
||||
ILabel addLabel(int var1, String var2, int var3, int var4, int var5, int var6, int var7);
|
||||
|
||||
ITextField addTextField(int var1, int var2, int var3, int var4, int var5);
|
||||
|
||||
ITexturedRect addTexturedRect(int var1, String var2, int var3, int var4, int var5, int var6);
|
||||
|
||||
ITexturedRect addTexturedRect(int var1, String var2, int var3, int var4, int var5, int var6, int var7, int var8);
|
||||
|
||||
IScroll addScroll(int var1, int var2, int var3, int var4, int var5, String[] var6);
|
||||
|
||||
ILine addLine(int id, int x1, int y1, int x2, int y2, int color, int thickness);
|
||||
|
||||
ILine addLine(int id, int x1, int y1, int x2, int y2);
|
||||
|
||||
IItemSlot addItemSlot(int var1, int var2);
|
||||
|
||||
IItemSlot addItemSlot(int var1, int var2, IItemStack var3);
|
||||
|
||||
void showPlayerInventory(int var1, int var2);
|
||||
|
||||
ICustomGuiComponent getComponent(int var1);
|
||||
|
||||
void removeComponent(int var1);
|
||||
|
||||
void updateComponent(ICustomGuiComponent var1);
|
||||
|
||||
void update(IPlayer var1);
|
||||
|
||||
boolean getShowPlayerInv();
|
||||
|
||||
int getPlayerInvX();
|
||||
|
||||
int getPlayerInvY();
|
||||
|
||||
ICustomGui fromNBT(NBTTagCompound tag);
|
||||
|
||||
NBTTagCompound toNBT();
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.gui;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public interface ICustomGuiComponent {
|
||||
int getID();
|
||||
|
||||
ICustomGuiComponent setID(int var1);
|
||||
|
||||
int getPosX();
|
||||
|
||||
int getPosY();
|
||||
|
||||
ICustomGuiComponent setPos(int var1, int var2);
|
||||
|
||||
boolean hasHoverText();
|
||||
|
||||
String[] getHoverText();
|
||||
|
||||
ICustomGuiComponent setHoverText(String var1);
|
||||
|
||||
ICustomGuiComponent setHoverText(String[] var1);
|
||||
|
||||
int getColor();
|
||||
|
||||
ICustomGuiComponent setColor(int color);
|
||||
|
||||
float getAlpha();
|
||||
|
||||
void setAlpha(float alpha);
|
||||
|
||||
float getRotation();
|
||||
|
||||
void setRotation(float rotation);
|
||||
|
||||
NBTTagCompound toNBT(NBTTagCompound nbt);
|
||||
|
||||
ICustomGuiComponent fromNBT(NBTTagCompound nbt);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.gui;
|
||||
|
||||
import net.minecraft.inventory.Slot;
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
|
||||
public interface IItemSlot extends ICustomGuiComponent {
|
||||
boolean hasStack();
|
||||
|
||||
IItemStack getStack();
|
||||
|
||||
IItemSlot setStack(IItemStack var1);
|
||||
|
||||
Slot getMCSlot();
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.gui;
|
||||
|
||||
public interface ILabel extends ICustomGuiComponent {
|
||||
String getText();
|
||||
|
||||
ILabel setText(String var1);
|
||||
|
||||
int getWidth();
|
||||
|
||||
int getHeight();
|
||||
|
||||
ILabel setSize(int var1, int var2);
|
||||
|
||||
float getScale();
|
||||
|
||||
ILabel setScale(float var1);
|
||||
|
||||
boolean getShadow();
|
||||
|
||||
void setShadow(boolean shadow);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package noppes.npcs.api.gui;
|
||||
|
||||
public interface ILine extends ICustomGuiComponent {
|
||||
int getX1();
|
||||
int getY1();
|
||||
int getX2();
|
||||
int getY2();
|
||||
int getThickness();
|
||||
|
||||
void setX1(int x1);
|
||||
void setY1(int y1);
|
||||
void setX2(int x2);
|
||||
void setY2(int y2);
|
||||
void setThickness(int thickness);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.gui;
|
||||
|
||||
public interface IScroll extends ICustomGuiComponent {
|
||||
int getWidth();
|
||||
|
||||
int getHeight();
|
||||
|
||||
IScroll setSize(int var1, int var2);
|
||||
|
||||
String[] getList();
|
||||
|
||||
IScroll setList(String[] var1);
|
||||
|
||||
int getDefaultSelection();
|
||||
|
||||
IScroll setDefaultSelection(int var1);
|
||||
|
||||
boolean isMultiSelect();
|
||||
|
||||
IScroll setMultiSelect(boolean var1);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.gui;
|
||||
|
||||
public interface ITextField extends ICustomGuiComponent {
|
||||
int getWidth();
|
||||
|
||||
int getHeight();
|
||||
|
||||
ITextField setSize(int var1, int var2);
|
||||
|
||||
String getText();
|
||||
|
||||
ITextField setText(String var1);
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.gui;
|
||||
|
||||
public interface ITexturedRect extends ICustomGuiComponent {
|
||||
String getTexture();
|
||||
|
||||
ITexturedRect setTexture(String var1);
|
||||
|
||||
int getWidth();
|
||||
|
||||
int getHeight();
|
||||
|
||||
ITexturedRect setSize(int var1, int var2);
|
||||
|
||||
float getScale();
|
||||
|
||||
ITexturedRect setScale(float var1);
|
||||
|
||||
int getTextureX();
|
||||
|
||||
int getTextureY();
|
||||
|
||||
ITexturedRect setTextureOffset(int var1, int var2);
|
||||
}
|
||||
Reference in new issue
Block a user