Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Draco18s

Members
  • Joined

  • Last visited

Posts posted by Draco18s

  1. Any reasons why it would do this?

     

    So glad you fixed that problem on you own so I didn't have to call you an idiot.

     

    As for the tiling:

     

    Your texture is smaller than the screen.  In order to stretch it, you need to draw the exact size that fits on the texture to a much larger area.  Minecraft's GUI system is set up to draw 1 texture pixel to 2 screen pixels (at default GUI scaling).  You might want to take a look at

    drawTexturedModalRect

    .

  2. Do I use both the RenderLivingEvent.Pre and Post events?

     

    Uh, let me check.

     

    Before it renders:

    push the state, change the state

    After it renders:

    restore the state

     

    Pretty sure that "Before" and "After" are two different phases.

     

    But you know what, do it in only one and see how that works out for you.  Oh wait, you did.

  3. I learned AHK, HTML, PHP and SQL first, then wanted to make a mod. I was confused when everyone was talking about "methods" when I was used to hearing them called functions.

     

    Functions and methods aren't the same thing, a method is a special kind of function:

     

    http://stackoverflow.com/questions/155609/difference-between-a-method-and-a-function

     

    A method is a piece of code that is called by name that is associated with an object. In most respects it is identical to a function except for two key differences.


    •    
    • It is implicitly passed the object on which it was called.
         
    • It is able to operate on data that is contained within the class (remembering that an object is an instance of a class - the class is the definition, the object is an instance of that data).

  4. Except that this isn't math, this is English, and I told you to write a story of your summer vacation.

     

    And you want me to provide you with an example summer vacation story that includes you traveling to Disney Land.

     

    Or alternatively if you want to stick with the math analogy, it looks like this:

     

    Me: "With the function f(x): y = x2, what is Y when X equals 3?"

    You: "What do you mean 'squared'?"

  5. Because you do not know how to invoke a method then any response we could give to help you would be spoon feeding. Because you do not know a basic, fundamental, operation of object oriented programming.

  6. Its just a check if the client has my mod installed.

     

    There are other, better ways of doing this.  For one, if your mod is required client and server (which 90% of most mods will be) then Forge does this automatically for you and disallows the connection if the mod is missing.

     

    If its only optional, then you can get access to the list of mods the client connection has, because see above.  Normally the mod list can't be considered reliable (as someone can make a mod that doesn't report itself to the server) but as you're not doing something asinine like that, then your mod will show up in said list.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.