Posts posted by Draco18s
-
-
-
-
-
-
-
-
-
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
.
-
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.
-
-
-
-
-
-
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).
-
-
Just don't create sync problems that will jumble reality (like boats did before 1.9)
Haha, boats.
Wasn't that long ago that I was fooling around in my own mod (1.7.10, dedicated server that was the same machine as my client) and the server's location for me was so far out of synch that the chunk directly under me go unloaded.
-
-
-
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'?"
-
-
-
-
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.
-
[1.9] Entity Rendering
in Modder Support
You shouldn't be using the Item Entity renderer to render items in a GUI anyway.