mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 22:15:07 +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,27 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.IPos;
|
||||
import noppes.npcs.api.IWorld;
|
||||
import noppes.npcs.api.entity.IEntity;
|
||||
|
||||
public interface ICloneHandler {
|
||||
|
||||
IEntity spawn(double x, double y, double z, int tab, String name, IWorld world, boolean ignoreProtection);
|
||||
IEntity spawn(IPos pos, int tab, String name, IWorld world, boolean ignoreProtection);
|
||||
|
||||
IEntity spawn(double x, double y, double z, int tab, String name, IWorld world);
|
||||
IEntity spawn(IPos pos, int tab, String name, IWorld world);
|
||||
|
||||
IEntity[] getTab(int tab, IWorld world);
|
||||
|
||||
IEntity get(int tab, String name, IWorld world);
|
||||
|
||||
void set(int tab, String name, IEntity entity);
|
||||
|
||||
void remove(int tab, String name);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.handler.data.IDialog;
|
||||
import noppes.npcs.api.handler.data.IDialogCategory;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IDialogHandler {
|
||||
List<IDialogCategory> categories();
|
||||
|
||||
IDialog get(int var1);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.handler.data.IFaction;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IFactionHandler {
|
||||
List<IFaction> list();
|
||||
|
||||
IFaction delete(int var1);
|
||||
|
||||
IFaction create(String var1, int var2);
|
||||
|
||||
IFaction get(int var1);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.handler.data.INaturalSpawn;
|
||||
|
||||
public interface INaturalSpawnsHandler {
|
||||
|
||||
void save();
|
||||
|
||||
INaturalSpawn[] getSpawns();
|
||||
|
||||
INaturalSpawn[] getSpawns(String biome);
|
||||
|
||||
void addSpawn(INaturalSpawn spawn);
|
||||
|
||||
void removeSpawn(INaturalSpawn spawn);
|
||||
|
||||
INaturalSpawn createSpawn();
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.ISkinOverlay;
|
||||
|
||||
public interface IOverlayHandler {
|
||||
|
||||
void add(int id, ISkinOverlay overlay);
|
||||
|
||||
ISkinOverlay get(int id);
|
||||
|
||||
boolean has(int id);
|
||||
|
||||
boolean remove(int id);
|
||||
|
||||
int size();
|
||||
|
||||
void clear();
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
public interface IPlayerBankData {
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package noppes.npcs.api.handler;
|
||||
import noppes.npcs.api.entity.ICustomNpc;
|
||||
|
||||
public interface IPlayerData {
|
||||
|
||||
void setCompanion(ICustomNpc npc);
|
||||
|
||||
ICustomNpc getCompanion();
|
||||
|
||||
boolean hasCompanion();
|
||||
|
||||
int getCompanionID();
|
||||
|
||||
IPlayerDialogData getDialogData();
|
||||
|
||||
IPlayerBankData getBankData();
|
||||
|
||||
IPlayerQuestData getQuestData();
|
||||
|
||||
IPlayerTransportData getTransportData();
|
||||
|
||||
IPlayerFactionData getFactionData();
|
||||
|
||||
IPlayerItemGiverData getItemGiverData();
|
||||
|
||||
IPlayerMailData getMailData();
|
||||
|
||||
void save();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
public interface IPlayerDialogData {
|
||||
|
||||
boolean hasReadDialog(int id);
|
||||
|
||||
void readDialog(int id);
|
||||
|
||||
void unreadDialog(int id);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
public interface IPlayerFactionData {
|
||||
|
||||
int getPoints(int id);
|
||||
|
||||
void addPoints(int id, int points);
|
||||
|
||||
void setPoints(int id, int points);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.jobs.IJobItemGiver;
|
||||
|
||||
public interface IPlayerItemGiverData {
|
||||
|
||||
long getTime(IJobItemGiver jobItemGiver);
|
||||
|
||||
void setTime(IJobItemGiver jobItemGiver, long day);
|
||||
|
||||
boolean hasInteractedBefore(IJobItemGiver jobItemGiver);
|
||||
|
||||
IJobItemGiver[] getItemGivers();
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.handler.data.IPlayerMail;
|
||||
|
||||
public interface IPlayerMailData {
|
||||
|
||||
boolean hasMail();
|
||||
|
||||
void addMail(IPlayerMail mail);
|
||||
|
||||
void removeMail(IPlayerMail mail);
|
||||
|
||||
boolean hasMail(IPlayerMail mail);
|
||||
|
||||
IPlayerMail[] getAllMail();
|
||||
|
||||
IPlayerMail[] getUnreadMail();
|
||||
|
||||
IPlayerMail[] getReadMail();
|
||||
|
||||
IPlayerMail[] getMailFrom(String sender);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.handler.data.IQuest;
|
||||
|
||||
public interface IPlayerQuestData {
|
||||
|
||||
IQuest getTrackedQuest();
|
||||
|
||||
void startQuest(int id);
|
||||
|
||||
void finishQuest(int id);
|
||||
|
||||
void stopQuest(int id);
|
||||
|
||||
void removeQuest(int id);
|
||||
|
||||
boolean hasFinishedQuest(int id);
|
||||
|
||||
public boolean hasActiveQuest(int id);
|
||||
|
||||
IQuest[] getActiveQuests();
|
||||
|
||||
IQuest[] getFinishedQuests();
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.handler.data.ITransportLocation;
|
||||
|
||||
public interface IPlayerTransportData {
|
||||
|
||||
boolean hasTransport(int id);
|
||||
|
||||
void addTransport(int id);
|
||||
|
||||
void addTransport(ITransportLocation location);
|
||||
|
||||
ITransportLocation getTransport(int id);
|
||||
|
||||
ITransportLocation[] getTransports();
|
||||
|
||||
void removeTransport(int id);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.handler.data.IQuest;
|
||||
import noppes.npcs.api.handler.data.IQuestCategory;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IQuestHandler {
|
||||
List<IQuestCategory> categories();
|
||||
|
||||
IQuest get(int var1);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import java.util.List;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import noppes.npcs.api.handler.data.IRecipe;
|
||||
|
||||
public interface IRecipeHandler {
|
||||
List<IRecipe> getGlobalList();
|
||||
|
||||
List<IRecipe> getCarpentryList();
|
||||
|
||||
void addRecipe(String var1, boolean var2, ItemStack var3, Object... var4);
|
||||
|
||||
void addRecipe(String var1, boolean var2, ItemStack var3, int var4, int var5, ItemStack... var6);
|
||||
|
||||
IRecipe delete(int var1);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.handler.data.ITransportCategory;
|
||||
|
||||
public interface ITransportHandler {
|
||||
|
||||
ITransportCategory[] categories();
|
||||
|
||||
void createCategory(String title);
|
||||
|
||||
ITransportCategory getCategory(String title);
|
||||
|
||||
void removeCategory(String title);
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
import noppes.npcs.api.entity.IPlayer;
|
||||
|
||||
public interface IAvailability {
|
||||
boolean isAvailable(IPlayer var1);
|
||||
|
||||
int getDaytime();
|
||||
|
||||
void setDaytime(int var1);
|
||||
|
||||
int getMinPlayerLevel();
|
||||
|
||||
void setMinPlayerLevel(int var1);
|
||||
|
||||
int getDialog(int var1);
|
||||
|
||||
void setDialog(int var1, int var2, int var3);
|
||||
|
||||
void removeDialog(int var1);
|
||||
|
||||
int getQuest(int var1);
|
||||
|
||||
void setQuest(int var1, int var2, int var3);
|
||||
|
||||
void removeQuest(int var1);
|
||||
|
||||
void setFaction(int var1, int var2, int var3, int var4);
|
||||
|
||||
void removeFaction(int var1);
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.handler.data;
|
||||
import java.util.List;
|
||||
|
||||
public interface IDialog {
|
||||
int getId();
|
||||
|
||||
String getName();
|
||||
|
||||
void setName(String var1);
|
||||
|
||||
String getText();
|
||||
|
||||
void setText(String var1);
|
||||
|
||||
IQuest getQuest();
|
||||
|
||||
void setQuest(IQuest var1);
|
||||
|
||||
String getCommand();
|
||||
|
||||
void setCommand(String var1);
|
||||
|
||||
List<IDialogOption> getOptions();
|
||||
|
||||
IDialogOption getOption(int var1);
|
||||
|
||||
IAvailability getAvailability();
|
||||
|
||||
IDialogCategory getCategory();
|
||||
|
||||
void setDarkenScreen(boolean darkenScreen);
|
||||
boolean getDarkenScreen();
|
||||
|
||||
void setDisableEsc(boolean disableEsc);
|
||||
boolean getDisableEsc();
|
||||
|
||||
void setShowWheel(boolean showWheel);
|
||||
boolean getShowWheel();
|
||||
|
||||
void setHideNPC(boolean hideNPC);
|
||||
boolean getHideNPC();
|
||||
|
||||
void setSound(String sound);
|
||||
String getSound();
|
||||
|
||||
void save();
|
||||
|
||||
void setColor(int color);
|
||||
|
||||
int getColor();
|
||||
|
||||
void setTitleColor(int titleColor);
|
||||
|
||||
int getTitleColor();
|
||||
|
||||
void renderGradual(boolean gradual);
|
||||
|
||||
boolean renderGradual();
|
||||
|
||||
void showPreviousBlocks(boolean show);
|
||||
|
||||
boolean showPreviousBlocks();
|
||||
|
||||
void showOptionLine(boolean show);
|
||||
|
||||
boolean showOptionLine();
|
||||
|
||||
void setTextSound(String textSound);
|
||||
|
||||
String getTextSound();
|
||||
|
||||
void setTextPitch(float textPitch);
|
||||
|
||||
float getTextPitch();
|
||||
|
||||
void setTitlePos(int pos);
|
||||
|
||||
int getTitlePos();
|
||||
|
||||
void setNPCScale(float scale);
|
||||
|
||||
float getNpcScale();
|
||||
|
||||
void setNpcOffset(int offsetX, int offsetY);
|
||||
|
||||
int getNpcOffsetX();
|
||||
|
||||
int getNpcOffsetY();
|
||||
|
||||
void textWidthHeight(int textWidth, int textHeight);
|
||||
|
||||
int getTextWidth();
|
||||
|
||||
int setTextHeight();
|
||||
|
||||
void setTextOffset(int offsetX, int offsetY);
|
||||
|
||||
int getTextOffsetX();
|
||||
|
||||
int getTextOffsetY();
|
||||
|
||||
void setTitleOffset(int offsetX, int offsetY);
|
||||
|
||||
int getTitleOffsetX();
|
||||
|
||||
int getTitleOffsetY();
|
||||
|
||||
void setOptionOffset(int offsetX, int offsetY);
|
||||
|
||||
int getOptionOffsetX();
|
||||
|
||||
int getOptionOffsetY();
|
||||
|
||||
void setOptionSpacing(int spaceX, int spaceY);
|
||||
|
||||
int getOptionSpaceX();
|
||||
|
||||
int getOptionSpaceY();
|
||||
|
||||
void addImage(int id, IDialogImage image);
|
||||
|
||||
IDialogImage getImage(int id);
|
||||
|
||||
IDialogImage createImage();
|
||||
|
||||
IDialogImage[] getImages();
|
||||
|
||||
boolean hasImage(int id);
|
||||
|
||||
void removeImage(int id);
|
||||
|
||||
void clearImages();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IDialogCategory {
|
||||
List<IDialog> dialogs();
|
||||
|
||||
String getName();
|
||||
|
||||
IDialog create();
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
public interface IDialogImage {
|
||||
int getId();
|
||||
|
||||
void setTexture(String texture);
|
||||
String getTexture();
|
||||
|
||||
void setPosition(int x, int y);
|
||||
int getX();
|
||||
int getY();
|
||||
|
||||
void setWidthHeight(int width, int height);
|
||||
int getWidth();
|
||||
int getHeight();
|
||||
|
||||
void setTextureOffset(int offsetX, int offsetY);
|
||||
int getTextureX();
|
||||
int getTextureY();
|
||||
|
||||
void setColor(int color);
|
||||
int getColor();
|
||||
|
||||
void setSelectedColor(int color);
|
||||
int getSelectedColor();
|
||||
|
||||
void setScale(float scale);
|
||||
float getScale();
|
||||
|
||||
void setAlpha(float alpha);
|
||||
float getAlpha();
|
||||
|
||||
void setRotation(float rotation);
|
||||
float getRotation();
|
||||
|
||||
void setImageType(int imageType);
|
||||
int getImageType();
|
||||
|
||||
void setAlignment(int alignment);
|
||||
int getAlignment();
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
public interface IDialogOption {
|
||||
int getSlot();
|
||||
|
||||
String getName();
|
||||
|
||||
int getType();
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
import noppes.npcs.api.entity.ICustomNpc;
|
||||
import noppes.npcs.api.entity.IPlayer;
|
||||
|
||||
public interface IFaction {
|
||||
int getId();
|
||||
|
||||
String getName();
|
||||
|
||||
void setName(String name);
|
||||
|
||||
void setDefaultPoints(int var1);
|
||||
|
||||
int getDefaultPoints();
|
||||
|
||||
void setFriendlyPoints(int p);
|
||||
|
||||
int getFriendlyPoints();
|
||||
|
||||
void setNeutralPoints(int p);
|
||||
|
||||
int getNeutralPoints();
|
||||
|
||||
void setColor(int c);
|
||||
|
||||
int getColor();
|
||||
|
||||
int playerStatus(IPlayer player);
|
||||
|
||||
boolean isAggressiveToNpc(ICustomNpc npc);
|
||||
|
||||
boolean getIsHidden();
|
||||
|
||||
void setIsHidden(boolean hidden);
|
||||
|
||||
boolean attackedByMobs();
|
||||
|
||||
void setAttackedByMobs(boolean attacked);
|
||||
|
||||
boolean isEnemyFaction(IFaction faction);
|
||||
|
||||
IFaction[] getEnemyFactions();
|
||||
|
||||
void addEnemyFaction(IFaction faction);
|
||||
|
||||
void removeEnemyFaction(IFaction faction);
|
||||
|
||||
void save();
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
import noppes.npcs.api.IWorld;
|
||||
import noppes.npcs.api.entity.IEntity;
|
||||
|
||||
public interface INaturalSpawn {
|
||||
|
||||
void setName(String name);
|
||||
|
||||
String getName();
|
||||
|
||||
void setEntity(IEntity entity, int slot);
|
||||
|
||||
IEntity getEntity(IWorld world, int slot);
|
||||
|
||||
void setWeight(int weight);
|
||||
|
||||
int getWeight();
|
||||
|
||||
void setMinHeight(int height);
|
||||
|
||||
int getMinHeight();
|
||||
|
||||
void setMaxHeight(int height);
|
||||
|
||||
int getMaxHeight();
|
||||
|
||||
void spawnsLikeAnimal(boolean spawns);
|
||||
|
||||
boolean spawnsLikeAnimal();
|
||||
|
||||
void spawnsLikeMonster(boolean spawns);
|
||||
|
||||
boolean spawnsLikeMonster();
|
||||
|
||||
void spawnsInLiquid(boolean spawns);
|
||||
|
||||
boolean spawnsInLiquid();
|
||||
|
||||
void spawnsInAir(boolean spawns);
|
||||
|
||||
boolean spawnsInAir();
|
||||
|
||||
String[] getBiomes();
|
||||
|
||||
void setBiomes(String[] biomes);
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
|
||||
public interface IPlayerMail {
|
||||
|
||||
void setPageText(String[] pages);
|
||||
|
||||
String[] getPageText();
|
||||
|
||||
int getPageCount();
|
||||
|
||||
void setSender(String sender);
|
||||
|
||||
String getSender();
|
||||
|
||||
void setSubject(String subject);
|
||||
|
||||
String getSubject();
|
||||
|
||||
long getTimePast();
|
||||
|
||||
long getTimeSent();
|
||||
|
||||
boolean hasQuest();
|
||||
|
||||
IQuest getQuest();
|
||||
|
||||
IItemStack[] getItems();
|
||||
|
||||
void setItems(IItemStack[] items);
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
import noppes.npcs.api.IContainer;
|
||||
import noppes.npcs.api.entity.IPlayer;
|
||||
|
||||
public interface IQuest {
|
||||
int getId();
|
||||
|
||||
String getName();
|
||||
|
||||
void setName(String var1);
|
||||
|
||||
int getType();
|
||||
|
||||
void setType(int var1);
|
||||
|
||||
String getLogText();
|
||||
|
||||
void setLogText(String var1);
|
||||
|
||||
String getCompleteText();
|
||||
|
||||
void setCompleteText(String var1);
|
||||
|
||||
IQuest getNextQuest();
|
||||
|
||||
void setNextQuest(IQuest var1);
|
||||
|
||||
IQuestObjective[] getObjectives(IPlayer var1);
|
||||
|
||||
IQuestCategory getCategory();
|
||||
|
||||
IContainer getRewards();
|
||||
|
||||
String getNpcName();
|
||||
|
||||
void setNpcName(String var1);
|
||||
|
||||
void save();
|
||||
|
||||
boolean getIsRepeatable();
|
||||
|
||||
IQuestInterface getQuestInterface();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IQuestCategory {
|
||||
List<IQuest> quests();
|
||||
|
||||
String getName();
|
||||
|
||||
IQuest create();
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
public interface IQuestDialog extends IQuestInterface {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
public interface IQuestInterface {
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
public interface IQuestItem extends IQuestInterface {
|
||||
void setLeaveItems(boolean leaveItems);
|
||||
boolean getLeaveItems();
|
||||
|
||||
void setIgnoreDamage(boolean ignoreDamage);
|
||||
boolean getIgnoreDamage();
|
||||
|
||||
void setIgnoreNbt(boolean ignoreNbt);
|
||||
boolean getIgnoreNbt();
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
public interface IQuestKill extends IQuestInterface {
|
||||
void setTargetType(int type);
|
||||
int getTargetType();
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
public interface IQuestLocation extends IQuestInterface {
|
||||
void setLocation1(String loc1);
|
||||
String getLocation1();
|
||||
|
||||
void setLocation2(String loc2);
|
||||
String getLocation2();
|
||||
|
||||
void setLocation3(String loc3);
|
||||
String getLocation3();
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
public interface IQuestObjective {
|
||||
int getProgress();
|
||||
|
||||
void setProgress(int var1);
|
||||
|
||||
int getMaxProgress();
|
||||
|
||||
boolean isCompleted();
|
||||
|
||||
String getText();
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface IRecipe {
|
||||
String getName();
|
||||
|
||||
boolean isGlobal();
|
||||
|
||||
void setIsGlobal(boolean var1);
|
||||
|
||||
boolean getIgnoreNBT();
|
||||
|
||||
void setIgnoreNBT(boolean var1);
|
||||
|
||||
boolean getIgnoreDamage();
|
||||
|
||||
void setIgnoreDamage(boolean var1);
|
||||
|
||||
int getWidth();
|
||||
|
||||
int getHeight();
|
||||
|
||||
ItemStack getResult();
|
||||
|
||||
ItemStack[] getRecipe();
|
||||
|
||||
void delete();
|
||||
|
||||
int getId();
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
import noppes.npcs.api.IPos;
|
||||
import noppes.npcs.api.entity.IEntity;
|
||||
|
||||
public interface ISound {
|
||||
|
||||
void setEntity(IEntity entity);
|
||||
|
||||
IEntity getEntity();
|
||||
|
||||
void setRepeat(boolean repeat);
|
||||
|
||||
boolean repeats();
|
||||
|
||||
void setRepeatDelay(int delay);
|
||||
|
||||
int getRepeatDelay();
|
||||
|
||||
void setVolume(float volume);
|
||||
|
||||
float getVolume();
|
||||
|
||||
void setPitch(float pitch);
|
||||
|
||||
float getPitch();
|
||||
|
||||
void setPosition(IPos pos);
|
||||
|
||||
void setPosition(float x, float y, float z);
|
||||
|
||||
float getX();
|
||||
|
||||
float getY();
|
||||
|
||||
float getZ();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
public interface ITransportCategory {
|
||||
|
||||
int getId();
|
||||
|
||||
void setTitle(String title);
|
||||
|
||||
String getTitle();
|
||||
|
||||
void addLocation(String name);
|
||||
|
||||
ITransportLocation getLocation(String name);
|
||||
|
||||
void removeLocation(String name);
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
import noppes.npcs.api.IPos;
|
||||
|
||||
public interface ITransportLocation {
|
||||
|
||||
int getId();
|
||||
|
||||
void setName(String name);
|
||||
|
||||
String getName();
|
||||
|
||||
void setDimension(int dimension);
|
||||
|
||||
int getDimension();
|
||||
|
||||
void setType(int type);
|
||||
|
||||
int getType();
|
||||
|
||||
void setPosition(int x, int y, int z);
|
||||
|
||||
void setPosition(IPos pos);
|
||||
|
||||
double getX();
|
||||
|
||||
double getY();
|
||||
|
||||
double getZ();
|
||||
|
||||
void save();
|
||||
}
|
||||
Reference in new issue
Block a user