2015-08-29 14:33:25 +02:00
|
|
|
/*
|
|
|
|
* 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://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2015-11-02 20:55:19 +01:00
|
|
|
* © 2015 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2015-08-10 10:37:44 +02:00
|
|
|
package ellpeck.actuallyadditions.tile;
|
|
|
|
|
|
|
|
import ellpeck.actuallyadditions.util.WorldPos;
|
|
|
|
|
|
|
|
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
|
|
|
|
*/
|
|
|
|
WorldPos getBoundPosition();
|
|
|
|
|
2015-10-03 10:16:18 +02:00
|
|
|
void setBoundPosition(WorldPos pos);
|
|
|
|
|
2015-08-10 10:37:44 +02:00
|
|
|
/**
|
|
|
|
* @return The ID of the GUI it opens, -1 if none
|
|
|
|
*/
|
|
|
|
int getGuiID();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return The range the tile currently has
|
|
|
|
*/
|
|
|
|
int getRange();
|
|
|
|
}
|