Just lang things

This commit is contained in:
Flanks255 2024-06-01 13:22:02 -05:00
parent eb7963631f
commit cf0349b102
46 changed files with 116 additions and 126 deletions

View file

@ -32,13 +32,13 @@ public class CoffeeIngredientGenerator extends RecipeProvider {
@Override @Override
protected void buildRecipes(@Nonnull RecipeOutput recipeOutput) { protected void buildRecipes(@Nonnull RecipeOutput recipeOutput) {
buildIngredient(recipeOutput, Items.MILK_BUCKET, 0, "jei." + ActuallyAdditions.MODID + ".coffee.extra.milk"); buildIngredient(recipeOutput, Items.MILK_BUCKET, 0, "jei.actuallyadditions.coffee.extra.milk");
//Pam's puts milk in a tag, so we'll use that //Pam's puts milk in a tag, so we'll use that
TagKey<Item> milkTag = ItemTags.create(new ResourceLocation("forge", "milk")); TagKey<Item> milkTag = ItemTags.create(new ResourceLocation("forge", "milk"));
RecipeOutput tagOutput = recipeOutput.withConditions(new NotCondition(new TagEmptyCondition(milkTag.location()))); RecipeOutput tagOutput = recipeOutput.withConditions(new NotCondition(new TagEmptyCondition(milkTag.location())));
buildIngredient(tagOutput, new ResourceLocation(ActuallyAdditions.MODID, "coffee_ingredient/milk_tagged"), buildIngredient(tagOutput, new ResourceLocation(ActuallyAdditions.MODID, "coffee_ingredient/milk_tagged"),
Ingredient.of(milkTag), 0, "jei." + ActuallyAdditions.MODID + ".coffee.extra.milk"); Ingredient.of(milkTag), 0, "jei.actuallyadditions.coffee.extra.milk");
buildIngredient(recipeOutput, Items.SUGAR, 4, new MobEffectInstance(MobEffects.MOVEMENT_SPEED, 30, 0)); buildIngredient(recipeOutput, Items.SUGAR, 4, new MobEffectInstance(MobEffects.MOVEMENT_SPEED, 30, 0));
buildIngredient(recipeOutput, Items.MAGMA_CREAM, 2, new MobEffectInstance(MobEffects.FIRE_RESISTANCE, 20, 0)); buildIngredient(recipeOutput, Items.MAGMA_CREAM, 2, new MobEffectInstance(MobEffects.FIRE_RESISTANCE, 20, 0));

View file

@ -184,7 +184,7 @@ public class BlockAtomicReconstructor extends FullyDirectionalBlock.Container im
energy = BET.getInt("Energy"); energy = BET.getInt("Energy");
} }
NumberFormat format = NumberFormat.getInstance(); NumberFormat format = NumberFormat.getInstance();
pTooltip.add(Component.translatable("misc.actuallyadditions.power_single", format.format(energy))); pTooltip.add(Component.translatable("misc.actuallyadditions.power_single", format.format(energy)).withStyle(ChatFormatting.GRAY));
if (BET.contains("IsPulseMode")) { if (BET.contains("IsPulseMode")) {
pTooltip.add(Component.translatable("info.actuallyadditions.redstoneMode").append(": ") pTooltip.add(Component.translatable("info.actuallyadditions.redstoneMode").append(": ")

View file

@ -175,9 +175,9 @@
// ? ((BlockGiantChest) this.block).type // ? ((BlockGiantChest) this.block).type
// : -1; // : -1;
// if (type == 2) { // if (type == 2) {
// tooltip.add(TextFormatting.ITALIC + StringUtil.localize("container." + ActuallyAdditions.MODID + ".giantChestLarge.desc")); // tooltip.add(TextFormatting.ITALIC + StringUtil.localize("container.actuallyadditions.giantChestLarge.desc"));
// } else if (type == 0) { // } else if (type == 0) {
// tooltip.add(TextFormatting.ITALIC + StringUtil.localize("container." + ActuallyAdditions.MODID + ".giantChest.desc")); // tooltip.add(TextFormatting.ITALIC + StringUtil.localize("container.actuallyadditions.giantChest.desc"));
// } // }
// } // }
// //

View file

@ -221,7 +221,7 @@ public class BlockLaserRelay extends FullyDirectionalBlock.Container implements
if (compass) { if (compass) {
expl = relay.getCompassDisplayString(); expl = relay.getCompassDisplayString();
} else { } else {
expl = Component.translatable("info." + ActuallyAdditions.MODID + ".laserRelay.mode.noCompasss", Component.translatable(CommonConfig.Other.relayConfigureItem.getDescriptionId()).getString()).withStyle(ChatFormatting.GRAY, ChatFormatting.ITALIC); expl = Component.translatable("info.actuallyadditions.laserRelay.mode.noCompasss", Component.translatable(CommonConfig.Other.relayConfigureItem.getDescriptionId()).getString()).withStyle(ChatFormatting.GRAY, ChatFormatting.ITALIC);
} }
guiGraphics.drawString(minecraft.font, expl, (int) (resolution.getGuiScaledWidth() / 2f + 5), (int) (resolution.getGuiScaledHeight() / 2f + 15), 0xFFFFFF); guiGraphics.drawString(minecraft.font, expl, (int) (resolution.getGuiScaledWidth() / 2f + 5), (int) (resolution.getGuiScaledHeight() / 2f + 15), 0xFFFFFF);

View file

@ -65,9 +65,9 @@ public class BlockLavaFactoryController extends DirectionalBlock.Container imple
if (factory != null) { if (factory != null) {
int state = factory.isMultiblock(); int state = factory.isMultiblock();
if (state == TileEntityLavaFactoryController.NOT_MULTI) { if (state == TileEntityLavaFactoryController.NOT_MULTI) {
guiGraphics.drawWordWrap(minecraft.font, Component.translatable("tooltip." + ActuallyAdditions.MODID + ".factory.notPart.desc"), resolution.getGuiScaledWidth() / 2 + 5, resolution.getGuiScaledHeight() / 2 + 5, 200, 0xFFFFFF); guiGraphics.drawWordWrap(minecraft.font, Component.translatable("tooltip.actuallyadditions.factory.notPart.desc"), resolution.getGuiScaledWidth() / 2 + 5, resolution.getGuiScaledHeight() / 2 + 5, 200, 0xFFFFFF);
} else if (state == TileEntityLavaFactoryController.HAS_AIR || state == TileEntityLavaFactoryController.HAS_LAVA) { } else if (state == TileEntityLavaFactoryController.HAS_AIR || state == TileEntityLavaFactoryController.HAS_LAVA) {
guiGraphics.drawWordWrap(minecraft.font, Component.translatable("tooltip." + ActuallyAdditions.MODID + ".factory.working.desc"), resolution.getGuiScaledWidth() / 2 + 5, resolution.getGuiScaledHeight() / 2 + 5, 200, 0xFFFFFF); guiGraphics.drawWordWrap(minecraft.font, Component.translatable("tooltip.actuallyadditions.factory.working.desc"), resolution.getGuiScaledWidth() / 2 + 5, resolution.getGuiScaledHeight() / 2 + 5, 200, 0xFFFFFF);
} }
} }
} }

View file

@ -148,7 +148,7 @@ public class BlockPhantom extends BlockContainerBase implements IHudDisplay {
BlockEntity tile = minecraft.level.getBlockEntity(pos); BlockEntity tile = minecraft.level.getBlockEntity(pos);
if (tile != null) { if (tile != null) {
if (tile instanceof IPhantomTile phantom) { if (tile instanceof IPhantomTile phantom) {
guiGraphics.drawString(minecraft.font, Component.translatable("tooltip." + ActuallyAdditions.MODID + ".blockPhantomRange.desc").append(": " + phantom.getRange()).withStyle(ChatFormatting.GOLD), resolution.getGuiScaledWidth() / 2 + 5, resolution.getGuiScaledHeight() / 2 - 40, ChatFormatting.WHITE.getColor()); guiGraphics.drawString(minecraft.font, Component.translatable("tooltip.actuallyadditions.blockPhantomRange.desc").append(": " + phantom.getRange()).withStyle(ChatFormatting.GOLD), resolution.getGuiScaledWidth() / 2 + 5, resolution.getGuiScaledHeight() / 2 - 40, ChatFormatting.WHITE.getColor());
if (phantom.hasBoundPosition()) { if (phantom.hasBoundPosition()) {
int distance = Mth.ceil(new Vec3(pos.getX(), pos.getY(), pos.getZ()).distanceTo(new Vec3(phantom.getBoundPosition().getX(), phantom.getBoundPosition().getY(), phantom.getBoundPosition().getZ()))); int distance = Mth.ceil(new Vec3(pos.getX(), pos.getY(), pos.getZ()).distanceTo(new Vec3(phantom.getBoundPosition().getX(), phantom.getBoundPosition().getY(), phantom.getBoundPosition().getZ())));
BlockState state = minecraft.level.getBlockState(phantom.getBoundPosition()); BlockState state = minecraft.level.getBlockState(phantom.getBoundPosition());

View file

@ -187,7 +187,7 @@ public abstract class BlockContainerBase extends Block implements EntityBlock {
if (!player.isCreative()) { if (!player.isCreative()) {
BlockEntity tile = world.getBlockEntity(pos); BlockEntity tile = world.getBlockEntity(pos);
if (tile instanceof TileEntityBase && ((TileEntityBase) tile).stopFromDropping) { if (tile instanceof TileEntityBase && ((TileEntityBase) tile).stopFromDropping) {
player.displayClientMessage(Component.translatable("info." + ActuallyAdditions.MODID + ".machineBroke").withStyle(ChatFormatting.RED), false); player.displayClientMessage(Component.translatable("info.actuallyadditions.machineBroke").withStyle(ChatFormatting.RED), false);
} }
} }
return theState; return theState;

View file

@ -100,15 +100,15 @@
// IBookletChapter chapter = this.assignedPage.getChapter(); // IBookletChapter chapter = this.assignedPage.getChapter();
// //
// list.add(TextFormatting.GOLD + chapter.getLocalizedName() + ", Page " + (chapter.getPageIndex(this.assignedPage) + 1)); // list.add(TextFormatting.GOLD + chapter.getLocalizedName() + ", Page " + (chapter.getPageIndex(this.assignedPage) + 1));
// list.add(StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".bookmarkButton.bookmark.openDesc")); // list.add(StringUtil.localize("booklet.actuallyadditions.bookmarkButton.bookmark.openDesc"));
// list.add(TextFormatting.ITALIC + StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".bookmarkButton.bookmark.removeDesc")); // list.add(TextFormatting.ITALIC + StringUtil.localize("booklet.actuallyadditions.bookmarkButton.bookmark.removeDesc"));
// } else { // } else {
// list.add(TextFormatting.GOLD + StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".bookmarkButton.noBookmark.name")); // list.add(TextFormatting.GOLD + StringUtil.localize("booklet.actuallyadditions.bookmarkButton.noBookmark.name"));
// //
// if (this.booklet instanceof GuiPage) { // if (this.booklet instanceof GuiPage) {
// list.add(StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".bookmarkButton.noBookmark.pageDesc")); // list.add(StringUtil.localize("booklet.actuallyadditions.bookmarkButton.noBookmark.pageDesc"));
// } else { // } else {
// list.add(StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".bookmarkButton.noBookmark.notPageDesc")); // list.add(StringUtil.localize("booklet.actuallyadditions.bookmarkButton.noBookmark.notPageDesc"));
// } // }
// } // }
// //

View file

@ -34,7 +34,7 @@
// //
// if (this.visible) { // if (this.visible) {
// if (this.isHovered || this.isTrials) { // if (this.isHovered || this.isTrials) {
// this.drawCenteredString(minecraft.font, StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".trialsButton.name"), this.x + (this.width - 8) / 2, this.y + (this.height - 8) / 2, 14737632); // this.drawCenteredString(minecraft.font, StringUtil.localize("booklet.actuallyadditions.trialsButton.name"), this.x + (this.width - 8) / 2, this.y + (this.height - 8) / 2, 14737632);
// } // }
// } // }
// } // }

View file

@ -59,7 +59,7 @@
// @Override // @Override
// @OnlyIn(Dist.CLIENT) // @OnlyIn(Dist.CLIENT)
// public String getLocalizedName() { // public String getLocalizedName() {
// return StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".chapter." + this.getIdentifier() + ".name"); // return StringUtil.localize("booklet.actuallyadditions.chapter." + this.getIdentifier() + ".name");
// } // }
// //
// @Override // @Override

View file

@ -31,7 +31,7 @@
// @Override // @Override
// @OnlyIn(Dist.CLIENT) // @OnlyIn(Dist.CLIENT)
// public String getLocalizedName() { // public String getLocalizedName() {
// return StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".trials." + this.getIdentifier() + ".name"); // return StringUtil.localize("booklet.actuallyadditions.trials." + this.getIdentifier() + ".name");
// } // }
// //
// @Override // @Override

View file

@ -98,7 +98,7 @@
// @Override // @Override
// @OnlyIn(Dist.CLIENT) // @OnlyIn(Dist.CLIENT)
// public String getLocalizedName() { // public String getLocalizedName() {
// return StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".indexEntry." + this.getIdentifier() + ".name"); // return StringUtil.localize("booklet.actuallyadditions.indexEntry." + this.getIdentifier() + ".name");
// } // }
// //
// @Override // @Override

View file

@ -76,7 +76,7 @@
// int conf = config.getValue(); // int conf = config.getValue();
// if (conf <= 0) { // if (conf <= 0) {
// try { // try {
// return Float.parseFloat(StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".fontSize." + lang)); // return Float.parseFloat(StringUtil.localize("booklet.actuallyadditions.fontSize." + lang));
// } catch (Exception e) { // } catch (Exception e) {
// return defaultValue; // return defaultValue;
// } // }
@ -185,7 +185,7 @@
// // this.font.setUnicodeFlag(true); // // this.font.setUnicodeFlag(true);
// //
// if (!this.searchField.isFocused() && (this.searchField.getValue() == null || this.searchField.getValue().isEmpty())) { // if (!this.searchField.isFocused() && (this.searchField.getValue() == null || this.searchField.getValue().isEmpty())) {
// this.font.draw(matrices, TextFormatting.ITALIC + StringUtil.localize("info." + ActuallyAdditions.MODID + ".booklet.searchField"), this.guiLeft + this.xSize + 2, this.guiTop + this.ySize - 40 + 2, 0xFFFFFF); // this.font.draw(matrices, TextFormatting.ITALIC + StringUtil.localize("info.actuallyadditions.booklet.searchField"), this.guiLeft + this.xSize + 2, this.guiTop + this.ySize - 40 + 2, 0xFFFFFF);
// } // }
// //
// this.searchField.render(matrices, mouseX, mouseY, partialTicks); // this.searchField.render(matrices, mouseX, mouseY, partialTicks);

View file

@ -75,7 +75,7 @@
// if (this.getMinecraft().level.random.nextFloat() <= 0.1) { // if (this.getMinecraft().level.random.nextFloat() <= 0.1) {
// flavor = MathHelper.nextInt(this.getMinecraft().level.random, 2, 7); // flavor = MathHelper.nextInt(this.getMinecraft().level.random, 2, 7);
// } // }
// this.bookletName = "info." + ActuallyAdditions.MODID + ".booklet.manualName.1." + flavor; // this.bookletName = "info.actuallyadditions.booklet.manualName.1." + flavor;
// //
// String usedQuote = QUOTES[this.getMinecraft().level.random.nextInt(QUOTES.length)]; // String usedQuote = QUOTES[this.getMinecraft().level.random.nextInt(QUOTES.length)];
// String[] quoteSplit = usedQuote.split("@"); // String[] quoteSplit = usedQuote.split("@");
@ -127,20 +127,20 @@
// if (Util.isDevVersion()) { // if (Util.isDevVersion()) {
// this.bookletEdition = "Dev's Edition"; // this.bookletEdition = "Dev's Edition";
// } else { // } else {
// this.bookletEdition = StringUtil.localize("info." + ActuallyAdditions.MODID + ".booklet.edition") + " " + Util.getMajorModVersion(); // this.bookletEdition = StringUtil.localize("info.actuallyadditions.booklet.edition") + " " + Util.getMajorModVersion();
// } // }
// } // }
// //
// List<String> configText = new ArrayList<>(); // List<String> configText = new ArrayList<>();
// configText.add(TextFormatting.GOLD + StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".configButton.name")); // configText.add(TextFormatting.GOLD + StringUtil.localize("booklet.actuallyadditions.configButton.name"));
// //configText.addAll(this.font.listFormattedStringToWidth(StringUtil.localizeFormatted("booklet." + ActuallyAdditions.MODID + ".configButton.desc", ActuallyAdditions.NAME).replaceAll("\\\\n", "\n"), 200)); //TODO wut // //configText.addAll(this.font.listFormattedStringToWidth(StringUtil.localizeFormatted("booklet.actuallyadditions.configButton.desc", ActuallyAdditions.NAME).replaceAll("\\\\n", "\n"), 200)); //TODO wut
// this.configButton = new TexturedButton(RES_LOC_GADGETS, this.guiLeft + 16, this.guiTop + this.ySize - 30, 188, 14, 16, 16, configText, btn -> { // this.configButton = new TexturedButton(RES_LOC_GADGETS, this.guiLeft + 16, this.guiTop + this.ySize - 30, 188, 14, 16, 16, configText, btn -> {
// }); // });
// this.addButton(this.configButton); // this.addButton(this.configButton);
// //
// List<String> achievementText = new ArrayList<>(); // List<String> achievementText = new ArrayList<>();
// achievementText.add(TextFormatting.GOLD + StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".achievementButton.name")); // achievementText.add(TextFormatting.GOLD + StringUtil.localize("booklet.actuallyadditions.achievementButton.name"));
// //achievementText.addAll(this.font.listFormattedStringToWidth(StringUtil.localizeFormatted("booklet." + ActuallyAdditions.MODID + ".achievementButton.desc", ActuallyAdditions.NAME), 200)); //TODO wut // //achievementText.addAll(this.font.listFormattedStringToWidth(StringUtil.localizeFormatted("booklet.actuallyadditions.achievementButton.desc", ActuallyAdditions.NAME), 200)); //TODO wut
// //this.achievementButton = new TexturedButton(RES_LOC_GADGETS, -389, this.guiLeft+36, this.guiTop+this.ySize-30, 204, 14, 16, 16, achievementText); // //this.achievementButton = new TexturedButton(RES_LOC_GADGETS, -389, this.guiLeft+36, this.guiTop+this.ySize-30, 204, 14, 16, 16, achievementText);
// //this.addButton(this.achievementButton); // //this.addButton(this.achievementButton);
// //
@ -213,7 +213,7 @@
// //
// String strg = TextFormatting.DARK_GREEN + StringUtil.localize(this.bookletName); // String strg = TextFormatting.DARK_GREEN + StringUtil.localize(this.bookletName);
// this.font.draw(stack, strg, this.guiLeft + 72 - this.font.width(strg) / 2 - 3, this.guiTop + 19, 0); // this.font.draw(stack, strg, this.guiLeft + 72 - this.font.width(strg) / 2 - 3, this.guiTop + 19, 0);
// strg = TextFormatting.DARK_GREEN + StringUtil.localize("info." + ActuallyAdditions.MODID + ".booklet.manualName.2"); // strg = TextFormatting.DARK_GREEN + StringUtil.localize("info.actuallyadditions.booklet.manualName.2");
// this.font.draw(stack, strg, this.guiLeft + 72 - this.font.width(strg) / 2 - 3, this.guiTop + 19 + this.font.lineHeight, 0); // this.font.draw(stack, strg, this.guiLeft + 72 - this.font.width(strg) / 2 - 3, this.guiTop + 19 + this.font.lineHeight, 0);
// //
// strg = TextFormatting.GOLD + TextFormatting.ITALIC.toString() + this.bookletEdition; // strg = TextFormatting.GOLD + TextFormatting.ITALIC.toString() + this.bookletEdition;

View file

@ -119,7 +119,7 @@
// //
// List<String> links = this.getWebLinks(); // List<String> links = this.getWebLinks();
// if (links != null && !links.isEmpty()) { // if (links != null && !links.isEmpty()) {
// this.buttonViewOnline = new TexturedButton(RES_LOC_GADGETS, this.guiLeft + this.xSize - 24, this.guiTop + this.ySize - 25, 0, 172, 16, 16, Collections.singletonList(TextFormatting.GOLD + StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".onlineButton.name")), btn -> { // this.buttonViewOnline = new TexturedButton(RES_LOC_GADGETS, this.guiLeft + this.xSize - 24, this.guiTop + this.ySize - 25, 0, 172, 16, 16, Collections.singletonList(TextFormatting.GOLD + StringUtil.localize("booklet.actuallyadditions.onlineButton.name")), btn -> {
// }); // });
// this.addButton(this.buttonViewOnline); // this.addButton(this.buttonViewOnline);
// } // }

View file

@ -88,7 +88,7 @@
// //
// @OnlyIn(Dist.CLIENT) // @OnlyIn(Dist.CLIENT)
// protected String getLocalizationKey() { // protected String getLocalizationKey() {
// return "booklet." + ActuallyAdditions.MODID + ".chapter." + this.chapter.getIdentifier() + ".text." + this.localizationKey; // return "booklet.actuallyadditions.chapter." + this.chapter.getIdentifier() + ".text." + this.localizationKey;
// } // }
// //
// @Override // @Override

View file

@ -73,7 +73,7 @@
// } // }
// //
// if (this.page != null && this.page != this.gui.pages[0] && this.page != this.gui.pages[1]) { // if (this.page != null && this.page != this.gui.pages[0] && this.page != this.gui.pages[1]) {
// list.add(TextFormatting.GOLD + StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".clickToSeeRecipe")); // list.add(TextFormatting.GOLD + StringUtil.localize("booklet.actuallyadditions.clickToSeeRecipe"));
// } // }
// //
// GuiUtils.drawHoveringText(list, mouseX, mouseY, mc.displayWidth, mc.displayHeight, -1, mc.font); // GuiUtils.drawHoveringText(list, mouseX, mouseY, mc.displayWidth, mc.displayHeight, -1, mc.font);

View file

@ -130,7 +130,7 @@
// int height = 3; // int height = 3;
///* ///*
// if (recipe instanceof BlankRecipe) { // if (recipe instanceof BlankRecipe) {
// this.recipeTypeLocKey = "tooltip." + ActuallyAdditions.MODID + ".disabled"; // this.recipeTypeLocKey = "tooltip.actuallyadditions.disabled";
// gui.addOrModifyItemRenderer(recipe.getResultItem(), startX + 100, startY + 25, 1F, false); // gui.addOrModifyItemRenderer(recipe.getResultItem(), startX + 100, startY + 25, 1F, false);
// return; // return;
// } else if (recipe instanceof ShapedRecipes) { // } else if (recipe instanceof ShapedRecipes) {
@ -138,13 +138,13 @@
// width = shaped.recipeWidth; // width = shaped.recipeWidth;
// height = shaped.recipeHeight; // height = shaped.recipeHeight;
// ings = shaped.recipeItems.toArray(new Ingredient[shaped.recipeItems.size()]); // ings = shaped.recipeItems.toArray(new Ingredient[shaped.recipeItems.size()]);
// this.recipeTypeLocKey = "booklet." + ActuallyAdditions.MODID + ".shapedRecipe"; // this.recipeTypeLocKey = "booklet.actuallyadditions.shapedRecipe";
// } else if (recipe instanceof ShapelessRecipes) { // } else if (recipe instanceof ShapelessRecipes) {
// ShapelessRecipes shapeless = (ShapelessRecipes) recipe; // ShapelessRecipes shapeless = (ShapelessRecipes) recipe;
// for (int i = 0; i < shapeless.recipeItems.size(); i++) { // for (int i = 0; i < shapeless.recipeItems.size(); i++) {
// ings[i] = shapeless.recipeItems.get(i); // ings[i] = shapeless.recipeItems.get(i);
// } // }
// this.recipeTypeLocKey = "booklet." + ActuallyAdditions.MODID + ".shapelessRecipe"; // this.recipeTypeLocKey = "booklet.actuallyadditions.shapelessRecipe";
// } else if (recipe instanceof ShapedOreRecipe) { // } else if (recipe instanceof ShapedOreRecipe) {
// ShapedOreRecipe shaped = (ShapedOreRecipe) recipe; // ShapedOreRecipe shaped = (ShapedOreRecipe) recipe;
// try { // try {
@ -156,13 +156,13 @@
// for (int i = 0; i < shaped.getIngredients().size(); i++) { // for (int i = 0; i < shaped.getIngredients().size(); i++) {
// ings[i] = shaped.getIngredients().get(i); // ings[i] = shaped.getIngredients().get(i);
// } // }
// this.recipeTypeLocKey = "booklet." + ActuallyAdditions.MODID + ".shapedOreRecipe"; // this.recipeTypeLocKey = "booklet.actuallyadditions.shapedOreRecipe";
// } else if (recipe instanceof ShapelessOreRecipe) { // } else if (recipe instanceof ShapelessOreRecipe) {
// ShapelessOreRecipe shapeless = (ShapelessOreRecipe) recipe; // ShapelessOreRecipe shapeless = (ShapelessOreRecipe) recipe;
// for (int i = 0; i < shapeless.getIngredients().size(); i++) { // for (int i = 0; i < shapeless.getIngredients().size(); i++) {
// ings[i] = shapeless.getIngredients().get(i); // ings[i] = shapeless.getIngredients().get(i);
// } // }
// this.recipeTypeLocKey = "booklet." + ActuallyAdditions.MODID + ".shapelessOreRecipe"; // this.recipeTypeLocKey = "booklet.actuallyadditions.shapelessOreRecipe";
// } // }
// //
// //

View file

@ -44,7 +44,7 @@
// gui.getMinecraft().getTextureManager().bind(GuiBooklet.RES_LOC_GADGETS); // gui.getMinecraft().getTextureManager().bind(GuiBooklet.RES_LOC_GADGETS);
// GuiUtils.drawTexturedModalRect(startX + 38, startY + 6, 136, 0, 52, 74, 0); // GuiUtils.drawTexturedModalRect(startX + 38, startY + 6, 136, 0, 52, 74, 0);
// //
// gui.renderScaledAsciiString("(" + StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".crusherRecipe") + ")", startX + 36, startY + 85, 0, false, gui.getMediumFontSize()); // gui.renderScaledAsciiString("(" + StringUtil.localize("booklet.actuallyadditions.crusherRecipe") + ")", startX + 36, startY + 85, 0, false, gui.getMediumFontSize());
// //
// PageTextOnly.renderTextToPage(gui, this, startX + 6, startY + 100); // PageTextOnly.renderTextToPage(gui, this, startX + 6, startY + 100);
// //

View file

@ -53,7 +53,7 @@
// gui.getMinecraft().getTextureManager().bind(GuiBooklet.RES_LOC_GADGETS); // gui.getMinecraft().getTextureManager().bind(GuiBooklet.RES_LOC_GADGETS);
// GuiUtils.drawTexturedModalRect(startX + 5, startY + 10, 117, 74, 116, 72, 0); // GuiUtils.drawTexturedModalRect(startX + 5, startY + 10, 117, 74, 116, 72, 0);
// //
// gui.renderScaledAsciiString("(" + StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".empowererRecipe") + ")", startX + 6, startY + 85, 0, false, gui.getMediumFontSize()); // gui.renderScaledAsciiString("(" + StringUtil.localize("booklet.actuallyadditions.empowererRecipe") + ")", startX + 6, startY + 85, 0, false, gui.getMediumFontSize());
// //
// PageTextOnly.renderTextToPage(gui, this, startX + 6, startY + 100); // PageTextOnly.renderTextToPage(gui, this, startX + 6, startY + 100);
// if (this.recipe != null) { // if (this.recipe != null) {

View file

@ -59,7 +59,7 @@
// gui.getMinecraft().getTextureManager().bind(GuiBooklet.RES_LOC_GADGETS); // gui.getMinecraft().getTextureManager().bind(GuiBooklet.RES_LOC_GADGETS);
// GuiUtils.drawTexturedModalRect(startX + 23, startY + 10, 0, 146, 80, 26, 0); // GuiUtils.drawTexturedModalRect(startX + 23, startY + 10, 0, 146, 80, 26, 0);
// //
// gui.renderScaledAsciiString("(" + StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".furnaceRecipe") + ")", startX + 32, startY + 42, 0, false, gui.getMediumFontSize()); // gui.renderScaledAsciiString("(" + StringUtil.localize("booklet.actuallyadditions.furnaceRecipe") + ")", startX + 32, startY + 42, 0, false, gui.getMediumFontSize());
// //
// PageTextOnly.renderTextToPage(gui, this, startX + 6, startY + 57); // PageTextOnly.renderTextToPage(gui, this, startX + 6, startY + 57);
// } // }

View file

@ -40,7 +40,7 @@
// public void init(GuiBookletBase gui, int startX, int startY) { // public void init(GuiBookletBase gui, int startX, int startY) {
// super.init(gui, startX, startY); // super.init(gui, startX, startY);
// //
// gui.getButtonList().add(new Button(this.buttonId, startX + 125 / 2 - 50, startY + 130, 100, 20, StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".chapter." + this.chapter.getIdentifier() + ".button." + this.localizationKey))); // gui.getButtonList().add(new Button(this.buttonId, startX + 125 / 2 - 50, startY + 130, 100, 20, StringUtil.localize("booklet.actuallyadditions.chapter." + this.chapter.getIdentifier() + ".button." + this.localizationKey)));
// } // }
// //
// @Override // @Override

View file

@ -47,7 +47,7 @@
// gui.getMinecraft().getTextureManager().bind(GuiBooklet.RES_LOC_GADGETS); // gui.getMinecraft().getTextureManager().bind(GuiBooklet.RES_LOC_GADGETS);
// GuiUtils.drawTexturedModalRect(startX + 30, startY + 10, 80, 146, 68, 48, 0); // GuiUtils.drawTexturedModalRect(startX + 30, startY + 10, 80, 146, 68, 48, 0);
// //
// gui.renderScaledAsciiString("(" + StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".reconstructorRecipe") + ")", startX + 6, startY + 63, 0, false, gui.getMediumFontSize()); // gui.renderScaledAsciiString("(" + StringUtil.localize("booklet.actuallyadditions.reconstructorRecipe") + ")", startX + 6, startY + 63, 0, false, gui.getMediumFontSize());
// //
// PageTextOnly.renderTextToPage(gui, this, startX + 6, startY + 88); // PageTextOnly.renderTextToPage(gui, this, startX + 6, startY + 88);
// if (this.recipe != null) { // if (this.recipe != null) {

View file

@ -66,7 +66,7 @@
// @Override // @Override
// @OnlyIn(Dist.CLIENT) // @OnlyIn(Dist.CLIENT)
// protected String getLocalizationKey() { // protected String getLocalizationKey() {
// return "booklet." + ActuallyAdditions.MODID + ".trials." + this.chapter.getIdentifier() + ".text." + this.localizationKey; // return "booklet.actuallyadditions.trials." + this.chapter.getIdentifier() + ".text." + this.localizationKey;
// } // }
// //
// @Override // @Override
@ -99,9 +99,9 @@
// //
// boolean completed = data.completedTrials.contains(this.chapter.getIdentifier()); // boolean completed = data.completedTrials.contains(this.chapter.getIdentifier());
// if (completed) { // if (completed) {
// this.button.displayString = TextFormatting.DARK_GREEN + StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".trialFinishButton.completed.name"); // this.button.displayString = TextFormatting.DARK_GREEN + StringUtil.localize("booklet.actuallyadditions.trialFinishButton.completed.name");
// } else { // } else {
// this.button.displayString = TextFormatting.DARK_RED + StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".trialFinishButton.uncompleted.name"); // this.button.displayString = TextFormatting.DARK_RED + StringUtil.localize("booklet.actuallyadditions.trialFinishButton.uncompleted.name");
// } // }
// //
// } // }

View file

@ -105,30 +105,30 @@ public class ClientEvents {
// // TODO: [port] come back to this and see if we can re-add it // // TODO: [port] come back to this and see if we can re-add it
// //OreDict Names // //OreDict Names
// // int[] oreIDs = OreDictionary.getOreIDs(event.getItemStack()); // // int[] oreIDs = OreDictionary.getOreIDs(event.getItemStack());
// // event.getToolTip().add(ADVANCED_INFO_HEADER_PRE + StringUtil.localize("tooltip." + ActuallyAdditions.MODID + ".oredictName.desc") + ":"); // // event.getToolTip().add(ADVANCED_INFO_HEADER_PRE + StringUtil.localize("tooltip.actuallyadditions.oredictName.desc") + ":");
// // if (oreIDs.length > 0) { // // if (oreIDs.length > 0) {
// // for (int oreID : oreIDs) { // // for (int oreID : oreIDs) {
// // event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + OreDictionary.getOreName(oreID)); // // event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + OreDictionary.getOreName(oreID));
// // } // // }
// // } else { // // } else {
// // event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + StringUtil.localize("tooltip." + ActuallyAdditions.MODID + ".noOredictNameAvail.desc")); // // event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + StringUtil.localize("tooltip.actuallyadditions.noOredictNameAvail.desc"));
// // } // // }
// //
// //Code Name // //Code Name
// event.getToolTip().add(ADVANCED_INFO_HEADER_PRE + StringUtil.localize("tooltip." + ActuallyAdditions.MODID + ".codeName.desc") + ":"); // event.getToolTip().add(ADVANCED_INFO_HEADER_PRE + StringUtil.localize("tooltip.actuallyadditions.codeName.desc") + ":");
// event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + Item.REGISTRY.getNameForObject(event.getItemStack().getItem())); // event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + Item.REGISTRY.getNameForObject(event.getItemStack().getItem()));
// //
// //Base Item's Unlocalized Name // //Base Item's Unlocalized Name
// String baseName = event.getItemStack().getItem().getTranslationKey(); // String baseName = event.getItemStack().getItem().getTranslationKey();
// if (baseName != null) { // if (baseName != null) {
// event.getToolTip().add(ADVANCED_INFO_HEADER_PRE + StringUtil.localize("tooltip." + ActuallyAdditions.MODID + ".baseUnlocName.desc") + ":"); // event.getToolTip().add(ADVANCED_INFO_HEADER_PRE + StringUtil.localize("tooltip.actuallyadditions.baseUnlocName.desc") + ":");
// event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + baseName); // event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + baseName);
// } // }
// //
// //Metadata // //Metadata
// int meta = event.getItemStack().getItemDamage(); // int meta = event.getItemStack().getItemDamage();
// int max = event.getItemStack().getMaxDamage(); // int max = event.getItemStack().getMaxDamage();
// event.getToolTip().add(ADVANCED_INFO_HEADER_PRE + StringUtil.localize("tooltip." + ActuallyAdditions.MODID + ".meta.desc") + ":"); // event.getToolTip().add(ADVANCED_INFO_HEADER_PRE + StringUtil.localize("tooltip.actuallyadditions.meta.desc") + ":");
// event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + meta + (max > 0 // event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + meta + (max > 0
// ? "/" + max // ? "/" + max
// : "")); // : ""));
@ -136,14 +136,14 @@ public class ClientEvents {
// //Unlocalized Name // //Unlocalized Name
// String metaName = event.getItemStack().getItem().getTranslationKey(event.getItemStack()); // String metaName = event.getItemStack().getItem().getTranslationKey(event.getItemStack());
// if (metaName != null && baseName != null && !metaName.equals(baseName)) { // if (metaName != null && baseName != null && !metaName.equals(baseName)) {
// event.getToolTip().add(ADVANCED_INFO_HEADER_PRE + StringUtil.localize("tooltip." + ActuallyAdditions.MODID + ".unlocName.desc") + ":"); // event.getToolTip().add(ADVANCED_INFO_HEADER_PRE + StringUtil.localize("tooltip.actuallyadditions.unlocName.desc") + ":");
// event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + metaName); // event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + metaName);
// } // }
// //
// //NBT // //NBT
// CompoundNBT compound = event.getItemStack().getTagCompound(); // CompoundNBT compound = event.getItemStack().getTagCompound();
// if (compound != null && !compound.isEmpty()) { // if (compound != null && !compound.isEmpty()) {
// event.getToolTip().add(ADVANCED_INFO_HEADER_PRE + StringUtil.localize("tooltip." + ActuallyAdditions.MODID + ".nbt.desc") + ":"); // event.getToolTip().add(ADVANCED_INFO_HEADER_PRE + StringUtil.localize("tooltip.actuallyadditions.nbt.desc") + ":");
// if (Screen.hasShiftDown()) { // if (Screen.hasShiftDown()) {
// int limit = ConfigIntValues.CTRL_INFO_NBT_CHAR_LIMIT.getValue(); // int limit = ConfigIntValues.CTRL_INFO_NBT_CHAR_LIMIT.getValue();
// String compoundStrg = compound.toString(); // String compoundStrg = compound.toString();
@ -157,16 +157,16 @@ public class ClientEvents {
// } // }
// event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + compoundDisplay); // event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + compoundDisplay);
// } else { // } else {
// event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + TextFormatting.ITALIC + "[" + StringUtil.localize("tooltip." + ActuallyAdditions.MODID + ".pressShift.desc") + "]"); // event.getToolTip().add(ADVANCED_INFO_TEXT_PRE + TextFormatting.ITALIC + "[" + StringUtil.localize("tooltip.actuallyadditions.pressShift.desc") + "]");
// } // }
// } // }
// //
// //Disabling Info // //Disabling Info
// event.getToolTip().add(TextFormatting.ITALIC + StringUtil.localize("tooltip." + ActuallyAdditions.MODID + ".disablingInfo.desc")); // event.getToolTip().add(TextFormatting.ITALIC + StringUtil.localize("tooltip.actuallyadditions.disablingInfo.desc"));
// //
// } else { // } else {
// if (ConfigBoolValues.CTRL_INFO_FOR_EXTRA_INFO.isEnabled()) { // if (ConfigBoolValues.CTRL_INFO_FOR_EXTRA_INFO.isEnabled()) {
// event.getToolTip().add(TextFormatting.DARK_GRAY + "" + TextFormatting.ITALIC + StringUtil.localize("tooltip." + ActuallyAdditions.MODID + ".ctrlForMoreInfo.desc")); // event.getToolTip().add(TextFormatting.DARK_GRAY + "" + TextFormatting.ITALIC + StringUtil.localize("tooltip.actuallyadditions.ctrlForMoreInfo.desc"));
// } // }
// } // }
// } // }
@ -204,17 +204,17 @@ public class ClientEvents {
if (tileHit instanceof TileEntityBase base) { if (tileHit instanceof TileEntityBase base) {
if (base.isRedstoneToggle()) { if (base.isRedstoneToggle()) {
Component component = Component.translatable("info." + ActuallyAdditions.MODID + ".redstoneMode").append(": ") Component component = Component.translatable("info.actuallyadditions.redstoneMode").append(": ")
.append(Component.translatable("info." + ActuallyAdditions.MODID + ".redstoneMode." + (base.isPulseMode .append(Component.translatable("info.actuallyadditions.redstoneMode." + (base.isPulseMode
? "pulse" ? "pulse"
: "deactivation")).withStyle(ChatFormatting.DARK_RED)); : "deactivation")).withStyle(ChatFormatting.DARK_RED));
guiGraphics.drawString(font, component, (int) (event.getWindow().getGuiScaledWidth() / 2f + 5), (int) (event.getWindow().getGuiScaledHeight() / 2f + 5), 0xFFFFFF); guiGraphics.drawString(font, component, (int) (event.getWindow().getGuiScaledWidth() / 2f + 5), (int) (event.getWindow().getGuiScaledHeight() / 2f + 5), 0xFFFFFF);
Component expl; Component expl;
if (!stack.isEmpty() && stack.getItem() == CommonConfig.Other.redstoneConfigureItem) { if (!stack.isEmpty() && stack.getItem() == CommonConfig.Other.redstoneConfigureItem) {
expl = Component.translatable("info." + ActuallyAdditions.MODID + ".redstoneMode.validItem").withStyle(ChatFormatting.GREEN); expl = Component.translatable("info.actuallyadditions.redstoneMode.validItem").withStyle(ChatFormatting.GREEN);
} else { } else {
expl = Component.translatable("info." + ActuallyAdditions.MODID + ".redstoneMode.invalidItem", Component.translatable(CommonConfig.Other.redstoneConfigureItem.asItem().getDescriptionId()).getString()).withStyle(ChatFormatting.GRAY, ChatFormatting.ITALIC); expl = Component.translatable("info.actuallyadditions.redstoneMode.invalidItem", Component.translatable(CommonConfig.Other.redstoneConfigureItem.asItem().getDescriptionId()).getString()).withStyle(ChatFormatting.GRAY, ChatFormatting.ITALIC);
} }
guiGraphics.drawString(font, expl, (int) (event.getWindow().getGuiScaledWidth() / 2f + 5), (int) (event.getWindow().getGuiScaledHeight() / 2f + 15), 0xFFFFFF); guiGraphics.drawString(font, expl, (int) (event.getWindow().getGuiScaledWidth() / 2f + 5), (int) (event.getWindow().getGuiScaledHeight() / 2f + 15), 0xFFFFFF);
} }

View file

@ -43,12 +43,12 @@ public class GuiFeeder extends AAScreen<ContainerFeeder> {
super.render(guiGraphics, x, y, f); super.render(guiGraphics, x, y, f);
if (x >= this.leftPos + 69 && y >= this.topPos + 30 && x <= this.leftPos + 69 + 10 && y <= this.topPos + 30 + 10) { if (x >= this.leftPos + 69 && y >= this.topPos + 30 && x <= this.leftPos + 69 + 10 && y <= this.topPos + 30 + 10) {
List<Component> array = List.of( List<Component> array = List.of(
Component.literal(this.tileFeeder.currentAnimalAmount + " ").append(Component.translatable("info." + ActuallyAdditions.MODID + ".gui.animals")), Component.literal(this.tileFeeder.currentAnimalAmount + " ").append(Component.translatable("info.actuallyadditions.gui.animals")),
this.tileFeeder.currentAnimalAmount >= 2 && this.tileFeeder.currentAnimalAmount < TileEntityFeeder.THRESHOLD this.tileFeeder.currentAnimalAmount >= 2 && this.tileFeeder.currentAnimalAmount < TileEntityFeeder.THRESHOLD
? Component.translatable("info." + ActuallyAdditions.MODID + ".gui.enoughToBreed") ? Component.translatable("info.actuallyadditions.gui.enoughToBreed")
: this.tileFeeder.currentAnimalAmount >= TileEntityFeeder.THRESHOLD : this.tileFeeder.currentAnimalAmount >= TileEntityFeeder.THRESHOLD
? Component.translatable("info." + ActuallyAdditions.MODID + ".gui.tooMany") ? Component.translatable("info.actuallyadditions.gui.tooMany")
: Component.translatable("info." + ActuallyAdditions.MODID + ".gui.notEnough") : Component.translatable("info.actuallyadditions.gui.notEnough")
); );
guiGraphics.renderComponentTooltip(this.font, array, x, y); guiGraphics.renderComponentTooltip(this.font, array, x, y);
} }

View file

@ -39,8 +39,8 @@ import java.util.List;
public class GuiLaserRelayItemWhitelist extends AAScreen<ContainerLaserRelayItemWhitelist> { public class GuiLaserRelayItemWhitelist extends AAScreen<ContainerLaserRelayItemWhitelist> {
private static final ResourceLocation RES_LOC = AssetUtil.getGuiLocation("gui_laser_relay_item_whitelist"); private static final ResourceLocation RES_LOC = AssetUtil.getGuiLocation("gui_laser_relay_item_whitelist");
private final Component inboundText = Component.translatable("info." + ActuallyAdditions.MODID + ".gui.inbound"); private final Component inboundText = Component.translatable("info.actuallyadditions.gui.inbound");
private final Component outboundText = Component.translatable("info." + ActuallyAdditions.MODID + ".gui.outbound"); private final Component outboundText = Component.translatable("info.actuallyadditions.gui.outbound");
private final TileEntityLaserRelayItemAdvanced tile; private final TileEntityLaserRelayItemAdvanced tile;
private FilterSettingsGui leftFilter; private FilterSettingsGui leftFilter;
@ -100,8 +100,8 @@ public class GuiLaserRelayItemWhitelist extends AAScreen<ContainerLaserRelayItem
if (this.buttonSmartWhitelistLeft.isMouseOver(mouseX, mouseY) || this.buttonSmartWhitelistRight.isMouseOver(mouseX, mouseY)) { if (this.buttonSmartWhitelistLeft.isMouseOver(mouseX, mouseY) || this.buttonSmartWhitelistRight.isMouseOver(mouseX, mouseY)) {
List<FormattedCharSequence> list = new ArrayList<>(); List<FormattedCharSequence> list = new ArrayList<>();
list.add(Component.translatable("info." + ActuallyAdditions.MODID + ".gui.smart").withStyle(ChatFormatting.BOLD).getVisualOrderText()); list.add(Component.translatable("info.actuallyadditions.gui.smart").withStyle(ChatFormatting.BOLD).getVisualOrderText());
list.addAll(this.font.split(Component.translatable("info." + ActuallyAdditions.MODID + ".gui.smartInfo"), 200)); list.addAll(this.font.split(Component.translatable("info.actuallyadditions.gui.smartInfo"), 200));
guiGraphics.renderTooltip(this.font, list, mouseX, mouseY); //renderTooltip guiGraphics.renderTooltip(this.font, list, mouseX, mouseY); //renderTooltip
} }

View file

@ -68,8 +68,8 @@
// public void drawGuiContainerForegroundLayer(int x, int y) { // public void drawGuiContainerForegroundLayer(int x, int y) {
// String name = this.cloud.name == null || this.cloud.name.isEmpty() // String name = this.cloud.name == null || this.cloud.name.isEmpty()
// ? "" // ? ""
// : TextFormatting.GOLD + this.cloud.name + TextFormatting.RESET + " " + StringUtil.localize("info." + ActuallyAdditions.MODID + ".gui.the") + " "; // : TextFormatting.GOLD + this.cloud.name + TextFormatting.RESET + " " + StringUtil.localize("info.actuallyadditions.gui.the") + " ";
// String localizedName = name + StringUtil.localize("container." + ActuallyAdditions.MODID + ".cloud.name"); // String localizedName = name + StringUtil.localize("container.actuallyadditions.cloud.name");
// this.font.drawString(localizedName, this.xSize / 2 - this.font.getStringWidth(localizedName) / 2, -10, StringUtil.DECIMAL_COLOR_WHITE); // this.font.drawString(localizedName, this.xSize / 2 - this.font.getStringWidth(localizedName) / 2, -10, StringUtil.DECIMAL_COLOR_WHITE);
// } // }
// //

View file

@ -159,7 +159,7 @@ public class DrillItem extends ItemEnergy {
@Override @Override
public InteractionResultHolder<ItemStack> use(Level world, @Nonnull Player player, @Nonnull InteractionHand hand) { public InteractionResultHolder<ItemStack> use(Level world, @Nonnull Player player, @Nonnull InteractionHand hand) {
if (!world.isClientSide && player.isShiftKeyDown() && hand == InteractionHand.MAIN_HAND) { if (!world.isClientSide && player.isShiftKeyDown() && hand == InteractionHand.MAIN_HAND) {
player.openMenu(new SimpleMenuProvider((id, inv, p) -> new ContainerDrill(id, inv), Component.translatable("container." + ActuallyAdditions.MODID + ".drill"))); player.openMenu(new SimpleMenuProvider((id, inv, p) -> new ContainerDrill(id, inv), Component.translatable("container.actuallyadditions.drill")));
// player.openGui(ActuallyAdditions.INSTANCE, GuiHandler.GuiTypes.DRILL.ordinal(), world, (int) player.posX, (int) player.posY, (int) player.posZ); // player.openGui(ActuallyAdditions.INSTANCE, GuiHandler.GuiTypes.DRILL.ordinal(), world, (int) player.posX, (int) player.posY, (int) player.posZ);
} }
return new InteractionResultHolder<>(InteractionResult.PASS, player.getItemInHand(hand)); return new InteractionResultHolder<>(InteractionResult.PASS, player.getItemInHand(hand));

View file

@ -91,11 +91,11 @@ public class ItemBooklet extends ItemBase implements IHudDisplay {
@OnlyIn(Dist.CLIENT) @OnlyIn(Dist.CLIENT)
@Override @Override
public void appendHoverText(ItemStack stack, @Nullable Level playerIn, List<Component> tooltip, TooltipFlag advanced) { public void appendHoverText(ItemStack stack, @Nullable Level playerIn, List<Component> tooltip, TooltipFlag advanced) {
tooltip.add(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".item_booklet.desc").withStyle(ChatFormatting.GRAY)); tooltip.add(Component.translatable("tooltip.actuallyadditions.item_booklet.desc").withStyle(ChatFormatting.GRAY));
// TODO: this is bad // TODO: this is bad
for (int i = 1; i <= 4; i++) { for (int i = 1; i <= 4; i++) {
tooltip.add(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".item_booklet.sub." + i).withStyle(i == 4 tooltip.add(Component.translatable("tooltip.actuallyadditions.item_booklet.sub." + i).withStyle(i == 4
? ChatFormatting.GOLD ? ChatFormatting.GOLD
: ChatFormatting.RESET).withStyle(i == 4 : ChatFormatting.RESET).withStyle(i == 4
? ChatFormatting.ITALIC ? ChatFormatting.ITALIC
@ -116,8 +116,8 @@ public class ItemBooklet extends ItemBase implements IHudDisplay {
// IBookletPage page = BookletUtils.findFirstPageForStack(blockStack); // IBookletPage page = BookletUtils.findFirstPageForStack(blockStack);
// if (page != null) { // if (page != null) {
// String strg1 = page.getChapter().getLocalizedName(); // String strg1 = page.getChapter().getLocalizedName();
// String strg2 = StringUtil.localize("info." + ActuallyAdditions.MODID + ".booklet.hudDisplay.page") + " " + (page.getChapter().getPageIndex(page) + 1); // String strg2 = StringUtil.localize("info.actuallyadditions.booklet.hudDisplay.page") + " " + (page.getChapter().getPageIndex(page) + 1);
// String strg3 = StringUtil.localize("info." + ActuallyAdditions.MODID + ".booklet.hudDisplay.open"); // String strg3 = StringUtil.localize("info.actuallyadditions.booklet.hudDisplay.open");
// //
// AssetUtil.renderStackToGui(StackUtil.isValid(page.getChapter().getDisplayItemStack()) // AssetUtil.renderStackToGui(StackUtil.isValid(page.getChapter().getDisplayItemStack())
// ? page.getChapter().getDisplayItemStack() // ? page.getChapter().getDisplayItemStack()
@ -126,9 +126,9 @@ public class ItemBooklet extends ItemBase implements IHudDisplay {
// minecraft.font.drawShadow(TextFormatting.YELLOW + "" + TextFormatting.ITALIC + strg2, resolution.getGuiScaledWidth() / 2 - minecraft.font.width(strg2) / 2, height + 30, StringUtil.DECIMAL_COLOR_WHITE); // minecraft.font.drawShadow(TextFormatting.YELLOW + "" + TextFormatting.ITALIC + strg2, resolution.getGuiScaledWidth() / 2 - minecraft.font.width(strg2) / 2, height + 30, StringUtil.DECIMAL_COLOR_WHITE);
// minecraft.font.drawShadow(TextFormatting.GOLD + strg3, resolution.getGuiScaledWidth() / 2 - minecraft.font.width(strg3) / 2, height + 60, StringUtil.DECIMAL_COLOR_WHITE); // minecraft.font.drawShadow(TextFormatting.GOLD + strg3, resolution.getGuiScaledWidth() / 2 - minecraft.font.width(strg3) / 2, height + 60, StringUtil.DECIMAL_COLOR_WHITE);
// } else { // } else {
// String strg1 = TextFormatting.DARK_RED + StringUtil.localize("info." + ActuallyAdditions.MODID + ".booklet.hudDisplay.noInfo"); // String strg1 = TextFormatting.DARK_RED + StringUtil.localize("info.actuallyadditions.booklet.hudDisplay.noInfo");
// String strg2 = TextFormatting.DARK_GREEN + "" + TextFormatting.ITALIC + StringUtil.localize("info." + ActuallyAdditions.MODID + ".booklet.hudDisplay.noInfo.desc.1"); // String strg2 = TextFormatting.DARK_GREEN + "" + TextFormatting.ITALIC + StringUtil.localize("info.actuallyadditions.booklet.hudDisplay.noInfo.desc.1");
// String strg3 = TextFormatting.DARK_GREEN + "" + TextFormatting.ITALIC + StringUtil.localize("info." + ActuallyAdditions.MODID + ".booklet.hudDisplay.noInfo.desc.2"); // String strg3 = TextFormatting.DARK_GREEN + "" + TextFormatting.ITALIC + StringUtil.localize("info.actuallyadditions.booklet.hudDisplay.noInfo.desc.2");
// //
// minecraft.font.drawShadow(strg1, resolution.getGuiScaledWidth() / 2 - minecraft.font.width(strg1) / 2, height + 30, StringUtil.DECIMAL_COLOR_WHITE); // minecraft.font.drawShadow(strg1, resolution.getGuiScaledWidth() / 2 - minecraft.font.width(strg1) / 2, height + 30, StringUtil.DECIMAL_COLOR_WHITE);
// minecraft.font.drawShadow(strg2, resolution.getGuiScaledWidth() / 2 - minecraft.font.width(strg2) / 2, height + 50, StringUtil.DECIMAL_COLOR_WHITE); // minecraft.font.drawShadow(strg2, resolution.getGuiScaledWidth() / 2 - minecraft.font.width(strg2) / 2, height + 50, StringUtil.DECIMAL_COLOR_WHITE);

View file

@ -90,7 +90,7 @@ public class ItemCoffee extends ItemBase { //TODO: Do we want to change the satu
.withStyle(ChatFormatting.GRAY)); .withStyle(ChatFormatting.GRAY));
} }
} else { } else {
tooltip.add(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".coffeeCup.noEffect").withStyle(ChatFormatting.GRAY)); tooltip.add(Component.translatable("tooltip.actuallyadditions.coffeeCup.noEffect").withStyle(ChatFormatting.GRAY));
} }
} }
@ -132,7 +132,7 @@ public class ItemCoffee extends ItemBase { //TODO: Do we want to change the satu
@Override @Override
public String getExtraText() { public String getExtraText() {
return I18n.get("jei." + ActuallyAdditions.MODID + ".coffee.extra.milk"); return I18n.get("jei.actuallyadditions.coffee.extra.milk");
} }
} }
} }

View file

@ -38,7 +38,7 @@ public class ItemFilter extends ItemBase {
@Override @Override
public InteractionResultHolder<ItemStack> use(Level world, Player player, InteractionHand hand) { public InteractionResultHolder<ItemStack> use(Level world, Player player, InteractionHand hand) {
if (!world.isClientSide && hand == InteractionHand.MAIN_HAND) { if (!world.isClientSide && hand == InteractionHand.MAIN_HAND) {
player.openMenu(new SimpleMenuProvider((windowId, inv, playerEnt) -> new ContainerFilter(windowId, inv), Component.translatable("container." + ActuallyAdditions.MODID + ".filter"))); player.openMenu(new SimpleMenuProvider((windowId, inv, playerEnt) -> new ContainerFilter(windowId, inv), Component.translatable("container.actuallyadditions.filter")));
// player.openGui(ActuallyAdditions.INSTANCE, GuiHandler.GuiTypes.FILTER.ordinal(), world, (int) player.posX, (int) player.posY, (int) player.posZ); // player.openGui(ActuallyAdditions.INSTANCE, GuiHandler.GuiTypes.FILTER.ordinal(), world, (int) player.posX, (int) player.posY, (int) player.posZ);
} }
return InteractionResultHolder.pass(player.getItemInHand(hand)); return InteractionResultHolder.pass(player.getItemInHand(hand));

View file

@ -47,7 +47,7 @@ public class ItemLaserWrench extends ItemBase {
if (!world.isClientSide) { if (!world.isClientSide) {
if (ItemPhantomConnector.getStoredPosition(stack) == null) { if (ItemPhantomConnector.getStoredPosition(stack) == null) {
ItemPhantomConnector.storeConnection(stack, pos.getX(), pos.getY(), pos.getZ(), world); ItemPhantomConnector.storeConnection(stack, pos.getX(), pos.getY(), pos.getZ(), world);
player.displayClientMessage(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".laser.stored.desc"), true); player.displayClientMessage(Component.translatable("tooltip.actuallyadditions.laser.stored.desc"), true);
} else { } else {
BlockPos savedPos = ItemPhantomConnector.getStoredPosition(stack); BlockPos savedPos = ItemPhantomConnector.getStoredPosition(stack);
if (savedPos != null) { if (savedPos != null) {
@ -63,13 +63,13 @@ public class ItemLaserWrench extends ItemBase {
((TileEntityLaserRelay) savedTile).sendUpdate(); ((TileEntityLaserRelay) savedTile).sendUpdate();
relay.sendUpdate(); relay.sendUpdate();
player.displayClientMessage(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".laser.connected.desc"), true); player.displayClientMessage(Component.translatable("tooltip.actuallyadditions.laser.connected.desc"), true);
return InteractionResult.SUCCESS; return InteractionResult.SUCCESS;
} }
} }
player.displayClientMessage(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".laser.cantConnect.desc"), false); player.displayClientMessage(Component.translatable("tooltip.actuallyadditions.laser.cantConnect.desc"), false);
ItemPhantomConnector.clearStorage(stack, "XCoordOfTileStored", "YCoordOfTileStored", "ZCoordOfTileStored", "WorldOfTileStored"); ItemPhantomConnector.clearStorage(stack, "XCoordOfTileStored", "YCoordOfTileStored", "ZCoordOfTileStored", "WorldOfTileStored");
} }
} }
@ -91,11 +91,11 @@ public class ItemLaserWrench extends ItemBase {
public void appendHoverText(ItemStack stack, Level playerIn, List<Component> list, TooltipFlag advanced) { public void appendHoverText(ItemStack stack, Level playerIn, List<Component> list, TooltipFlag advanced) {
BlockPos coords = ItemPhantomConnector.getStoredPosition(stack); BlockPos coords = ItemPhantomConnector.getStoredPosition(stack);
if (coords != null) { if (coords != null) {
list.add(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".boundTo.desc").append(":")); list.add(Component.translatable("tooltip.actuallyadditions.boundTo.desc").append(":"));
list.add(Component.literal("X: " + coords.getX())); list.add(Component.literal("X: " + coords.getX()));
list.add(Component.literal("Y: " + coords.getY())); list.add(Component.literal("Y: " + coords.getY()));
list.add(Component.literal("Z: " + coords.getZ())); list.add(Component.literal("Z: " + coords.getZ()));
list.add(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".clearStorage.desc").withStyle(ChatFormatting.ITALIC)); list.add(Component.translatable("tooltip.actuallyadditions.clearStorage.desc").withStyle(ChatFormatting.ITALIC));
} }
} }
} }

View file

@ -93,7 +93,7 @@ public class ItemPhantomConnector extends ItemBase {
((TileEntityBase) tile).sendUpdate(); ((TileEntityBase) tile).sendUpdate();
} }
clearStorage(stack, "XCoordOfTileStored", "YCoordOfTileStored", "ZCoordOfTileStored", "WorldOfTileStored"); clearStorage(stack, "XCoordOfTileStored", "YCoordOfTileStored", "ZCoordOfTileStored", "WorldOfTileStored");
context.getPlayer().displayClientMessage(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".phantom.connected.desc"), true); context.getPlayer().displayClientMessage(Component.translatable("tooltip.actuallyadditions.phantom.connected.desc"), true);
return InteractionResult.SUCCESS; return InteractionResult.SUCCESS;
} }
return InteractionResult.FAIL; return InteractionResult.FAIL;
@ -101,7 +101,7 @@ public class ItemPhantomConnector extends ItemBase {
} }
//Storing Connections //Storing Connections
storeConnection(stack, pos.getX(), pos.getY(), pos.getZ(), context.getLevel()); storeConnection(stack, pos.getX(), pos.getY(), pos.getZ(), context.getLevel());
context.getPlayer().displayClientMessage(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".phantom.stored.desc"), true); context.getPlayer().displayClientMessage(Component.translatable("tooltip.actuallyadditions.phantom.stored.desc"), true);
} }
return InteractionResult.SUCCESS; return InteractionResult.SUCCESS;
} }
@ -117,11 +117,11 @@ public class ItemPhantomConnector extends ItemBase {
public void appendHoverText(ItemStack stack, @Nullable Level playerIn, List<Component> list, TooltipFlag advanced) { public void appendHoverText(ItemStack stack, @Nullable Level playerIn, List<Component> list, TooltipFlag advanced) {
BlockPos coords = getStoredPosition(stack); BlockPos coords = getStoredPosition(stack);
if (coords != null) { if (coords != null) {
list.add(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".boundTo.desc").append(":")); list.add(Component.translatable("tooltip.actuallyadditions.boundTo.desc").append(":"));
list.add(Component.literal("X: " + coords.getX())); list.add(Component.literal("X: " + coords.getX()));
list.add(Component.literal("Y: " + coords.getY())); list.add(Component.literal("Y: " + coords.getY()));
list.add(Component.literal("Z: " + coords.getZ())); list.add(Component.literal("Z: " + coords.getZ()));
list.add(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".clearStorage.desc").withStyle(ChatFormatting.ITALIC)); list.add(Component.translatable("tooltip.actuallyadditions.clearStorage.desc").withStyle(ChatFormatting.ITALIC));
} }
} }
} }

View file

@ -50,13 +50,13 @@ public class ItemPlayerProbe extends ItemBase {
if (player != null) { if (player != null) {
if (player.isShiftKeyDown()) { if (player.isShiftKeyDown()) {
ItemPhantomConnector.clearStorage(stack, "UUID", "Name"); ItemPhantomConnector.clearStorage(stack, "UUID", "Name");
((Player) entity).displayClientMessage(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".playerProbe.disconnect.1"), false); ((Player) entity).displayClientMessage(Component.translatable("tooltip.actuallyadditions.playerProbe.disconnect.1"), false);
player.displayClientMessage(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".playerProbe.notice"), false); player.displayClientMessage(Component.translatable("tooltip.actuallyadditions.playerProbe.notice"), false);
//TheAchievements.GET_UNPROBED.get(player); //TheAchievements.GET_UNPROBED.get(player);
} }
} else { } else {
ItemPhantomConnector.clearStorage(stack, "UUID", "Name"); ItemPhantomConnector.clearStorage(stack, "UUID", "Name");
((Player) entity).displayClientMessage(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".playerProbe.disconnect.2"), false); ((Player) entity).displayClientMessage(Component.translatable("tooltip.actuallyadditions.playerProbe.disconnect.2"), false);
} }
} }
} }
@ -112,7 +112,7 @@ public class ItemPlayerProbe extends ItemBase {
public void appendHoverText(ItemStack stack, @Nullable Level playerIn, List<Component> tooltip, TooltipFlag advanced) { public void appendHoverText(ItemStack stack, @Nullable Level playerIn, List<Component> tooltip, TooltipFlag advanced) {
if (stack.getOrCreateTag().contains("Name")) { if (stack.getOrCreateTag().contains("Name")) {
String name = stack.getOrCreateTag().getString("Name"); String name = stack.getOrCreateTag().getString("Name");
tooltip.add(Component.translatable("tooltip." + ActuallyAdditions.MODID + ".playerProbe.probing").append(": " + name)); tooltip.add(Component.translatable("tooltip.actuallyadditions.playerProbe.probing").append(": " + name));
} }
} }
} }

View file

@ -136,7 +136,7 @@
// String entity = this.getStoredEntity(stack); // String entity = this.getStoredEntity(stack);
// if (entity != null) { // if (entity != null) {
// list.add("Entity: " + entity); // list.add("Entity: " + entity);
// list.add(TextFormatting.ITALIC + StringUtil.localize("tooltip." + ActuallyAdditions.MODID + ".clearStorage.desc")); // list.add(TextFormatting.ITALIC + StringUtil.localize("tooltip.actuallyadditions.clearStorage.desc"));
// } // }
// } // }
//} //}

View file

@ -14,6 +14,7 @@ import de.ellpeck.actuallyadditions.mod.attachments.ActuallyAttachments;
import de.ellpeck.actuallyadditions.mod.items.ActuallyItems; import de.ellpeck.actuallyadditions.mod.items.ActuallyItems;
import de.ellpeck.actuallyadditions.mod.tile.CustomEnergyStorage; import de.ellpeck.actuallyadditions.mod.tile.CustomEnergyStorage;
import de.ellpeck.actuallyadditions.mod.util.AssetUtil; import de.ellpeck.actuallyadditions.mod.util.AssetUtil;
import net.minecraft.ChatFormatting;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.network.chat.Component; import net.minecraft.network.chat.Component;
import net.minecraft.util.Mth; import net.minecraft.util.Mth;
@ -56,7 +57,8 @@ public abstract class ItemEnergy extends ItemBase {
if(storage != null) { if(storage != null) {
int energy = storage.getEnergyStored(); int energy = storage.getEnergyStored();
NumberFormat format = NumberFormat.getInstance(); NumberFormat format = NumberFormat.getInstance();
tooltip.add(Component.translatable("misc.actuallyadditions.power_long", format.format(energy), format.format(storage.getMaxEnergyStored()))); tooltip.add(Component.translatable("misc.actuallyadditions.power_long", format.format(energy), format.format(storage.getMaxEnergyStored()))
.withStyle(ChatFormatting.GRAY));
} }
} }
@ -65,18 +67,6 @@ public abstract class ItemEnergy extends ItemBase {
return false; return false;
} }
// @Override
// public void fillItemCategory(CreativeModeTab group, NonNullList<ItemStack> items) {
// super.fillItemCategory(group, items);
// if (!this.allowdedIn(group)) {
// return;
// }
//
// ItemStack charged = new ItemStack(this);
// charged.getOrCreateTag().putDouble("Energy", this.getMaxEnergyStored(charged));
// items.add(charged);
// }
@Override @Override
public boolean isBarVisible(ItemStack itemStack) { public boolean isBarVisible(ItemStack itemStack) {
return true; return true;

View file

@ -60,7 +60,7 @@
// @Override // @Override
// public List<String> getTooltipStrings(int mouseX, int mouseY) { // public List<String> getTooltipStrings(int mouseX, int mouseY) {
// if (this.theButton.isMouseOver()) { // if (this.theButton.isMouseOver()) {
// return Collections.singletonList(StringUtil.localize("booklet." + ActuallyAdditions.MODID + ".clickToSeeRecipe")); // return Collections.singletonList(StringUtil.localize("booklet.actuallyadditions.clickToSeeRecipe"));
// } else { // } else {
// return Collections.emptyList(); // return Collections.emptyList();
// } // }

View file

@ -48,7 +48,7 @@
// //
// @Override // @Override
// public void drawInfo(Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) { // public void drawInfo(Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {
// List<String> header = minecraft.fontRenderer.listFormattedStringToWidth(StringUtil.localize("container.nei." + ActuallyAdditions.MODID + ".booklet.header").replaceAll("<item>", TextFormatting.BLUE + "").replaceAll("<r>", TextFormatting.BLACK + ""), 150); // List<String> header = minecraft.fontRenderer.listFormattedStringToWidth(StringUtil.localize("container.nei.actuallyadditions.booklet.header").replaceAll("<item>", TextFormatting.BLUE + "").replaceAll("<r>", TextFormatting.BLACK + ""), 150);
// for (int i = 0; i < header.size(); i++) { // for (int i = 0; i < header.size(); i++) {
// minecraft.fontRenderer.drawString(header.get(i), 0, 17 + i * (minecraft.fontRenderer.FONT_HEIGHT + 1), 0, false); // minecraft.fontRenderer.drawString(header.get(i), 0, 17 + i * (minecraft.fontRenderer.FONT_HEIGHT + 1), 0, false);
// } // }
@ -56,7 +56,7 @@
// int maxLines = 4; // int maxLines = 4;
// IBookletChapter chapter = this.thePage.getChapter(); // IBookletChapter chapter = this.thePage.getChapter();
// String aText = chapter.getAllPages()[0].getInfoText(); // String aText = chapter.getAllPages()[0].getInfoText();
// List<String> text = minecraft.fontRenderer.listFormattedStringToWidth(aText != null ? aText : TextFormatting.DARK_RED + StringUtil.localize("container.nei." + ActuallyAdditions.MODID + ".booklet.noText"), 150); // List<String> text = minecraft.fontRenderer.listFormattedStringToWidth(aText != null ? aText : TextFormatting.DARK_RED + StringUtil.localize("container.nei.actuallyadditions.booklet.noText"), 150);
// for (int i = 0; i < Math.min(maxLines, text.size()); i++) { // for (int i = 0; i < Math.min(maxLines, text.size()); i++) {
// minecraft.fontRenderer.drawString(text.get(i) + (i == maxLines - 1 && text.size() > maxLines ? TextFormatting.RESET + "" + TextFormatting.BLACK + "..." : ""), 0, 16 + 25 + i * (minecraft.fontRenderer.FONT_HEIGHT + 1), 0, false); // minecraft.fontRenderer.drawString(text.get(i) + (i == maxLines - 1 && text.size() > maxLines ? TextFormatting.RESET + "" + TextFormatting.BLACK + "..." : ""), 0, 16 + 25 + i * (minecraft.fontRenderer.FONT_HEIGHT + 1), 0, false);
// } // }

View file

@ -67,12 +67,12 @@ public class CoffeeMachineCategory implements IRecipeCategory<CoffeeIngredientRe
Minecraft mc = Minecraft.getInstance(); Minecraft mc = Minecraft.getInstance();
if (!Strings.isNullOrEmpty(recipe.getExtraText())) { if (!Strings.isNullOrEmpty(recipe.getExtraText())) {
guiGraphics.drawString(mc.font, Component.translatable("jei." + ActuallyAdditions.MODID + ".coffee.special").append( ":"), 2, 4, 4210752, false); guiGraphics.drawString(mc.font, Component.translatable("jei.actuallyadditions.coffee.special").append( ":"), 2, 4, 4210752, false);
guiGraphics.drawString(mc.font, Component.literal(recipe.getExtraText()), 2, 16, 4210752, false); guiGraphics.drawString(mc.font, Component.literal(recipe.getExtraText()), 2, 16, 4210752, false);
} }
if (recipe.getMaxAmplifier() > 0) { if (recipe.getMaxAmplifier() > 0) {
guiGraphics.drawString(mc.font, Component.translatable("jei." + ActuallyAdditions.MODID + ".coffee.maxAmount").append(": " + recipe.getMaxAmplifier()), 2, 28, 4210752, false); guiGraphics.drawString(mc.font, Component.translatable("jei.actuallyadditions.coffee.maxAmount").append(": " + recipe.getMaxAmplifier()), 2, 28, 4210752, false);
} }
} }
} }

View file

@ -153,7 +153,7 @@ public abstract class TileEntityBase extends BlockEntity {
@Deprecated @Deprecated
public String getNameForTranslation() { public String getNameForTranslation() {
return "removeme";// "container." + ActuallyAdditions.MODID + "." + this.name + ".name"; return "removeme";// "container.actuallyadditions." + this.name + ".name";
} }
// @Override // @Override

View file

@ -260,13 +260,13 @@ public class TileEntityLaserRelayEnergy extends TileEntityLaserRelay {
@Override @Override
@OnlyIn(Dist.CLIENT) @OnlyIn(Dist.CLIENT)
public Component getExtraDisplayString() { public Component getExtraDisplayString() {
return Component.translatable("info." + ActuallyAdditions.MODID + ".laserRelay.energy.extra").append(": ").append(Component.translatable(this.mode.name).withStyle(ChatFormatting.DARK_RED)); return Component.translatable("info.actuallyadditions.laserRelay.energy.extra").append(": ").append(Component.translatable(this.mode.name).withStyle(ChatFormatting.DARK_RED));
} }
@Override @Override
@OnlyIn(Dist.CLIENT) @OnlyIn(Dist.CLIENT)
public Component getCompassDisplayString() { public Component getCompassDisplayString() {
return Component.translatable("info." + ActuallyAdditions.MODID + ".laserRelay.energy.display").withStyle(ChatFormatting.GREEN); return Component.translatable("info.actuallyadditions.laserRelay.energy.display").withStyle(ChatFormatting.GREEN);
} }
@Override @Override
@ -296,9 +296,9 @@ public class TileEntityLaserRelayEnergy extends TileEntityLaserRelay {
} }
public enum Mode { public enum Mode {
BOTH("info." + ActuallyAdditions.MODID + ".laserRelay.mode.both"), BOTH("info.actuallyadditions.laserRelay.mode.both"),
OUTPUT_ONLY("info." + ActuallyAdditions.MODID + ".laserRelay.mode.outputOnly"), OUTPUT_ONLY("info.actuallyadditions.laserRelay.mode.outputOnly"),
INPUT_ONLY("info." + ActuallyAdditions.MODID + ".laserRelay.mode.inputOnly"); INPUT_ONLY("info.actuallyadditions.laserRelay.mode.inputOnly");
public final String name; public final String name;

View file

@ -252,13 +252,13 @@ public class TileEntityLaserRelayFluids extends TileEntityLaserRelay {
@Override @Override
@OnlyIn(Dist.CLIENT) @OnlyIn(Dist.CLIENT)
public Component getExtraDisplayString() { public Component getExtraDisplayString() {
return Component.translatable("info." + ActuallyAdditions.MODID + ".laserRelay.fluid.extra").append(": ").append(Component.translatable(this.mode.name).withStyle(ChatFormatting.DARK_RED)); return Component.translatable("info.actuallyadditions.laserRelay.fluid.extra").append(": ").append(Component.translatable(this.mode.name).withStyle(ChatFormatting.DARK_RED));
} }
@Override @Override
@OnlyIn(Dist.CLIENT) @OnlyIn(Dist.CLIENT)
public Component getCompassDisplayString() { public Component getCompassDisplayString() {
return Component.translatable("info." + ActuallyAdditions.MODID + ".laserRelay.energy.display").withStyle(ChatFormatting.GREEN); return Component.translatable("info.actuallyadditions.laserRelay.energy.display").withStyle(ChatFormatting.GREEN);
} }
@Override @Override

View file

@ -159,13 +159,13 @@ public class TileEntityLaserRelayItem extends TileEntityLaserRelay {
@Override @Override
@OnlyIn(Dist.CLIENT) @OnlyIn(Dist.CLIENT)
public Component getExtraDisplayString() { public Component getExtraDisplayString() {
return Component.translatable("info." + ActuallyAdditions.MODID + ".laserRelay.item.extra").append(": ").append(Component.literal(String.valueOf(this.getPriority())).withStyle(ChatFormatting.DARK_RED)); return Component.translatable("info.actuallyadditions.laserRelay.item.extra").append(": ").append(Component.literal(String.valueOf(this.getPriority())).withStyle(ChatFormatting.DARK_RED));
} }
@Override @Override
@OnlyIn(Dist.CLIENT) @OnlyIn(Dist.CLIENT)
public Component getCompassDisplayString() { public Component getCompassDisplayString() {
return Component.translatable("info." + ActuallyAdditions.MODID + ".laserRelay.item.display.1").append("\n").append(Component.translatable("info." + ActuallyAdditions.MODID + ".laserRelay.item.display.2")).withStyle(ChatFormatting.GREEN); return Component.translatable("info.actuallyadditions.laserRelay.item.display.1").append(" - ").append(Component.translatable("info.actuallyadditions.laserRelay.item.display.2")).withStyle(ChatFormatting.GREEN);
} }
@Override @Override

View file

@ -44,11 +44,11 @@ public class UpdateChecker {
if (Minecraft.getInstance().player != null) { if (Minecraft.getInstance().player != null) {
Player player = Minecraft.getInstance().player; Player player = Minecraft.getInstance().player;
if (UpdateChecker.checkFailed) { if (UpdateChecker.checkFailed) {
player.displayClientMessage(Component.translatable("info." + ActuallyAdditions.MODID + ".update.failed"), false); player.displayClientMessage(Component.translatable("info.actuallyadditions.update.failed"), false);
} else if (UpdateChecker.needsUpdateNotify) { } else if (UpdateChecker.needsUpdateNotify) {
player.displayClientMessage(Component.translatable("info." + ActuallyAdditions.MODID + ".update.generic"), false); player.displayClientMessage(Component.translatable("info.actuallyadditions.update.generic"), false);
player.displayClientMessage(Component.translatable("info." + ActuallyAdditions.MODID + ".update.versionCompare", ActuallyAdditions.VERSION, UpdateChecker.updateVersionString), false); player.displayClientMessage(Component.translatable("info.actuallyadditions.update.versionCompare", ActuallyAdditions.VERSION, UpdateChecker.updateVersionString), false);
player.displayClientMessage(Component.translatable("info." + ActuallyAdditions.MODID + ".update.buttons", UpdateChecker.CHANGELOG_LINK, UpdateChecker.DOWNLOAD_LINK), false); player.displayClientMessage(Component.translatable("info.actuallyadditions.update.buttons", UpdateChecker.CHANGELOG_LINK, UpdateChecker.DOWNLOAD_LINK), false);
} }
if (threadFinished) { if (threadFinished) {
NeoForge.EVENT_BUS.unregister(this); NeoForge.EVENT_BUS.unregister(this);

View file

@ -841,7 +841,7 @@
"booklet.actuallyadditions.chapter.blackLotus.text.1": "Think of this: <n>You need to craft <imp>black wool<r>, <imp>black clay<r> or anything else that <imp>needs black dye<r> but you are just guilty about killing so many <imp>innocent squids<r>? <n>Well, the <item>Black Lotus<r> is exactly the thing you need! <n>Just look around <imp>in the wild<r> a bit, and you will find one, then being able to craft some <item>Black Dye<r> that can be used <imp>instead of Ink Sacs<r> so that you don't need to kill poor squids and L any longer.", "booklet.actuallyadditions.chapter.blackLotus.text.1": "Think of this: <n>You need to craft <imp>black wool<r>, <imp>black clay<r> or anything else that <imp>needs black dye<r> but you are just guilty about killing so many <imp>innocent squids<r>? <n>Well, the <item>Black Lotus<r> is exactly the thing you need! <n>Just look around <imp>in the wild<r> a bit, and you will find one, then being able to craft some <item>Black Dye<r> that can be used <imp>instead of Ink Sacs<r> so that you don't need to kill poor squids and L any longer.",
"booklet.actuallyadditions.chapter.blackLotus.text.2": "<i>Do the lotus pose", "booklet.actuallyadditions.chapter.blackLotus.text.2": "<i>Do the lotus pose",
"booklet.actuallyadditions.chapter.crystals": "Crystals and Reconstructor", "booklet.actuallyadditions.chapter.crystals": "Crystals and Reconstructor",
"booklet.actuallyadditions.chapter.crystals.text.1": "The <item>Atomic Reconstructor<r> is used to craft <item>Crystals<r>, which are the main crafting ingredient in most items from <imp>Actually Additions<r>. <n>Upon being supplied with power, it shoots out a Laser. <tifisgrin>When the Laser hits a block<r>, it will convert all surrounding items and blocks, provided they can be converted.", "booklet.actuallyadditions.chapter.crystals.text.1": "The <item>Atomic Reconstructor<r> is used to craft <item>Crystals<r>, which are the main crafting ingredient in most items from <imp>Actually Additions<r>. <n>Upon being supplied with power, it shoots out a Laser. <tifisgrin>It will convert all surrounding items and blocks along the beam's path, provided they can be converted, until it hits a block.",
"booklet.actuallyadditions.chapter.crystals.text.2": "When shooting a laser, it uses <imp>1000 CF<r>, but additional rates vary depending on the conversion. <n>There are various <item>Lenses<r> that can be attached to the Reconstructor that don't all follow the default behavior of the Reconstructor and are able to do some neat things. <n>See the <imp>Reconstruction section<r> in the booklet <imp>for more information<r>.", "booklet.actuallyadditions.chapter.crystals.text.2": "When shooting a laser, it uses <imp>1000 CF<r>, but additional rates vary depending on the conversion. <n>There are various <item>Lenses<r> that can be attached to the Reconstructor that don't all follow the default behavior of the Reconstructor and are able to do some neat things. <n>See the <imp>Reconstruction section<r> in the booklet <imp>for more information<r>.",
"booklet.actuallyadditions.chapter.crystals.text.3": "When right-clicking the Reconstructor with a <item>Redstone Torch<r> in hand, it will change between a mode where it <imp>gets deactivated by Redstone<r> and a mode where it <imp>responds to pulses<r>. It should be noted that any recipes listed without information about Lenses <imp>don't use one<r>. <n><i>I thought that was obvious.", "booklet.actuallyadditions.chapter.crystals.text.3": "When right-clicking the Reconstructor with a <item>Redstone Torch<r> in hand, it will change between a mode where it <imp>gets deactivated by Redstone<r> and a mode where it <imp>responds to pulses<r>. It should be noted that any recipes listed without information about Lenses <imp>don't use one<r>. <n><i>I thought that was obvious.",
"booklet.actuallyadditions.chapter.crystals.text.5": "When you have crafted a couple of items, you might want to find a way to <imp>automate this<r>. <n>There is a very simple way to do accomplish this: <n>Place the <item>Atomic Reconstructor<r> down facing into a <item>Precision Dropper<r> (to find it, look it up in the <imp>All Items<r> Entry!). <n>Next, place a <item>Ranged Collector<r> in the area that has the converted items set as a allowlist. <n>Now you can just chuck your raw materials into the Dropper to convert them!", "booklet.actuallyadditions.chapter.crystals.text.5": "When you have crafted a couple of items, you might want to find a way to <imp>automate this<r>. <n>There is a very simple way to do accomplish this: <n>Place the <item>Atomic Reconstructor<r> down facing into a <item>Precision Dropper<r> (to find it, look it up in the <imp>All Items<r> Entry!). <n>Next, place a <item>Ranged Collector<r> in the area that has the converted items set as a allowlist. <n>Now you can just chuck your raw materials into the Dropper to convert them!",