/* * This file ("IPhantomTile.java") is part of the Actually Additions Mod for Minecraft. * It is created and owned by Ellpeck and distributed * under the Actually Additions License to be found at * http://ellpeck.de/actaddlicense/ * View the source code at https://github.com/Ellpeck/ActuallyAdditions * * © 2016 Ellpeck */ package de.ellpeck.actuallyadditions.api.tile; import de.ellpeck.actuallyadditions.api.Position; /** * Extending this will cause a TileEntity to be able to be connected via a Phantom Connector */ public interface IPhantomTile{ /** * @return If the Phantom Tile is currently bound to anything */ boolean hasBoundPosition(); /** * @return If the Phantom Tile's bound position is in range */ boolean isBoundThingInRange(); /** * @return The position this tile is bound to */ Position getBoundPosition(); /** * Sets the bound position */ void setBoundPosition(Position pos); /** * @return The ID of the GUI it opens, -1 if none */ int getGuiID(); /** * @return The range the tile currently has */ int getRange(); }