Everything posted by Draco18s
-
[1.9] Entity Rendering
You shouldn't be using the Item Entity renderer to render items in a GUI anyway.
-
[1.7.10] teleport happening before chunk render
The falling, by the way, is just client side prediction: it sees only air in the chunk and applies gravity. The server thread (when it generates the chunk) should reset the player. I see this all the time with Mystcraft (I've fallen as far down as -60). I don't know what's going on here.
-
[SOLVED] Error com.google.common.collect.Multimap cannot be resolved
Pretty much everything (actually everything?) in the com.google.common package is part of the Guava library.
-
[1.9]ItemAxe Returns a crash.
Show your main class.
-
[1.7.10] teleport happening before chunk render
This is what I was asking: I wanted to check to see if the Y value was lower than the teleport's destination coordinates.
-
(SOLVED)Requesting help with textures and 1.9
Question: Why do you require your items to take an unlocalized name via their constructor? You don't use the class for more than one item, so there's literally no point in doing this. Second, why do you use the unlocalized name to register the item? This is bad practice.
-
[1.7.10] instanceof workaround for Item
Massive amounts of ASM. #DoNotRecommend
-
[1.7.10] teleport happening before chunk render
In case 2: is the coordinates that the player is teleported to the same as where the player ends up at (albeit underground)?
-
GUI Texture is Tiled when Stretched is Desired
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 .
-
[1.7.10]Flipping an entity with RenderLivingEvent
Uh, let me check. 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.
-
[1.8.9] Rendering a circular texture in a sphere-like manner
The arrow model isn't circular, it looks like 3 intersecting planes. Amazing how realistic this looks: Only....not.
-
[1.7.10]Flipping an entity with RenderLivingEvent
Before it renders: push the state, change the state After it renders: restore the state
-
[1.8.9] Rendering a circular texture in a sphere-like manner
The arrow model still has a texture associated with it. That doesn't mean it renders it as a single plane though.
-
[1.8.9] Rendering a circular texture in a sphere-like manner
Arrows are 3D objects. You will not be able to render a flat texture in such that it appears to be a sphere. The closest you can come is a camera-facing-billboard, like name tags.
-
[1.7.10] [SELF-SOLVED] TileEntity won't place down.
if(meta == 1) { getTE() } ... if(meta == 1) { getTE() } ... if(meta == 1) { getTE() } ... if(meta != 1) { getTE() } //crash here Hmm. One of these things is not like the others.
-
brewing recipes.
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
-
Can a Mod be different on client side and on server side ?
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.
-
[1.7.10] [Solved] Potion#performEffect leads to Null Pointer Error?
Also, some potion effects will be utterly harmless when you tick them once (poison, hunger, slowness, weakness, fatigue, wither) while others will be super deadly (instant damage).
-
brewing recipes.
http://www.learnjavaonline.org/
-
brewing recipes.
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'?"
-
What happens when I come back from coding 2 months later...
The crash tells me that your code is wrong.
-
brewing recipes.
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.
-
[1.8.9]Changing the biome in a given location
If you follow the World#getBiomeForCoordinates() call stack you'll see how it gets access to the biome stored at a particular coordinate. You'll then have to write your own method(s) to change the value.
-
[1.8.9/Solved] PluginChannel is only working on first login.
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.
-
(SOLVED) Need help with recipe returning
Item#hasContainerItem(ItemStack) / Item#getContainerItem(ItemStack) are part of the blender. The blender tells the crafting table that its container item stack is itself. This isn't a recipe thing, this is an ingredient thing.
IPS spam blocked by CleanTalk.