-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1406 from TheGridExpert/1.21
Event for Vampire Fog Distance and Blood Food Mod Parity
- Loading branch information
Showing
7 changed files
with
56 additions
and
11 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
26 changes: 26 additions & 0 deletions
26
src/api/java/de/teamlapen/vampirism/api/event/VampireFogEvent.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,26 @@ | ||
package de.teamlapen.vampirism.api.event; | ||
|
||
import net.neoforged.bus.api.Event; | ||
|
||
@SuppressWarnings("unused") | ||
public class VampireFogEvent extends Event { | ||
private float fogDistanceMultiplier; | ||
|
||
public VampireFogEvent(float fogDistanceMultiplier) { | ||
this.fogDistanceMultiplier = fogDistanceMultiplier; | ||
} | ||
|
||
/** | ||
* @return The fog distance multiplier of vampire fog. | ||
*/ | ||
public float getFogDistanceMultiplier() { | ||
return fogDistanceMultiplier; | ||
} | ||
|
||
/** | ||
* @param fogDistanceMultiplier The fog distance multiplier of vampire fog | ||
*/ | ||
public void setFogDistanceMultiplier(float fogDistanceMultiplier) { | ||
this.fogDistanceMultiplier = fogDistanceMultiplier; | ||
} | ||
} |
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