-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
105 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/org/violetmoon/zeta/event/play/ZServerTick.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.violetmoon.zeta.event.play; | ||
|
||
import net.minecraft.server.MinecraftServer; | ||
import org.violetmoon.zeta.event.bus.IZetaPlayEvent; | ||
|
||
public interface ZServerTick extends IZetaPlayEvent { | ||
MinecraftServer getServer(); | ||
|
||
interface Start extends ZServerTick { } | ||
interface End extends ZServerTick { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/java/org/violetmoon/zetaimplforge/event/play/ForgeZServerTick.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.violetmoon.zetaimplforge.event.play; | ||
|
||
import net.minecraft.server.MinecraftServer; | ||
import net.minecraftforge.event.TickEvent; | ||
import org.violetmoon.zeta.event.play.ZServerTick; | ||
|
||
public class ForgeZServerTick implements ZServerTick { | ||
private final TickEvent.ServerTickEvent e; | ||
|
||
public ForgeZServerTick(TickEvent.ServerTickEvent e) { | ||
this.e = e; | ||
} | ||
|
||
@Override | ||
public MinecraftServer getServer() { | ||
return e.getServer(); | ||
} | ||
|
||
public static class Start extends ForgeZServerTick implements ZServerTick.Start { | ||
public Start(TickEvent.ServerTickEvent e) { | ||
super(e); | ||
} | ||
} | ||
|
||
public static class End extends ForgeZServerTick implements ZServerTick.End { | ||
public End(TickEvent.ServerTickEvent e) { | ||
super(e); | ||
} | ||
} | ||
} |