Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Akxe

Akxe

Members
 View Profile  See their activity
  • Content Count

    9
  • Joined

    January 11, 2018
  • Last visited

    January 20, 2018

 Content Type 

  • All Activity

Profiles

  • Status Updates
  • Status Replies

Forums

  • Topics
  • Posts

Calendar

  • Events

Everything posted by Akxe

  1. Akxe

    TextComponentTranslation retunring original string without translating

    Akxe replied to Akxe's topic in Modder Support

    Amazing, thank you. I'll handle it from here, as for TextComponentTranslation not working, I would assume it is due to server side not being able to translate. Case closed.
    • January 11, 2018
    • 16 replies
  2. Akxe

    TextComponentTranslation retunring original string without translating

    Akxe replied to Akxe's topic in Modder Support

    Is there a list of them? And their sideness? I was able to pinpoint, I guess most of them, using the tree hierarchy tool in eclipse, but I don’t remember seeing any note on side.
    • January 11, 2018
    • 16 replies
  3. Akxe

    TextComponentTranslation retunring original string without translating

    Akxe replied to Akxe's topic in Modder Support

    I was actually doing all of this, but I wanted this mode to be client only (working on vanilla servers). What event is client only, or both sides (so I can use @SideOnly on it)? I actually have annotated the class and event, but it obviously haven’t solved logical sideness.
    • January 11, 2018
    • 16 replies
  4. Akxe

    TextComponentTranslation retunring original string without translating

    Akxe replied to Akxe's topic in Modder Support

    I was really trying not to cross the logical sides... what else should have I done? Also any recommendation, on what should I do next? I’ll probably rewrite the code from scratch.
    • January 11, 2018
    • 16 replies
  5. Akxe

    TextComponentTranslation retunring original string without translating

    Akxe replied to Akxe's topic in Modder Support

    I have tried doing System.out.println(message.getFormattedText()); but only got "chat.banana.deathInfo.death.both§r"...
    • January 11, 2018
    • 16 replies
  6. Akxe

    TextComponentTranslation retunring original string without translating

    Akxe replied to Akxe's topic in Modder Support

    Strangely enough I got EntityPlayerMP from the event, but EntityPlayerSP from Minecraft.getMinecraft().player. I wanted the items doped, therefor this seemed as most appropriate event. I was doing that before and it wasn't working either. Tested once more still no avail. (even updated git)
    • January 11, 2018
    • 16 replies
  7. Akxe

    TextComponentTranslation retunring original string without translating

    Akxe replied to Akxe's topic in Modder Support

    My bad, the class is annotated with @SideOnly(Side.CLIENT). Will add it to the original post. The whole mod is meant to be client only.
    • January 11, 2018
    • 16 replies
  8. Akxe

    TextComponentTranslation retunring original string without translating

    Akxe posted a topic in Modder Support

    The whole class is annotated with @SideOnly(Side.CLIENT) as whole mod is meant to be client only and compatible with vanilla. I have very simple code trying to figure out how translation works: EntityPlayer player = Minecraft.getMinecraft().player; TextComponentTranslation message = new TextComponentTranslation("chat.banana.deathInfo.death.location", player.getPosition()) player.sendMessage(message) translation en_us.lang (extract) chat.banana.deathInfo.death.location=You have died at (%1) I am sure that translation file is located correctly as @LangKey annotation translated config correctly. Link to whole codebase (https://github.com/Akxe/Banana)
    • January 11, 2018
    • 16 replies
  9. Akxe

    @LangKey for @Comment

    Akxe posted a topic in Modder Support

    I have looked on unrelased documentation of @config (https://github.com/MinecraftForge/Documentation/pull/130) and found @LangKey as way to translate name to client's language, but I haven't found a way to do this for theirs comments. @LangKey("config.modid.common.enabled.name") @Comment("config.modid.common.enabled.decs") public static boolean enabled = true; This will produce correct name, but won't translate the @Comment.
    • January 11, 2018
    • 1 reply
  • All Activity
  • Home
  • Akxe
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community