mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-13 22:59:02 +00:00
Added Day/Night Cycle #14
This commit is contained in:
4
Plugin NPC/src/net/simon987/npcplugin/HarvestTask.java
Normal file
4
Plugin NPC/src/net/simon987/npcplugin/HarvestTask.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package net.simon987.npcplugin;
|
||||
|
||||
public class HarvestTask {
|
||||
}
|
||||
4
Plugin NPC/src/net/simon987/npcplugin/HarvesterNPC.java
Normal file
4
Plugin NPC/src/net/simon987/npcplugin/HarvesterNPC.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package net.simon987.npcplugin;
|
||||
|
||||
public class HarvesterNPC {
|
||||
}
|
||||
4
Plugin NPC/src/net/simon987/npcplugin/NPCTask.java
Normal file
4
Plugin NPC/src/net/simon987/npcplugin/NPCTask.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package net.simon987.npcplugin;
|
||||
|
||||
public class NPCTask {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package net.simon987.npcplugin;
|
||||
|
||||
public class NonPlayerCharacter {
|
||||
}
|
||||
4
Plugin NPC/src/net/simon987/npcplugin/NpcPlugin.java
Normal file
4
Plugin NPC/src/net/simon987/npcplugin/NpcPlugin.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package net.simon987.npcplugin;
|
||||
|
||||
public class NpcPlugin {
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package net.simon987.npcplugin.event;
|
||||
|
||||
import net.simon987.server.event.GameEvent;
|
||||
import net.simon987.server.event.GameEventListener;
|
||||
import net.simon987.server.event.TickEvent;
|
||||
import net.simon987.server.logging.LogManager;
|
||||
|
||||
public class TickListener implements GameEventListener {
|
||||
@Override
|
||||
public Class getListenedEventType() {
|
||||
return TickEvent.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handle(GameEvent event) {
|
||||
|
||||
LogManager.LOGGER.info("Time is " + ((TickEvent)event).getTime());
|
||||
|
||||
|
||||
// NonPlayerCharacter npc = new HarvesterNPC();
|
||||
// GameServer.INSTANCE.getGameUniverse().getWorld(0,0).getGameObjects().add(npc);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user