Skip to content

Commit

Permalink
Copy the PRASS description from GT:NH (#17)
Browse files Browse the repository at this point in the history
* init

* Description
  • Loading branch information
Zorbatron authored Sep 9, 2024
1 parent de3dfe1 commit bec194c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,18 @@
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.resources.I18n;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.network.PacketBuffer;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TextFormatting;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import com.zorbatron.zbgt.api.ZBGTAPI;
import com.zorbatron.zbgt.api.metatileentity.LaserCapableMultiMapMultiblockController;
Expand Down Expand Up @@ -263,6 +266,17 @@ public boolean checkRecipe(@NotNull Recipe recipe, boolean consumeIfSuccess) {
return getRecipeMapIndex() == supposedRecipeMap;
}

@Override
public void addInformation(ItemStack stack, @Nullable World player, List<String> tooltip, boolean advanced) {
super.addInformation(stack, player, tooltip, advanced);

tooltip.add(I18n.format("zbgt.machine.precise_assembler.tooltip.1"));
tooltip.add(I18n.format("zbgt.machine.precise_assembler.tooltip.2"));
tooltip.add(I18n.format("zbgt.machine.precise_assembler.tooltip.3"));
tooltip.add(I18n.format("zbgt.machine.precise_assembler.tooltip.4"));
tooltip.add(I18n.format("zbgt.machine.precise_assembler.tooltip.5"));
}

protected class PreciseAssemblerRecipeLogic extends MultiblockRecipeLogic {

public PreciseAssemblerRecipeLogic(RecipeMapMultiblockController tileEntity) {
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/assets/zbgt/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ zbgt.machine.mega_abs.name=Mega Alloy Blast Smelter (mABS)
zbgt.machine.mega_abs.tooltip=Mix and melt everything!

zbgt.machine.precise_assembler.name=Precise Assembler (PRASS)
zbgt.machine.precise_assembler.tooltip.1=Recipe voltage limited to the tier of the machine casings.
zbgt.machine.precise_assembler.tooltip.2=UHV machine casings remove the above limit.
zbgt.machine.precise_assembler.tooltip.3=Gains a 100%% speed boost in the normal assembler mode.
zbgt.machine.precise_assembler.tooltip.4=Gains parallels based on the precise casing tier.
zbgt.machine.precise_assembler.tooltip.5=Parallels = 16 * 2^(casing tier), with imprecise casings being tier 0.
zbgt.machine.precise_assembler.precise_casing.tier=Casing tier: %s
zbgt.machine.precise_assembler.precise_casing.tier.hover=Highest precise tier recipe that can be run
zbgt.machine.precise_assembler.machine_casing.tier=Machine casing tier: %s
Expand Down

0 comments on commit bec194c

Please sign in to comment.