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();
|
|
|
|
|
2020-09-07 16:24:04 +02:00
|
|
|
/**
|
|
|
|
* @deprecated use {@link #getWorld()}
|
|
|
|
*/
|
|
|
|
@Deprecated
|
2016-12-04 15:03:01 +01:00
|
|
|
World getWorldObject();
|
|
|
|
|
2020-09-07 16:24:04 +02:00
|
|
|
World getWorld();
|
|
|
|
|
2016-12-04 15:03:01 +01:00
|
|
|
void extractEnergy(int amount);
|
|
|
|
|
|
|
|
int getEnergy();
|
|
|
|
}
|