Initial removal of itemblocks, wrench now drops the item with the nbt of the tile.
This is still WIP but mostly seems to work
This commit is contained in:
parent
d06bd5eef9
commit
6713cd6296
14 changed files with 39 additions and 421 deletions
|
@ -71,8 +71,8 @@ public class TileIndustrialCentrifuge extends TileGenericMachine implements ICon
|
|||
|
||||
// IListInfoProvider
|
||||
@Override
|
||||
public void addInfo(final List<String> info, final boolean isRealTile) {
|
||||
super.addInfo(info, isRealTile);
|
||||
public void addInfo(final List<String> info, final boolean isRealTile, boolean hasData) {
|
||||
super.addInfo(info, isRealTile, hasData);
|
||||
info.add("Round and round it goes");
|
||||
}
|
||||
}
|
|
@ -75,8 +75,8 @@ public class TilePump extends TilePowerAcceptor {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void addInfo(List<String> info, boolean isRealTile) {
|
||||
super.addInfo(info, isRealTile);
|
||||
public void addInfo(List<String> info, boolean isRealTile, boolean hasData) {
|
||||
super.addInfo(info, isRealTile, hasData);
|
||||
info.add(TextFormatting.LIGHT_PURPLE + "Eu per extract " + TextFormatting.GREEN
|
||||
+ PowerSystem.getLocaliszedPower(pumpExtractEU));
|
||||
info.add(TextFormatting.LIGHT_PURPLE + "Speed: " + TextFormatting.GREEN
|
||||
|
|
|
@ -125,8 +125,8 @@ public class TileQuantumTank extends TileMachineBase
|
|||
|
||||
// IListInfoProvider
|
||||
@Override
|
||||
public void addInfo(final List<String> info, final boolean isRealTile) {
|
||||
if (isRealTile) {
|
||||
public void addInfo(final List<String> info, final boolean isRealTile, boolean hasData) {
|
||||
if (isRealTile | hasData) {
|
||||
if (this.tank.getFluid() != null) {
|
||||
info.add(this.tank.getFluidAmount() + " of " + this.tank.getFluidType().getName());
|
||||
} else {
|
||||
|
|
|
@ -240,8 +240,8 @@ public class TileTechStorageBase extends TileMachineBase
|
|||
|
||||
// IListInfoProvider
|
||||
@Override
|
||||
public void addInfo(List<String> info, boolean isRealTile) {
|
||||
if (isRealTile) {
|
||||
public void addInfo(List<String> info, boolean isRealTile, boolean hasData) {
|
||||
if (isRealTile || hasData) {
|
||||
int size = 0;
|
||||
String name = "of nothing";
|
||||
if (!storedItem.isEmpty()) {
|
||||
|
|
|
@ -238,7 +238,7 @@ public class TileCable extends TileEntity
|
|||
|
||||
// IListInfoProvider
|
||||
@Override
|
||||
public void addInfo(List<String> info, boolean isRealTile) {
|
||||
public void addInfo(List<String> info, boolean isRealTile, boolean hasData) {
|
||||
if (isRealTile) {
|
||||
info.add(TextFormatting.GRAY + StringUtils.t("techreborn.tooltip.transferRate") + ": "
|
||||
+ TextFormatting.GOLD
|
||||
|
|
|
@ -123,7 +123,7 @@ public class TileSolarPanel extends TilePowerAcceptor implements IToolDrop {
|
|||
|
||||
// TODO: Translate
|
||||
@Override
|
||||
public void addInfo(List<String> info, boolean isRealTile) {
|
||||
public void addInfo(List<String> info, boolean isRealTile, boolean hasData) {
|
||||
info.add(TextFormatting.GRAY + "Internal Energy Storage: " + TextFormatting.GOLD
|
||||
+ PowerSystem.getLocaliszedPowerFormatted((int) getMaxPower()));
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@ public class TileTransformer extends TilePowerAcceptor
|
|||
|
||||
// IListInfoProvider
|
||||
@Override
|
||||
public void addInfo(List<String> info, boolean isRealTile) {
|
||||
public void addInfo(List<String> info, boolean isRealTile, boolean hasData) {
|
||||
info.add(TextFormatting.GRAY + "Input Rate: " + TextFormatting.GOLD + PowerSystem.getLocaliszedPowerFormatted((int) getMaxInput()));
|
||||
info.add(TextFormatting.GRAY + "Input Tier: " + TextFormatting.GOLD + StringUtils.toFirstCapitalAllLowercase(inputTier.toString()));
|
||||
info.add(TextFormatting.GRAY + "Output Rate: " + TextFormatting.GOLD + PowerSystem.getLocaliszedPowerFormatted((int) getMaxOutput()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue