mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-25 11:04:25 +00:00
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:
1 parent
112e82a09d
commit
e9a8f8cebc
51 files changed
+1025
-227
No files matched your search
@@ -1,6 +1,10 @@
|
||||
package noppes.npcs.scripted.interfaces.roles;
|
||||
|
||||
import net.minecraft.entity.INpc;
|
||||
|
||||
public interface IRole {
|
||||
|
||||
INpc getNpc();
|
||||
|
||||
int getType();
|
||||
}
|
||||
@@ -1,5 +1,19 @@
|
||||
package noppes.npcs.scripted.interfaces.roles;
|
||||
|
||||
public interface IRoleTransporter extends IRole {
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import noppes.npcs.scripted.interfaces.entity.IPlayer;
|
||||
import noppes.npcs.scripted.interfaces.handler.data.ITransportLocation;
|
||||
|
||||
public interface IRoleTransporter extends IRole {
|
||||
String getName();
|
||||
|
||||
int getTransportId();
|
||||
|
||||
void unlock(IPlayer<EntityPlayerMP> player, ITransportLocation location);
|
||||
|
||||
ITransportLocation getTransport();
|
||||
|
||||
boolean hasTransport();
|
||||
|
||||
void setTransport(ITransportLocation location);
|
||||
}
|
||||
Reference in new issue
Block a user