Jump to content

HoBoS_TaCo

Forge Modder
  • Posts

    140
  • Joined

  • Last visited

Posts posted by HoBoS_TaCo

  1. I don't have access to the Minecraft source right now so I can't check if what i'm saying is going to work. Right now it seems that your block checks for an update on each block update (which seems to occur when the block is moved or a adjacent block is modified), rather than on each game tick. Are you using a separate tick handler or are you using the onUpdate() or similar method in your block class?

  2. Would it be possible to have a RenderPlayer hook or event added. I'm trying to add a wearable backpack to my mod but I can't find a place to insert code to render it onto the player. Could this be added or could someone tell me where to look? Thanks in advance.

     

     

  3. Considering the Biome Decorator is a variable inside my SubClass, my only options to access it are presumably:

    • Using reflection: Slow and very hacky, and as you said, not needed.
    • Changing the Access Level: Breaks compatibility, and if FML hasn't done it, there is likely a reason not to.
    • Making my class in the minecraft.net.src package: Heavily discouraged amongst the forge community, might break compatibility and also makes it hard to keep track of classes.
    • Making my own WorldGenBase, BiomeDecorator (and plenty more) classes: Tedious, messy, and seems unnecessary.
    • Creating some kind of wrapper for BiomeDecorator (and some more) classes: Better option, it seems, but still tedious, messy and unnecessary.

    All of these seem like a "hack" and suboptimal (not to mention tedious). I must be missing something, because everyone talks about this "Access Transformer" or says that a hack is not needed (not only in this forum post, I did search before posting this).

    I currently use a wrapper/workaround but I love to be able to do it directly. I don't see why we have to do this workaround to do something as simple as setting the tree rate of a biome?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.