mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-23 00:49:50 +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
@@ -7,6 +7,7 @@ package noppes.npcs.scripted.interfaces;
|
||||
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import noppes.npcs.scripted.interfaces.item.IItemStack;
|
||||
import noppes.npcs.scripted.item.ScriptItemStack;
|
||||
import noppes.npcs.scripted.entity.ScriptPlayer;
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
|
||||
import net.minecraft.util.DamageSource;
|
||||
import noppes.npcs.scripted.interfaces.entity.IEntity;
|
||||
|
||||
public interface IDamageSource {
|
||||
String getType();
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
|
||||
import noppes.npcs.NoppesUtilServer;
|
||||
import noppes.npcs.scripted.ScriptWorld;
|
||||
import noppes.npcs.scripted.entity.ScriptEntity;
|
||||
|
||||
public interface IParticle {
|
||||
|
||||
void spawnOnEntity(ScriptEntity entity);
|
||||
|
||||
void spawnInWorld(ScriptWorld world);
|
||||
|
||||
void spawnInWorld(ScriptWorld world, double x, double y, double z);
|
||||
|
||||
void setSize(int width, int height);
|
||||
int getWidth();
|
||||
int getHeight();
|
||||
|
||||
void setOffset(int offsetX, int offsetY);
|
||||
int getOffsetX();
|
||||
int getOffsetY();
|
||||
|
||||
void setAnim(int animRate, boolean animLoop, int animStart, int animEnd);
|
||||
void setAnimRate(int animRate);
|
||||
int getAnimRate();
|
||||
void setAnimLoop(boolean animLoop);
|
||||
boolean getAnimLoop();
|
||||
void setAnimStart(int animStart);
|
||||
int getAnimStart();
|
||||
void setAnimEnd(int animEnd);
|
||||
int getAnimEnd();
|
||||
|
||||
boolean getFacePlayer();
|
||||
void setFacePlayer(boolean facePlayer);
|
||||
|
||||
String getDirectory();
|
||||
|
||||
int getAmount();
|
||||
|
||||
int getMaxAge();
|
||||
|
||||
double getX();
|
||||
double getY();
|
||||
double getZ();
|
||||
|
||||
double getMotionX();
|
||||
double getMotionY();
|
||||
double getMotionZ();
|
||||
float getGravity();
|
||||
|
||||
int getHEXColor1();
|
||||
int getHEXColor2();
|
||||
float getHEXColorRate();
|
||||
int getHEXColorStart();
|
||||
|
||||
float getAlpha1();
|
||||
float getAlpha2();
|
||||
float getAlphaRate();
|
||||
int getAlphaRateStart();
|
||||
|
||||
float getScale1();
|
||||
float getScale2();
|
||||
float getScaleRate();
|
||||
int getScaleRateStart();
|
||||
|
||||
float getRotationX1();
|
||||
float getRotationX2();
|
||||
float getRotationXRate();
|
||||
int getRotationXRateStart();
|
||||
|
||||
float getRotationY1();
|
||||
float getRotationY2();
|
||||
float getRotationYRate();
|
||||
int getRotationYRateStart();
|
||||
|
||||
float getRotationZ1();
|
||||
float getRotationZ2();
|
||||
float getRotationZRate();
|
||||
int getRotationZRateStart();
|
||||
|
||||
void setDirectory(String directory);
|
||||
|
||||
void setAmount(int amount);
|
||||
|
||||
void setMaxAge(int maxAge);
|
||||
|
||||
void setPosition(double x, double y, double z);
|
||||
void setX(double x);
|
||||
void setY(double y);
|
||||
void setZ(double z);
|
||||
|
||||
void setMotion(double motionX, double motionY, double motionZ, float gravity);
|
||||
void setMotionX(double motionX);
|
||||
void setMotionY(double motionY);
|
||||
void setMotionZ(double motionZ);
|
||||
void setGravity(float gravity);
|
||||
|
||||
void setHEXColor(int HEXColor, int HEXColor2, float HEXColorRate, int HEXColorStart);
|
||||
void setHEXColor1(int HEXColor);
|
||||
void setHEXColor2(int HEXColor2);
|
||||
void setHEXColorRate(float HEXColorRate);
|
||||
void setHEXColorStart(int HEXColorStart);
|
||||
|
||||
void setAlpha(float alpha1, float alpha2, float alphaRate, int alphaRateStart);
|
||||
void setAlpha1(float alpha1);
|
||||
void setAlpha2(float alpha2);
|
||||
void setAlphaRate(float alphaRate);
|
||||
void setAlphaRateStart(int alphaRateStart);
|
||||
|
||||
void setScale(float scale1, float scale2, float scaleRate, int scaleRateStart);
|
||||
void setScale1(float scale1);
|
||||
void setScale2(float scale2);
|
||||
void setScaleRate(float scaleRate);
|
||||
void setScaleRateStart(int scaleRateStart);
|
||||
|
||||
void setRotationX(float rotationX1, float rotationX2, float rotationXRate, int rotationXRateStart);
|
||||
void setRotationX1(float rotationX1);
|
||||
void setRotationX2(float rotationX2);
|
||||
void setRotationXRate(float rotationXRate);
|
||||
void setRotationXRateStart(int rotationXRateStart);
|
||||
|
||||
void setRotationY(float rotationY1, float rotationY2, float rotationYRate, int rotationYRateStart);
|
||||
void setRotationY1(float rotationY1);
|
||||
void setRotationY2(float rotationY2);
|
||||
void setRotationYRate(float rotationYRate);
|
||||
void setRotationYRateStart(int rotationYRateStart);
|
||||
|
||||
void setRotationZ(float rotationZ1, float rotationZ2, float rotationZRate, int rotationZRateStart);
|
||||
void setRotationZ1(float rotationZ1);
|
||||
void setRotationZ2(float rotationZ2);
|
||||
void setRotationZRate(float rotationZRate);
|
||||
void setRotationZRateStart(int rotationZRateStart);
|
||||
|
||||
}
|
||||
@@ -5,6 +5,8 @@ import net.minecraft.world.WorldServer;
|
||||
import noppes.npcs.scripted.*;
|
||||
import noppes.npcs.scripted.entity.ScriptEntity;
|
||||
import noppes.npcs.scripted.entity.ScriptPlayer;
|
||||
import noppes.npcs.scripted.interfaces.entity.IEntity;
|
||||
import noppes.npcs.scripted.interfaces.item.IItemStack;
|
||||
import noppes.npcs.scripted.item.ScriptItemStack;
|
||||
|
||||
public interface IWorld {
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// (powered by Fernflower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.entity;
|
||||
|
||||
import net.minecraft.entity.passive.EntityAnimal;
|
||||
|
||||
+3
-1
@@ -3,10 +3,12 @@
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.entity;
|
||||
|
||||
import net.minecraft.entity.EntityCreature;
|
||||
import noppes.npcs.scripted.ScriptFaction;
|
||||
import noppes.npcs.scripted.interfaces.item.IItemStack;
|
||||
import noppes.npcs.scripted.interfaces.ITimers;
|
||||
import noppes.npcs.scripted.item.ScriptItemStack;
|
||||
import noppes.npcs.scripted.entity.ScriptLivingBase;
|
||||
import noppes.npcs.scripted.entity.ScriptPlayer;
|
||||
+3
-1
@@ -3,7 +3,7 @@
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.entity;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
@@ -13,6 +13,8 @@ import noppes.npcs.scripted.ScriptBlockPos;
|
||||
import noppes.npcs.scripted.ScriptParticle;
|
||||
import noppes.npcs.scripted.ScriptWorld;
|
||||
import noppes.npcs.scripted.entity.ScriptEntity;
|
||||
import noppes.npcs.scripted.interfaces.INbt;
|
||||
import noppes.npcs.scripted.interfaces.IPos;
|
||||
import noppes.npcs.scripted.item.ScriptItemStack;
|
||||
|
||||
public interface IEntity<T extends Entity> {
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// (powered by Fernflower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.entity;
|
||||
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.entity;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.EntityDamageSource;
|
||||
import noppes.npcs.scripted.entity.ScriptEntity;
|
||||
import noppes.npcs.scripted.interfaces.item.IItemStack;
|
||||
import noppes.npcs.scripted.item.ScriptItemStack;
|
||||
import noppes.npcs.scripted.entity.ScriptLivingBase;
|
||||
import noppes.npcs.scripted.wrapper.ScriptDamageSource;
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// (powered by Fernflower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.entity;
|
||||
|
||||
import net.minecraft.entity.monster.EntityMob;
|
||||
|
||||
+1
-3
@@ -3,11 +3,9 @@
|
||||
// (powered by Fernflower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.entity;
|
||||
|
||||
import net.minecraft.entity.passive.EntityTameable;
|
||||
import noppes.npcs.controllers.PixelmonHelper;
|
||||
import noppes.npcs.util.ValueUtil;
|
||||
|
||||
public interface IPixelmon<T extends EntityTameable> extends IAnimal<T> {
|
||||
boolean getIsShiny();
|
||||
+6
-15
@@ -1,26 +1,17 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.entity;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import noppes.npcs.Server;
|
||||
import noppes.npcs.constants.EnumPacketClient;
|
||||
import noppes.npcs.containers.ContainerCustomGui;
|
||||
import noppes.npcs.controllers.*;
|
||||
import noppes.npcs.scripted.NpcAPI;
|
||||
import noppes.npcs.scripted.ScriptBlock;
|
||||
import noppes.npcs.scripted.entity.ScriptDBCPlayer;
|
||||
import noppes.npcs.scripted.entity.ScriptEntity;
|
||||
import noppes.npcs.scripted.gui.ScriptGui;
|
||||
import noppes.npcs.scripted.handler.data.IQuest;
|
||||
import noppes.npcs.scripted.interfaces.handler.data.IQuest;
|
||||
import noppes.npcs.scripted.interfaces.*;
|
||||
import noppes.npcs.scripted.interfaces.gui.ICustomGui;
|
||||
import noppes.npcs.scripted.interfaces.item.IItemStack;
|
||||
import noppes.npcs.scripted.interfaces.overlay.ICustomOverlay;
|
||||
import noppes.npcs.scripted.item.ScriptItemStack;
|
||||
import noppes.npcs.scripted.ScriptPixelmonPlayerData;
|
||||
import noppes.npcs.scripted.overlay.ScriptOverlay;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
public interface IPlayer<T extends EntityPlayerMP> extends IEntityLivingBase<T> {
|
||||
/**
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.gui;
|
||||
|
||||
public interface IButton extends ICustomGuiComponent {
|
||||
int getWidth();
|
||||
+3
-1
@@ -3,9 +3,11 @@
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.gui;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import noppes.npcs.scripted.interfaces.item.IItemStack;
|
||||
import noppes.npcs.scripted.interfaces.entity.IPlayer;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.gui;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import noppes.npcs.scripted.gui.ScriptGuiComponent;
|
||||
+2
-1
@@ -3,9 +3,10 @@
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.gui;
|
||||
|
||||
import net.minecraft.inventory.Slot;
|
||||
import noppes.npcs.scripted.interfaces.item.IItemStack;
|
||||
|
||||
public interface IItemSlot extends ICustomGuiComponent {
|
||||
boolean hasStack();
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.gui;
|
||||
|
||||
public interface ILabel extends ICustomGuiComponent {
|
||||
String getText();
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.gui;
|
||||
|
||||
public interface ILine extends ICustomGuiComponent {
|
||||
int getX1();
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.gui;
|
||||
|
||||
public interface IScroll extends ICustomGuiComponent {
|
||||
int getWidth();
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.gui;
|
||||
|
||||
public interface ITextField extends ICustomGuiComponent {
|
||||
int getWidth();
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.gui;
|
||||
|
||||
public interface ITexturedRect extends ICustomGuiComponent {
|
||||
String getTexture();
|
||||
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces.handler;
|
||||
|
||||
import noppes.npcs.scripted.interfaces.IWorld;
|
||||
import noppes.npcs.scripted.interfaces.entity.IEntity;
|
||||
|
||||
public interface ICloneHandler {
|
||||
IEntity spawn(double var1, double var3, double var5, int var7, String var8, IWorld var9);
|
||||
|
||||
IEntity get(int var1, String var2, IWorld var3);
|
||||
|
||||
void set(int var1, String var2, IEntity var3);
|
||||
|
||||
void remove(int var1, String var2);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces.handler;
|
||||
|
||||
import noppes.npcs.scripted.interfaces.handler.data.IDialog;
|
||||
import noppes.npcs.scripted.interfaces.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.scripted.interfaces.handler;
|
||||
|
||||
import noppes.npcs.scripted.interfaces.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,17 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces.handler;
|
||||
|
||||
import noppes.npcs.scripted.interfaces.handler.data.IQuest;
|
||||
import noppes.npcs.scripted.interfaces.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.scripted.interfaces.handler;
|
||||
|
||||
import java.util.List;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import noppes.npcs.scripted.interfaces.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,36 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces.handler.data;
|
||||
|
||||
import noppes.npcs.scripted.interfaces.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,53 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces.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();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces.handler.data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IDialogCategory {
|
||||
List<IDialog> dialogs();
|
||||
|
||||
String getName();
|
||||
|
||||
IDialog create();
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces.handler.data;
|
||||
|
||||
public interface IDialogOption {
|
||||
int getSlot();
|
||||
|
||||
String getName();
|
||||
|
||||
int getType();
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces.handler.data;
|
||||
|
||||
import noppes.npcs.scripted.interfaces.entity.ICustomNpc;
|
||||
import noppes.npcs.scripted.interfaces.entity.IPlayer;
|
||||
|
||||
public interface IFaction {
|
||||
int getId();
|
||||
|
||||
String getName();
|
||||
|
||||
int getDefaultPoints();
|
||||
|
||||
void setDefaultPoints(int var1);
|
||||
|
||||
int getColor();
|
||||
|
||||
int playerStatus(IPlayer var1);
|
||||
|
||||
boolean hostileToNpc(ICustomNpc var1);
|
||||
|
||||
boolean hostileToFaction(int var1);
|
||||
|
||||
int[] getHostileList();
|
||||
|
||||
void addHostile(int var1);
|
||||
|
||||
void removeHostile(int var1);
|
||||
|
||||
boolean hasHostile(int var1);
|
||||
|
||||
boolean getIsHidden();
|
||||
|
||||
void setIsHidden(boolean var1);
|
||||
|
||||
boolean getAttackedByMobs();
|
||||
|
||||
void setAttackedByMobs(boolean var1);
|
||||
|
||||
void save();
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.interfaces.handler.data;
|
||||
|
||||
import noppes.npcs.scripted.interfaces.IContainer;
|
||||
import noppes.npcs.scripted.interfaces.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.scripted.interfaces.handler.data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IQuestCategory {
|
||||
List<IQuest> quests();
|
||||
|
||||
String getName();
|
||||
|
||||
IQuest create();
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package noppes.npcs.scripted.interfaces.handler.data;
|
||||
|
||||
public interface IQuestDialog extends IQuestInterface {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package noppes.npcs.scripted.interfaces.handler.data;
|
||||
|
||||
public interface IQuestInterface {
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package noppes.npcs.scripted.interfaces.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.scripted.interfaces.handler.data;
|
||||
|
||||
public interface IQuestKill extends IQuestInterface {
|
||||
void setTargetType(int type);
|
||||
int getTargetType();
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package noppes.npcs.scripted.interfaces.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.scripted.interfaces.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.scripted.interfaces.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();
|
||||
}
|
||||
+1
-3
@@ -1,6 +1,4 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
package noppes.npcs.scripted.interfaces.item;
|
||||
|
||||
public interface ICustomItem extends IItemStack {
|
||||
String getTexture();
|
||||
+2
-1
@@ -1,4 +1,4 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.item;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
@@ -6,6 +6,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.nbt.NBTTagString;
|
||||
import noppes.npcs.scripted.interfaces.INbt;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
+3
-1
@@ -1,6 +1,8 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
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 {
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.overlay;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import noppes.npcs.scripted.overlay.ScriptOverlayComponent;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.overlay;
|
||||
|
||||
public interface IOverlayLabel extends ICustomOverlayComponent {
|
||||
String getText();
|
||||
+1
-3
@@ -1,6 +1,4 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
|
||||
import noppes.npcs.scripted.overlay.ScriptOverlayLine;
|
||||
package noppes.npcs.scripted.interfaces.overlay;
|
||||
|
||||
public interface IOverlayLine extends ICustomOverlayComponent {
|
||||
int getX1();
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
package noppes.npcs.scripted.interfaces.overlay;
|
||||
|
||||
public interface IOverlayTexturedRect extends ICustomOverlayComponent {
|
||||
String getTexture();
|
||||
Reference in new issue
Block a user