ActuallyAdditions/src/main/java/powercrystals/minefactoryreloaded/api/rednet/IRedNetInfo.java
2015-05-22 17:48:50 +02:00

29 lines
1,011 B
Java

package powercrystals.minefactoryreloaded.api.rednet;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.IChatComponent;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.common.util.ForgeDirection;
import java.util.List;
/**
* Defines a Block that can print information about itself using the RedNet Meter. This must be implemented on your Block class.
*/
public interface IRedNetInfo
{
/**
* This function appends information to a list provided to it.
*
* @param world Reference to the world.
* @param x X coordinate of the block.
* @param y Y coordinate of the block.
* @param z Z coordinate of the block.
* @param side The side of the block that is being queried.
* @param player Player doing the querying - this can be NULL.
* @param info The list that the information should be appended to.
*/
public void getRedNetInfo(IBlockAccess world, int x, int y, int z,
ForgeDirection side, EntityPlayer player, List<IChatComponent> info);
}