mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-24 22:14:31 +00:00
move more block logic to mantle
This commit is contained in:
1 parent
d19d4d4a0c
commit
bbec72109a
19 files changed
+35
-590
No files matched your search
@@ -1,12 +0,0 @@
|
||||
package tconstruct.library.util;
|
||||
|
||||
public interface IMasterLogic
|
||||
{
|
||||
/** Called when servants change their state
|
||||
*
|
||||
* @param x Servant X
|
||||
* @param y Servant Y
|
||||
* @param z Servant Z
|
||||
*/
|
||||
public void notifyChange (IServantLogic servant, int x, int y, int z);
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package tconstruct.library.util;
|
||||
|
||||
public interface IMasterNode extends IMasterLogic, IServantLogic
|
||||
{
|
||||
public boolean isCurrentlyMaster ();
|
||||
|
||||
public boolean isEquivalentMaster (IMasterLogic master);
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
package tconstruct.library.util;
|
||||
|
||||
import mantle.world.CoordTuple;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public interface IServantLogic
|
||||
{
|
||||
public CoordTuple getMasterPosition ();
|
||||
|
||||
/** The block should already have a valid master */
|
||||
public void notifyMasterOfChange ();
|
||||
|
||||
/** Checks if this block can be tied to this master
|
||||
*
|
||||
* @param master
|
||||
* @param x xCoord of master
|
||||
* @param y yCoord of master
|
||||
* @param z zCoord of master
|
||||
* @return whether the servant can be tied to this master
|
||||
*/
|
||||
|
||||
public boolean setPotentialMaster (IMasterLogic master, World world, int xMaster, int yMaster, int zMaster);
|
||||
|
||||
/** Used to set and verify that this is the block's master
|
||||
*
|
||||
* @param master
|
||||
* @param x xCoord of master
|
||||
* @param y yCoord of master
|
||||
* @param z zCoord of master
|
||||
* @return Is this block tied to this master?
|
||||
*/
|
||||
|
||||
public boolean verifyMaster (IMasterLogic master, World world, int xMaster, int yMaster, int zMaster);
|
||||
|
||||
/** Exactly what it says on the tin
|
||||
*
|
||||
* @param master
|
||||
* @param x xCoord of master
|
||||
* @param y yCoord of master
|
||||
* @param z zCoord of master
|
||||
*/
|
||||
|
||||
public void invalidateMaster (IMasterLogic master, World world, int xMaster, int yMaster, int zMaster);
|
||||
}
|
||||
Reference in new issue
Block a user