Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Implemented a Pinging system between mana bursts and spreaders. This …
…should fix the issue where spreaders lose the ability to fire after a chunk/world reload. (#1105) I can't reproduce it so I it'll have to be left to player testing.
- Loading branch information
Showing
7 changed files
with
206 additions
and
19 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* This class was created by <Vazkii>. It's distributed as | ||
* part of the Botania Mod. Get the Source Code in github: | ||
* https://github.com/Vazkii/Botania | ||
* | ||
* Botania is Open Source and distributed under the | ||
* Botania License: http://botaniamod.net/license.php | ||
* | ||
* File Created @ [Jun 19, 2015, 10:05:24 PM (GMT)] | ||
*/ | ||
package vazkii.botania.api.mana; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* This interface marks a TileEntity that can be identified through | ||
* an UUID. This UUID must presist between sessions. | ||
*/ | ||
public interface IIdentifiable { | ||
|
||
public UUID getIdentifier(); | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* This class was created by <Vazkii>. It's distributed as | ||
* part of the Botania Mod. Get the Source Code in github: | ||
* https://github.com/Vazkii/Botania | ||
* | ||
* Botania is Open Source and distributed under the | ||
* Botania License: http://botaniamod.net/license.php | ||
* | ||
* File Created @ [Jun 19, 2015, 9:52:05 PM (GMT)] | ||
*/ | ||
package vazkii.botania.api.mana; | ||
|
||
import java.util.UUID; | ||
|
||
import vazkii.botania.api.internal.IManaBurst; | ||
|
||
/** | ||
* This describes an interface of a Mana Sender block that should be able to pingbackable | ||
* by a burst to tell it that the burst is still alive. | ||
*/ | ||
public interface IPingable extends IIdentifiable { | ||
|
||
/** | ||
* Pings this object back, telling it that the burst passed in is still alive | ||
* in the world. The UUID parameter should be the UUID with which the burst | ||
* was created, this is used to let the object handle the check for if it's the | ||
* correct ID internally. IManaBurst implementations should do this every tick. | ||
*/ | ||
public void pingback(IManaBurst burst, UUID expectedIdentity); | ||
|
||
} |
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
Oops, something went wrong.
cb11305
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this fix.
cb11305
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something I can drop on our server only to test or would players also need this?