mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-28 22:48:46 +00:00
Revert "Added several more functions to pre-existing classes:"
This reverts commit e9a8f8cebc.
This commit is contained in:
1 parent
0d3436c71b
commit
6ae465c5d0
51 files changed
+226
-1024
No files matched your search
@@ -12,7 +12,6 @@ import noppes.npcs.controllers.data.PlayerTransportData;
|
||||
import noppes.npcs.controllers.TransportController;
|
||||
import noppes.npcs.controllers.data.TransportLocation;
|
||||
import noppes.npcs.entity.EntityNPCInterface;
|
||||
import noppes.npcs.scripted.interfaces.handler.data.ITransportLocation;
|
||||
|
||||
public class RoleTransporter extends RoleInterface{
|
||||
|
||||
@@ -78,12 +77,12 @@ public class RoleTransporter extends RoleInterface{
|
||||
}
|
||||
}
|
||||
|
||||
public void unlock(EntityPlayer player, ITransportLocation loc){
|
||||
private void unlock(EntityPlayer player, TransportLocation loc){
|
||||
PlayerTransportData data = PlayerDataController.instance.getPlayerData(player).transportData;
|
||||
if(data.transports.contains(transportId))
|
||||
return;
|
||||
data.transports.add(transportId);
|
||||
player.addChatMessage(new ChatComponentTranslation("transporter.unlock", loc.getName()));
|
||||
player.addChatMessage(new ChatComponentTranslation("transporter.unlock", loc.name));
|
||||
}
|
||||
public TransportLocation getLocation(){
|
||||
if(npc.isRemote())
|
||||
@@ -95,9 +94,9 @@ public class RoleTransporter extends RoleInterface{
|
||||
return loc != null && loc.id == transportId;
|
||||
}
|
||||
|
||||
public void setTransport(ITransportLocation location) {
|
||||
transportId = location.getId();
|
||||
name = location.getName();
|
||||
public void setTransport(TransportLocation location) {
|
||||
transportId = location.id;
|
||||
name = location.name;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user