diff --git a/src/main/java/supersymmetry/common/metatileentities/multi/electric/MetaTileEntityLargeFluidPump.java b/src/main/java/supersymmetry/common/metatileentities/multi/electric/MetaTileEntityLargeFluidPump.java index 3675dcd5d..5b1695491 100644 --- a/src/main/java/supersymmetry/common/metatileentities/multi/electric/MetaTileEntityLargeFluidPump.java +++ b/src/main/java/supersymmetry/common/metatileentities/multi/electric/MetaTileEntityLargeFluidPump.java @@ -1,5 +1,6 @@ package supersymmetry.common.metatileentities.multi.electric; +import gregtech.api.GTValues; import gregtech.api.capability.impl.MultiblockRecipeLogic; import gregtech.api.metatileentity.MetaTileEntity; import gregtech.api.metatileentity.interfaces.IGregTechTileEntity; @@ -11,6 +12,7 @@ import gregtech.api.pattern.FactoryBlockPattern; import gregtech.api.recipes.Recipe; import gregtech.api.unification.material.Materials; +import gregtech.api.util.GTUtility; import gregtech.api.util.RelativeDirection; import gregtech.client.renderer.ICubeRenderer; import gregtech.client.renderer.texture.Textures; @@ -25,6 +27,10 @@ import net.minecraft.util.EnumFacing; import net.minecraft.util.ResourceLocation; import net.minecraft.util.math.BlockPos; +import net.minecraft.util.text.ITextComponent; +import net.minecraft.util.text.Style; +import net.minecraft.util.text.TextComponentTranslation; +import net.minecraft.util.text.TextFormatting; import net.minecraft.world.World; import org.jetbrains.annotations.NotNull; import supersymmetry.api.recipes.SuSyRecipeMaps; @@ -112,6 +118,27 @@ public void addInformation(ItemStack stack, @Nullable World player, @NotNull Lis super.addInformation(stack, player, tooltip, advanced); tooltip.add(TooltipHelper.RAINBOW_SLOW + I18n.format("gregtech.machine.perfect_oc", new Object[0])); } + @Override + protected void addDisplayText(List textList) { + super.addDisplayText(textList); + EnumFacing leftSide = RelativeDirection.LEFT + .getRelativeFacing( + getFrontFacing(), + getUpwardsFacing(), + isFlipped() + ); + EnumFacing backSide = RelativeDirection.BACK + .getRelativeFacing( + getFrontFacing(), + getUpwardsFacing(), + isFlipped() + ); + BlockPos tempPos = this.getPos().offset(leftSide, 4).offset(backSide); + int yLevel = getPos().getY(); + String biome = getWorld().getBiome(tempPos).biomeName; + textList.add(new TextComponentTranslation("susy.large_fluid_pump.y_level", yLevel).setStyle(new Style().setColor(TextFormatting.YELLOW))); + textList.add(new TextComponentTranslation("susy.large_fluid_pump.biome", biome).setStyle(new Style().setColor(TextFormatting.YELLOW))); + } @Nonnull @Override diff --git a/src/main/resources/assets/susy/lang/en_us.lang b/src/main/resources/assets/susy/lang/en_us.lang index 45315d1be..3ea4a2b36 100644 --- a/src/main/resources/assets/susy/lang/en_us.lang +++ b/src/main/resources/assets/susy/lang/en_us.lang @@ -802,6 +802,8 @@ susy.ocean_pumper.full=Tanks are Full! susy.ocean_pumper.drainrate=Current Pumping Rate: %s susy.wrongbiome=Machine can not work in this biome! susy.weather_resistance=ยง2Will not explode from water, lava, fire or rain. +susy.large_fluid_pump.y_level=Current Controller Y level: Y= +susy.large_fluid_pump.biome=Current bottom Pipe Casing biome: # Latex Logs gregtech.block_group_members.latex_logs.name=Rubber Log