Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
trainvoi committed Oct 23, 2024
1 parent c14a66a commit ef05713
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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<ITextComponent> 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
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/assets/susy/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef05713

Please sign in to comment.