2016-12-04 15:03:01 +01:00
|
|
|
/*
|
|
|
|
* This file ("IEnergyTile.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
|
|
|
|
*
|
2017-01-01 16:23:26 +01:00
|
|
|
* © 2015-2017 Ellpeck
|
2016-12-04 15:03:01 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
package de.ellpeck.actuallyadditions.api.internal;
|
|
|
|
|
2017-02-20 13:19:19 +01:00
|
|
|
import net.minecraft.util.math.BlockPos;
|
2016-12-04 15:03:01 +01:00
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This is not supposed to be implemented.
|
|
|
|
* Can be cast to TileEntity.
|
|
|
|
*/
|
2019-05-02 09:10:29 +02:00
|
|
|
public interface IEnergyTile {
|
2016-12-04 15:03:01 +01:00
|
|
|
|
2017-02-20 13:19:19 +01:00
|
|
|
BlockPos getPosition();
|
|
|
|
|
2016-12-04 15:03:01 +01:00
|
|
|
int getX();
|
|
|
|
|
|
|
|
int getY();
|
|
|
|
|
|
|
|
int getZ();
|
|
|
|
|
2018-09-26 08:52:40 +02:00
|
|
|
//TODO: Rename to getWorld
|
2016-12-04 15:03:01 +01:00
|
|
|
World getWorldObject();
|
|
|
|
|
|
|
|
void extractEnergy(int amount);
|
|
|
|
|
|
|
|
int getEnergy();
|
|
|
|
}
|