mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 12:32:23 +00:00
remove isPoweredTile
This commit is contained in:
1 parent
a8f4cf0e5c
commit
730c08332e
1 file changed
-15
@@ -147,21 +147,6 @@ public class BlockUtil {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated To be removed when MJ is gone. Use {@link #isRFTile} for now.
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean isPoweredTile(ForgeDirection side, TileEntity tile) {
|
||||
if (tile == null)
|
||||
return false;
|
||||
|
||||
if (!(tile instanceof IPowerReceptor))
|
||||
return false;
|
||||
|
||||
IPowerReceptor receptor = (IPowerReceptor) tile;
|
||||
return receptor.getPowerReceiver(side) != null;
|
||||
}
|
||||
|
||||
public static boolean isRFTile(ForgeDirection side, TileEntity tile) {
|
||||
if (tile == null)
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user