-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a basic tutorial when entering darkness
changed callback methods to be more straightforward added a respawn callback for a whisp feature to protect you from grues after respawning
- Loading branch information
Showing
8 changed files
with
114 additions
and
81 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
[![build](https://github.com/lever1209/pandora-core/actions/workflows/build.yml/badge.svg?branch=development-1.19.x)](https://github.com/lever1209/pandora-core/actions/workflows/build.yml) | ||
|
||
Imagine a world where you are at the bottom of the food chain. | ||
The only thing you know about them is they dont like being seen. |
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
18 changes: 18 additions & 0 deletions
18
...main/java/pkg/deepCurse/pandora/core/util/callbacks/AfterServerPlayerRespawnCallback.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,18 @@ | ||
package pkg.deepCurse.pandora.core.util.callbacks; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import net.fabricmc.fabric.api.entity.event.v1.ServerPlayerEvents.AfterRespawn; | ||
import net.minecraft.server.network.ServerPlayerEntity; | ||
|
||
public class AfterServerPlayerRespawnCallback implements AfterRespawn { | ||
|
||
private static Logger log = LoggerFactory.getLogger(AfterServerPlayerRespawnCallback.class); | ||
|
||
@Override | ||
public void afterRespawn(ServerPlayerEntity oldPlayer, ServerPlayerEntity newPlayer, boolean alive) { | ||
log.info("{} {} {}", oldPlayer,newPlayer,alive); | ||
} | ||
|
||
} |
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
8 changes: 4 additions & 4 deletions
8
src/main/java/pkg/deepCurse/pandora/core/util/interfaces/PlayerGrueDataInterface.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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package pkg.deepCurse.pandora.core.util.interfaces; | ||
|
||
public interface PlayerGrueDataInterface { | ||
short getTrainingWheelEncountersLeft(); | ||
short getTutorialEncountersLeft(); | ||
|
||
void setTrainingWheelEncountersLeft(short trainingWheelEncountersLeft); | ||
void setTutorialEncountersLeft(short tutorialEncountersLeft); | ||
|
||
long getLastEncounterTime(); | ||
long getLastTutorialEncounterTime(); | ||
|
||
void setLastEncounterTime(long lastEncounterTime); | ||
void setLastTutorialEncounterTime(long lastTutorialEncounterTime); | ||
} |
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