Files
Mantle/src/main/java/slimeknights/mantle/multiblock/IServantLogic.java
T
KnightMiner 54fe5ba23c Deprecate multiblock stuff
Currently just Tinkers is using this, and Tinkers rewrote the whole system for 1.16. If another mod is using this let me know and I can pull the updated stuff into Mantle
2021-01-16 13:07:32 -05:00

44 lines
1.1 KiB
Java

package slimeknights.mantle.multiblock;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
/**
* @deprecated Slated for removal in 1.17. If you used this, talk to one of the devs and we can pull the updated verson from Tinkers Construct back
*/
@Deprecated
public interface IServantLogic {
BlockPos getMasterPosition();
/** The block should already have a valid master */
void notifyMasterOfChange();
/**
* Checks if this block can be tied to this master
*
* @param world the world of master
* @param pos position of master
* @return whether the servant can be tied to this master
*/
boolean setPotentialMaster(IMasterLogic master, World world, BlockPos pos);
/**
* Used to set and verify that this is the block's master
*
* @param pos position of master
* @return Is this block tied to this master?
*/
boolean verifyMaster(IMasterLogic master, World world, BlockPos pos);
/**
* Exactly what it says on the tin
*
* @param pos position of master
*/
void invalidateMaster(IMasterLogic master, World world, BlockPos pos);
}