Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
updated antimatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Sep 16, 2023
1 parent 8ad0e90 commit 2bfd9da
Show file tree
Hide file tree
Showing 16 changed files with 51 additions and 56 deletions.
2 changes: 1 addition & 1 deletion AntimatterAPI
Submodule AntimatterAPI updated 45 files
+2 −2 common/src/main/java/muramasa/antimatter/block/AntimatterItemBlock.java
+1 −2 common/src/main/java/muramasa/antimatter/blockentity/pipe/BlockEntityPipe.java
+2 −2 common/src/main/java/muramasa/antimatter/blockentity/single/BlockEntityTransformer.java
+2 −3 common/src/main/java/muramasa/antimatter/client/event/ClientEvents.java
+2 −3 common/src/main/java/muramasa/antimatter/cover/CoverOutput.java
+2 −3 common/src/main/java/muramasa/antimatter/cover/ICover.java
+1 −2 common/src/main/java/muramasa/antimatter/cover/ICoverGui.java
+3 −3 common/src/main/java/muramasa/antimatter/datagen/providers/AntimatterAdvancementProvider.java
+2 −2 common/src/main/java/muramasa/antimatter/gui/widget/ButtonWidget.java
+6 −7 common/src/main/java/muramasa/antimatter/gui/widget/FluidSlotWidget.java
+2 −2 common/src/main/java/muramasa/antimatter/gui/widget/MachineStateWidget.java
+2 −2 common/src/main/java/muramasa/antimatter/gui/widget/ProgressWidget.java
+2 −2 common/src/main/java/muramasa/antimatter/gui/widget/TextWidget.java
+2 −2 common/src/main/java/muramasa/antimatter/integration/jei/AntimatterJEIPlugin.java
+2 −2 common/src/main/java/muramasa/antimatter/integration/jei/category/MultiMachineInfoCategory.java
+6 −7 common/src/main/java/muramasa/antimatter/integration/jei/category/MultiMachineInfoPage.java
+14 −16 common/src/main/java/muramasa/antimatter/integration/jei/category/RecipeMapCategory.java
+6 −6 common/src/main/java/muramasa/antimatter/integration/jei/extension/JEIMaterialRecipeExtension.java
+4 −4 common/src/main/java/muramasa/antimatter/integration/rei/AntimatterREIClientPlugin.java
+2 −2 common/src/main/java/muramasa/antimatter/integration/rei/category/RecipeMapCategory.java
+14 −15 common/src/main/java/muramasa/antimatter/integration/rei/category/RecipeMapDisplay.java
+6 −6 common/src/main/java/muramasa/antimatter/integration/rei/extension/REIMaterialRecipeExtension.java
+1 −2 common/src/main/java/muramasa/antimatter/integration/top/EnergyInfoProvider.java
+2 −2 common/src/main/java/muramasa/antimatter/item/CoverMaterialItem.java
+13 −13 common/src/main/java/muramasa/antimatter/item/DebugScannerItem.java
+4 −5 common/src/main/java/muramasa/antimatter/item/ItemBattery.java
+2 −3 common/src/main/java/muramasa/antimatter/item/ItemFluidCell.java
+4 −6 common/src/main/java/muramasa/antimatter/machine/BlockMachine.java
+2 −2 common/src/main/java/muramasa/antimatter/machine/types/BasicMultiMachine.java
+3 −5 common/src/main/java/muramasa/antimatter/machine/types/Machine.java
+2 −2 common/src/main/java/muramasa/antimatter/machine/types/TankMachine.java
+1 −2 common/src/main/java/muramasa/antimatter/material/Material.java
+5 −7 common/src/main/java/muramasa/antimatter/material/MaterialItem.java
+9 −10 common/src/main/java/muramasa/antimatter/pipe/BlockCable.java
+6 −6 common/src/main/java/muramasa/antimatter/pipe/BlockFluidPipe.java
+6 −7 common/src/main/java/muramasa/antimatter/pipe/BlockItemPipe.java
+2 −2 common/src/main/java/muramasa/antimatter/pipe/PipeSize.java
+2 −2 common/src/main/java/muramasa/antimatter/recipe/map/IRecipeMap.java
+2 −2 common/src/main/java/muramasa/antimatter/registration/IItemBlockProvider.java
+3 −3 common/src/main/java/muramasa/antimatter/structure/FakeTileElement.java
+3 −3 common/src/main/java/muramasa/antimatter/structure/PatternBuilder.java
+4 −5 common/src/main/java/muramasa/antimatter/tool/IAntimatterTool.java
+3 −5 common/src/main/java/muramasa/antimatter/tool/behaviour/BehaviourAOEBreak.java
+9 −0 common/src/main/java/muramasa/antimatter/util/Utils.java
+2 −2 fabric/src/main/java/muramasa/antimatter/fluid/fabric/FluidAttributesVariantWrapper.java
4 changes: 2 additions & 2 deletions common/src/main/java/muramasa/gregtech/block/BlockCoil.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import muramasa.antimatter.block.BlockBasic;
import muramasa.antimatter.texture.Texture;
import muramasa.antimatter.util.Utils;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.TranslatableComponent;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.TooltipFlag;
import net.minecraft.world.level.BlockGetter;
Expand Down Expand Up @@ -45,7 +45,7 @@ public Texture[] getTextures() {
@Override
public void appendHoverText(ItemStack p_49816_, @Nullable BlockGetter p_49817_, List<Component> tooltip, TooltipFlag p_49819_) {
super.appendHoverText(p_49816_, p_49817_, tooltip, p_49819_);
tooltip.add(new TranslatableComponent("antimatter.tooltip.heat_capacity").append(": ").append(String.valueOf(this.coilData.heat)));
tooltip.add(Utils.translatable("antimatter.tooltip.heat_capacity").append(": ").append(String.valueOf(this.coilData.heat)));
}

public record CoilData(int heat, float percentage){}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
package muramasa.gregtech.blockentity.single;

import muramasa.antimatter.blockentity.BlockEntityMachine;
import muramasa.antimatter.capability.item.TrackedItemHandler;
import muramasa.antimatter.capability.machine.MachineEnergyHandler;
import muramasa.antimatter.capability.machine.MachineItemHandler;
import muramasa.antimatter.data.AntimatterDefaultTools;
import muramasa.antimatter.gui.*;
import muramasa.antimatter.gui.GuiInstance;
import muramasa.antimatter.gui.IGuiElement;
import muramasa.antimatter.gui.SlotType;
import muramasa.antimatter.gui.event.GuiEvents;
import muramasa.antimatter.gui.event.IGuiEvent;
import muramasa.antimatter.machine.event.ContentEvent;
import muramasa.antimatter.machine.types.Machine;
import muramasa.antimatter.blockentity.BlockEntityMachine;
import muramasa.antimatter.tool.AntimatterToolType;
import muramasa.antimatter.util.AntimatterPlatformUtils;
import muramasa.antimatter.util.Utils;
Expand All @@ -18,7 +20,6 @@
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.chat.TextComponent;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.InteractionResult;
Expand Down Expand Up @@ -60,7 +61,7 @@ public InteractionResult onInteractServer(BlockState state, Level world, BlockPo
if (hit.getDirection() == getFacing().getOpposite()){
stackLimit++;
if (stackLimit == 65) stackLimit = 1;
player.sendMessage(new TextComponent("Item Output Limit: " +stackLimit), player.getUUID());
player.sendMessage(Utils.literal("Item Output Limit: " +stackLimit), player.getUUID());
stack.hurt(1, world.random, (ServerPlayer) player);
return InteractionResult.SUCCESS;
}
Expand Down Expand Up @@ -131,12 +132,12 @@ public void onGuiEvent(IGuiEvent event, Player playerEntity) {
switch (data[1]) {
case 0 -> {
emitEnergy = !emitEnergy;
playerEntity.sendMessage(new TextComponent((emitEnergy ? "Emit energy to output side" : "Don't emit energy")), playerEntity.getUUID());
playerEntity.sendMessage(Utils.literal((emitEnergy ? "Emit energy to output side" : "Don't emit energy")), playerEntity.getUUID());
AntimatterPlatformUtils.markAndNotifyBlock(level, this.getBlockPos(), this.level.getChunkAt(this.getBlockPos()), this.getBlockState(), this.getBlockState(), 1, 512);
}
case 1 -> {
/*outputRedstone = !outputRedstone;
playerEntity.sendMessage(new TextComponent((outputRedstone ? "Emit redstone if slots contain something" : "Don't emit redstone")), playerEntity.getUUID());
playerEntity.sendMessage(Utils.literal((outputRedstone ? "Emit redstone if slots contain something" : "Don't emit redstone")), playerEntity.getUUID());
AntimatterPlatformUtils.markAndNotifyBlock(level, this.getBlockPos(), this.level.getChunkAt(this.getBlockPos()), this.getBlockState(), this.getBlockState(), 1, 512);*/
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.chat.TextComponent;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
Expand Down Expand Up @@ -74,26 +73,26 @@ public void onGuiEvent(IGuiEvent event, Player playerEntity) {
switch (data[1]) {
case 0:
emitEnergy = !emitEnergy;
playerEntity.sendMessage(new TextComponent( (emitEnergy ? "Emit energy to output side" : "Don't emit energy")), playerEntity.getUUID());
playerEntity.sendMessage(Utils.literal( (emitEnergy ? "Emit energy to output side" : "Don't emit energy")), playerEntity.getUUID());
AntimatterPlatformUtils.markAndNotifyBlock(level, this.getBlockPos(), this.level.getChunkAt(this.getBlockPos()), this.getBlockState(), this.getBlockState(), 1, 512);
break;
case 1:
outputRedstone = !outputRedstone;
playerEntity.sendMessage(new TextComponent( (outputRedstone ? "Emit redstone if slots contain something" : "Don't emit redstone")), playerEntity.getUUID());
playerEntity.sendMessage(Utils.literal( (outputRedstone ? "Emit redstone if slots contain something" : "Don't emit redstone")), playerEntity.getUUID());
AntimatterPlatformUtils.markAndNotifyBlock(level, this.getBlockPos(), this.level.getChunkAt(this.getBlockPos()), this.getBlockState(), this.getBlockState(), 1, 512);
break;
case 2:
invertRedstone = !invertRedstone;
playerEntity.sendMessage(new TextComponent( (invertRedstone ? "I" : "Don't i") + "nvert redstone"), playerEntity.getUUID());
playerEntity.sendMessage(Utils.literal( (invertRedstone ? "I" : "Don't i") + "nvert redstone"), playerEntity.getUUID());
AntimatterPlatformUtils.markAndNotifyBlock(level, this.getBlockPos(), this.level.getChunkAt(this.getBlockPos()), this.getBlockState(), this.getBlockState(), 1, 512);
break;
case 3:
blacklist = !blacklist;
playerEntity.sendMessage(new TextComponent( (blacklist ? "I" : "Don't i") + "nvert filter"), playerEntity.getUUID());
playerEntity.sendMessage(Utils.literal( (blacklist ? "I" : "Don't i") + "nvert filter"), playerEntity.getUUID());
break;
case 4:
nbt = !nbt;
playerEntity.sendMessage(new TextComponent( (nbt ? "NBT has to match" : "Ignore NBT")), playerEntity.getUUID());
playerEntity.sendMessage(Utils.literal( (nbt ? "NBT has to match" : "Ignore NBT")), playerEntity.getUUID());
break;
}
}
Expand Down
10 changes: 5 additions & 5 deletions common/src/main/java/muramasa/gregtech/cover/CoverShutter.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import muramasa.antimatter.data.AntimatterDefaultTools;
import muramasa.antimatter.machine.Tier;
import muramasa.antimatter.tool.AntimatterToolType;
import muramasa.antimatter.util.Utils;
import net.minecraft.core.Direction;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.chat.TextComponent;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.player.Player;
Expand Down Expand Up @@ -63,19 +63,19 @@ public boolean onInteract(Player player, InteractionHand hand, Direction side, @
pipe.setConnection(this.side);
}
}
player.sendMessage(new TextComponent("Open if work disabled"), player.getUUID());
player.sendMessage(Utils.literal("Open if work disabled"), player.getUUID());
}
case OUTPUT_ONLY -> {
if (handler.getTile() instanceof BlockEntityPipe<?> pipe){
pipe.setConnection(this.side);
}
player.sendMessage(new TextComponent("Output only"), player.getUUID());
player.sendMessage(Utils.literal("Output only"), player.getUUID());
}
case INPUT_ONLY -> {
if (handler.getTile() instanceof BlockEntityPipe<?> pipe){
pipe.setConnection(this.side);
}
player.sendMessage(new TextComponent("Input only"), player.getUUID());
player.sendMessage(Utils.literal("Input only"), player.getUUID());
}
case OPEN_REDSTONE -> {
if (handler.getTile() instanceof BlockEntityPipe<?> pipe){
Expand All @@ -86,7 +86,7 @@ public boolean onInteract(Player player, InteractionHand hand, Direction side, @

}
}
player.sendMessage(new TextComponent("Open if work enabled"), player.getUUID());
player.sendMessage(Utils.literal("Open if work enabled"), player.getUUID());
}
}
return true;
Expand Down
20 changes: 9 additions & 11 deletions common/src/main/java/muramasa/gregtech/data/Machines.java
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
package muramasa.gregtech.data;

import com.google.common.collect.ImmutableMap;

import io.github.gregtechintergalactical.gtutility.GTUtilityData;
import io.github.gregtechintergalactical.gtutility.machine.DrumMachine;
import muramasa.antimatter.blockentity.single.BlockEntityBatteryBuffer;
import muramasa.antimatter.blockentity.single.BlockEntityDigitalTransformer;
import muramasa.antimatter.blockentity.single.BlockEntityTransformer;
import muramasa.antimatter.data.AntimatterMaterials;
import muramasa.antimatter.machine.Tier;
import muramasa.antimatter.machine.types.*;
import muramasa.antimatter.material.Material;
import muramasa.antimatter.texture.Texture;
import muramasa.antimatter.blockentity.single.BlockEntityTransformer;
import muramasa.antimatter.util.Utils;
import muramasa.gregtech.GTIRef;
import muramasa.gregtech.blockentity.multi.*;
import muramasa.gregtech.blockentity.single.*;
import muramasa.gregtech.machine.MultiblockTankMachine;
import muramasa.gregtech.machine.SteamMachine;
import muramasa.gregtech.nuclear.BlockEntityNuclearReactor;
import muramasa.gregtech.blockentity.multi.*;
import muramasa.gregtech.blockentity.single.*;
import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.TextComponent;
import net.minecraft.network.chat.TranslatableComponent;
import net.minecraft.sounds.SoundEvents;

import static muramasa.antimatter.Data.*;
Expand Down Expand Up @@ -145,11 +143,11 @@ public class Machines {
tooltip.remove(tooltip.size() - 1);
tooltip.remove(tooltip.size() - 1);
Tier upper = Tier.getTier(machine.getTier().getVoltage() * 4);
tooltip.add(new TranslatableComponent("machine.transformer.voltage_info", new TextComponent(upper.getId().toUpperCase()), new TextComponent(machine.getTier().getId().toUpperCase())));
tooltip.add(new TranslatableComponent("machine.voltage.in").append(": ").append(new TextComponent(upper.getVoltage() + " (" + upper.getId().toUpperCase() + ")")).withStyle(ChatFormatting.GREEN));
tooltip.add(new TranslatableComponent("machine.voltage.out").append(": ").append(new TextComponent(machine.getTier().getVoltage() + " (" + machine.getTier().getId().toUpperCase() + ")")).withStyle(ChatFormatting.GREEN));
tooltip.add(new TranslatableComponent("generic.amp").append(": ").append(new TextComponent(String.valueOf(4)).withStyle(ChatFormatting.YELLOW)));
tooltip.add(new TranslatableComponent("machine.power.capacity").append(": ").append(new TextComponent(String.valueOf(512L + machine.getTier().getVoltage() * 8L))).withStyle(ChatFormatting.BLUE));
tooltip.add(Utils.translatable("machine.transformer.voltage_info", Utils.literal(upper.getId().toUpperCase()), Utils.literal(machine.getTier().getId().toUpperCase())));
tooltip.add(Utils.translatable("machine.voltage.in").append(": ").append(Utils.literal(upper.getVoltage() + " (" + upper.getId().toUpperCase() + ")")).withStyle(ChatFormatting.GREEN));
tooltip.add(Utils.translatable("machine.voltage.out").append(": ").append(Utils.literal(machine.getTier().getVoltage() + " (" + machine.getTier().getId().toUpperCase() + ")")).withStyle(ChatFormatting.GREEN));
tooltip.add(Utils.translatable("generic.amp").append(": ").append(Utils.literal(String.valueOf(4)).withStyle(ChatFormatting.YELLOW)));
tooltip.add(Utils.translatable("machine.power.capacity").append(": ").append(Utils.literal(String.valueOf(512L + machine.getTier().getVoltage() * 8L))).withStyle(ChatFormatting.BLUE));
});
public static BasicMachine ADJUSTABLE_TRANSFORMER = new BasicMachine(GTIRef.ID, "adjustable_transformer").setTiers(EV, IV).addFlags(GUI, ENERGY).setTile(BlockEntityDigitalTransformer::new).noCovers().allowFrontIO();
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
import muramasa.antimatter.gui.widget.WidgetSupplier;
import muramasa.antimatter.integration.jeirei.AntimatterJEIREIPlugin;
import muramasa.antimatter.mixin.client.AbstractContainerScreenAccessor;
import muramasa.antimatter.util.Utils;
import muramasa.gregtech.blockentity.single.BlockEntityCoalBoiler;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.network.chat.TextComponent;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
Expand Down Expand Up @@ -62,7 +62,7 @@ public void mouseOver(PoseStack stack, double mouseX, double mouseY, float parti
@Environment(EnvType.CLIENT)
protected void renderTooltip(PoseStack matrixStack, String text, double mouseX, double mouseY, int x, int y, int w, int h) {
if (isInside(x, y, w, h, mouseX, mouseY)){
renderTooltip(matrixStack, new TextComponent(text), mouseX, mouseY);
renderTooltip(matrixStack, Utils.literal(text), mouseX, mouseY);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import muramasa.antimatter.gui.container.ContainerMachine;
import muramasa.antimatter.gui.widget.WidgetSupplier;
import muramasa.antimatter.mixin.client.AbstractContainerScreenAccessor;
import muramasa.antimatter.util.Utils;
import muramasa.gregtech.blockentity.single.BlockEntityCoalBoiler;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.network.chat.TextComponent;
import tesseract.TesseractGraphWrappers;

import javax.annotation.Nonnull;
Expand Down Expand Up @@ -94,7 +94,7 @@ public void mouseOver(PoseStack stack, double mouseX, double mouseY, float parti
@Environment(EnvType.CLIENT)
protected void renderTooltip(PoseStack matrixStack, String text, double mouseX, double mouseY, int x, int y, int w, int h) {
if (isInside(x, y, w, h, mouseX, mouseY)){
renderTooltip(matrixStack, new TextComponent(text), mouseX, mouseY);
renderTooltip(matrixStack, Utils.literal(text), mouseX, mouseY);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import muramasa.antimatter.gui.Widget;
import muramasa.antimatter.gui.widget.WidgetSupplier;
import muramasa.antimatter.integration.jeirei.AntimatterJEIREIPlugin;
import muramasa.antimatter.util.Utils;
import muramasa.gregtech.GTIRef;
import muramasa.gregtech.blockentity.multi.BlockEntityFusionReactor;
import net.minecraft.network.chat.TranslatableComponent;
import net.minecraft.resources.ResourceLocation;

import javax.annotation.Nonnull;
Expand Down Expand Up @@ -53,7 +53,7 @@ public boolean mouseClicked(double mouseX, double mouseY, int button) {
public void mouseOver(PoseStack stack, double mouseX, double mouseY, float partialTicks) {
super.mouseOver(stack, mouseX, mouseY, partialTicks);
if (isInside(154, 4, 18, 18, mouseX, mouseY)){
renderTooltip(stack, new TranslatableComponent("antimatter.gui.show_recipes"), mouseX, mouseY);
renderTooltip(stack, Utils.translatable("antimatter.gui.show_recipes"), mouseX, mouseY);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import muramasa.antimatter.gui.container.ContainerMachine;
import muramasa.antimatter.gui.widget.WidgetSupplier;
import muramasa.antimatter.mixin.client.AbstractContainerScreenAccessor;
import muramasa.antimatter.util.Utils;
import muramasa.gregtech.blockentity.single.BlockEntityLavaBoiler;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.network.chat.TextComponent;
import tesseract.TesseractGraphWrappers;

import javax.annotation.Nonnull;
Expand Down Expand Up @@ -111,7 +111,7 @@ public void mouseOver(PoseStack stack, double mouseX, double mouseY, float parti
@Environment(EnvType.CLIENT)
protected void renderTooltip(PoseStack matrixStack, String text, double mouseX, double mouseY, int x, int y, int w, int h) {
if (isInside(x, y, w, h, mouseX, mouseY)){
renderTooltip(matrixStack, new TextComponent(text), mouseX, mouseY);
renderTooltip(matrixStack, Utils.literal(text), mouseX, mouseY);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import muramasa.antimatter.gui.container.ContainerMachine;
import muramasa.antimatter.gui.widget.WidgetSupplier;
import muramasa.antimatter.mixin.client.AbstractContainerScreenAccessor;
import muramasa.antimatter.util.Utils;
import muramasa.gregtech.blockentity.single.BlockEntitySolarBoiler;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.network.chat.TextComponent;
import tesseract.TesseractGraphWrappers;

import javax.annotation.Nonnull;
Expand Down Expand Up @@ -105,7 +105,7 @@ public void mouseOver(PoseStack stack, double mouseX, double mouseY, float parti
@Environment(EnvType.CLIENT)
protected void renderTooltip(PoseStack matrixStack, String text, double mouseX, double mouseY, int x, int y, int w, int h) {
if (isInside(x, y, w, h, mouseX, mouseY)){
renderTooltip(matrixStack, new TextComponent(text), mouseX, mouseY);
renderTooltip(matrixStack, Utils.literal(text), mouseX, mouseY);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
import muramasa.antimatter.pipe.types.FluidPipe;
import muramasa.antimatter.pipe.types.ItemPipe;
import muramasa.antimatter.pipe.types.Wire;
import muramasa.antimatter.util.Utils;
import muramasa.gregtech.GTIRef;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.Font;
import net.minecraft.client.gui.GuiComponent;
import net.minecraft.client.renderer.GameRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.TranslatableComponent;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
Expand All @@ -43,7 +43,7 @@

public class MaterialTreeCategory implements DisplayCategory<MaterialTreeDisplay> {
protected static Renderer icon = EntryStacks.of(DUST.get(AntimatterMaterials.Iron));
private static final Component title = new TranslatableComponent(GTIRef.ID + ".rei.tooltip.material_tree");
private static final Component title = Utils.translatable(GTIRef.ID + ".rei.tooltip.material_tree");
static CategoryIdentifier<? extends MaterialTreeDisplay> id = CategoryIdentifier.of(GTIRef.ID, "material_tree");

@Override
Expand Down
Loading

0 comments on commit 2bfd9da

Please sign in to comment.