mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-23 03:49:22 +01:00
Made player interface display the amount of RF it has
This commit is contained in:
parent
22e886ded2
commit
1547fdaa9e
1 changed files with 11 additions and 1 deletions
|
@ -20,7 +20,7 @@ import net.minecraft.util.EnumFacing;
|
|||
|
||||
import java.util.UUID;
|
||||
|
||||
public class TileEntityPlayerInterface extends TileEntityInventoryBase implements IEnergyReceiver{
|
||||
public class TileEntityPlayerInterface extends TileEntityInventoryBase implements IEnergyReceiver, IEnergyDisplay{
|
||||
|
||||
public static final int DEFAULT_RANGE = 32;
|
||||
public UUID connectedPlayer;
|
||||
|
@ -206,4 +206,14 @@ public class TileEntityPlayerInterface extends TileEntityInventoryBase implement
|
|||
public boolean canExtractItem(int slot, ItemStack stack, EnumFacing side){
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getEnergy(){
|
||||
return this.storage.getEnergyStored();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxEnergy(){
|
||||
return this.storage.getMaxEnergyStored();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue