-
Notifications
You must be signed in to change notification settings - Fork 755
/
IServantLogic.java
43 lines (34 loc) · 1.23 KB
/
IServantLogic.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package tconstruct.library.util;
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);
}