-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
1 parent
59c561b
commit 76b7ebb
Showing
9 changed files
with
55 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
- Reduced default rescueDistance to 3 instead of 5 | ||
- Require Line of Sight for rescuing to initiate | ||
- Require the player to be looking towards the downed player for rescuing to initiate | ||
- Updated to Minecraft 1.21.2 |
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
12 changes: 6 additions & 6 deletions
12
common/src/main/java/net/blay09/mods/hardcorerevival/api/InternalMethods.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,16 +1,16 @@ | ||
package net.blay09.mods.hardcorerevival.api; | ||
|
||
import net.minecraft.server.level.ServerPlayer; | ||
import net.minecraft.world.damagesource.DamageSource; | ||
import net.minecraft.world.entity.player.Player; | ||
|
||
public interface InternalMethods { | ||
void knockout(Player player, DamageSource damageSource); | ||
void knockout(ServerPlayer player, DamageSource damageSource); | ||
|
||
void wakeup(Player player, boolean applyEffects); | ||
void wakeup(ServerPlayer player, boolean applyEffects); | ||
|
||
boolean isKnockedOut(Player player); | ||
boolean isKnockedOut(ServerPlayer player); | ||
|
||
int getKnockoutTicksPassed(Player player); | ||
int getKnockoutTicksPassed(ServerPlayer player); | ||
|
||
int getKnockoutTicksLeft(Player player); | ||
int getKnockoutTicksLeft(ServerPlayer player); | ||
} |
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