mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-27 02:43:06 +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,10 @@
|
||||
package noppes.npcs.api.jobs;
|
||||
|
||||
import noppes.npcs.api.entity.ICustomNpc;
|
||||
|
||||
public interface IJob {
|
||||
|
||||
int getType();
|
||||
|
||||
ICustomNpc getNpc();
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package noppes.npcs.api.jobs;
|
||||
|
||||
public interface IJobBard extends IJob {
|
||||
|
||||
String getSong();
|
||||
|
||||
void setSong(String song);
|
||||
|
||||
void setInstrument(int i);
|
||||
|
||||
int getInstrumentId();
|
||||
|
||||
void setMinRange(int range);
|
||||
int getMinRange();
|
||||
|
||||
void setMaxRange(int range);
|
||||
int getMaxRange();
|
||||
|
||||
void setStreaming(boolean streaming);
|
||||
boolean getStreaming();
|
||||
|
||||
void hasOffRange(boolean value);
|
||||
boolean hasOffRange();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package noppes.npcs.api.jobs;
|
||||
|
||||
public interface IJobConversation extends IJob {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package noppes.npcs.api.jobs;
|
||||
|
||||
import noppes.npcs.api.entity.ICustomNpc;
|
||||
|
||||
public interface IJobFollower extends IJob {
|
||||
|
||||
String getFollowingName();
|
||||
|
||||
void setFollowingName(String name);
|
||||
|
||||
ICustomNpc getFollowingNpc();
|
||||
|
||||
boolean isFollowing();
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package noppes.npcs.api.jobs;
|
||||
|
||||
public interface IJobGuard extends IJob {
|
||||
boolean attackCreepers();
|
||||
void attackCreepers(boolean value);
|
||||
|
||||
boolean attacksAnimals();
|
||||
void attacksAnimals(boolean value);
|
||||
|
||||
boolean attackHostileMobs();
|
||||
void attackHostileMobs(boolean value);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package noppes.npcs.api.jobs;
|
||||
|
||||
import noppes.npcs.api.entity.IEntityLivingBase;
|
||||
|
||||
public interface IJobHealer extends IJob {
|
||||
|
||||
void heal(IEntityLivingBase entity, float amount);
|
||||
|
||||
void setRange(int range);
|
||||
int getRange();
|
||||
|
||||
void setSpeed(int speed);
|
||||
int getSpeed();
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package noppes.npcs.api.jobs;
|
||||
|
||||
import noppes.npcs.api.entity.IPlayer;
|
||||
import noppes.npcs.api.handler.data.IAvailability;
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
|
||||
public interface IJobItemGiver extends IJob {
|
||||
|
||||
void setCooldown(int cooldown);
|
||||
|
||||
void setCooldownType(int type);
|
||||
|
||||
int getCooldownType();
|
||||
|
||||
void setGivingMethod(int method);
|
||||
|
||||
int getGivingMethod();
|
||||
|
||||
void setLines(String[] lines);
|
||||
|
||||
String[] getLines();
|
||||
|
||||
void setAvailability(IAvailability availability);
|
||||
|
||||
IAvailability getAvailability();
|
||||
|
||||
void setItem(int slot, IItemStack item);
|
||||
|
||||
IItemStack[] getItems();
|
||||
|
||||
boolean giveItems(IPlayer player);
|
||||
|
||||
boolean canPlayerInteract(IPlayer player);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package noppes.npcs.api.jobs;
|
||||
|
||||
public interface IJobPuppet extends IJob {
|
||||
|
||||
int getRotationX(int part);
|
||||
|
||||
int getRotationY(int part);
|
||||
|
||||
int getRotationZ(int part);
|
||||
|
||||
void setRotationX(int part, int rotation);
|
||||
|
||||
void setRotationY(int part, int rotation);
|
||||
|
||||
void setRotationZ(int part, int rotation);
|
||||
|
||||
boolean isEnabled(int part);
|
||||
|
||||
void setEnabled(int part, boolean bo);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package noppes.npcs.api.jobs;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import noppes.npcs.api.IPos;
|
||||
import noppes.npcs.api.IWorld;
|
||||
import noppes.npcs.api.entity.IEntityLivingBase;
|
||||
import noppes.npcs.api.entity.IPlayer;
|
||||
|
||||
public interface IJobSpawner extends IJob {
|
||||
|
||||
IEntityLivingBase<?> spawnEntity(int number);
|
||||
|
||||
IEntityLivingBase<?> getEntity(int number, int x, int y, int z, IWorld world);
|
||||
|
||||
IEntityLivingBase<?> getEntity(int number, IPos pos, IWorld world);
|
||||
|
||||
void setEntity(int number, IEntityLivingBase<?> entityLivingBase);
|
||||
|
||||
/**
|
||||
* Removes all spawned entities
|
||||
*/
|
||||
void removeAllSpawned();
|
||||
|
||||
IEntityLivingBase<?>[] getNearbySpawned();
|
||||
|
||||
boolean hasPixelmon();
|
||||
|
||||
boolean isEmpty();
|
||||
|
||||
boolean isOnCooldown(IPlayer<EntityPlayerMP> player);
|
||||
}
|
||||
Reference in new issue
Block a user