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

@@ -16,7 +16,9 @@ public interface ITileEntity {
*
* @return The world this tile entity is in.
*/
ScriptWorld getWorld();
IWorld getWorld();
void setWorld(IWorld world);
/**
*
@@ -24,6 +26,8 @@ public interface ITileEntity {
*/
TileEntity getMCTileEntity();
void markDirty();
/**
* Reads an INbt compound tag, creates a tile entity based on the data, and replaces this entity with the new one.
*/
@@ -33,6 +37,7 @@ public interface ITileEntity {
* @return The distance of this tile entity from the point given by the x, y, and z parameters.
*/
double getDistanceFrom(double x, double y, double z);
double getDistanceFrom(IPos pos);
/**
* @return A new IBlock object based on this tile entity's type.