Added several more functions to pre-existing classes:

-Spawner, Transport, Healer, Guard, Bard jobs received more functions.
-Added more functions to the transporter role.
-IRole: Added getNpc() function.
-IAnimal, IEntityLiving, and IEntityLivingBase received more functions from their MC counterparts.
-Nearly every function with that takes position/vector parameters now has an equivalent with IPos as a parameter instead.
This commit is contained in:
Luis C.M committed 2022-11-05 20:19:14 -05:00
1 parent 112e82a09d
commit e9a8f8cebc
51 files changed
+1025 -227

No files matched your search

@@ -6,6 +6,7 @@
package noppes.npcs.scripted.interfaces.entity;
import net.minecraft.entity.EntityCreature;
import noppes.npcs.scripted.interfaces.IPos;
import noppes.npcs.scripted.interfaces.ITimers;
import noppes.npcs.scripted.interfaces.handler.IOverlayHandler;
import noppes.npcs.scripted.interfaces.handler.data.IFaction;
@@ -72,6 +73,8 @@ public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T> {
*/
void setTexture(String texture);
IPos getHome();
/**
* @return Home position x
*/
@@ -108,6 +111,9 @@ public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T> {
* @param z The home z position
*/
void setHome(int x, int y, int z);
void setHome(IPos pos);
/**
* @param health New max health
*/
@@ -808,4 +814,6 @@ public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T> {
int getCollisionType();
void updateClient();
void updateAI();
}