Jump to content

HassanS6000

Members
  • Posts

    56
  • Joined

  • Last visited

Everything posted by HassanS6000

  1. Hey, I was wondering if there was any way to check where an IMessage is sent from? That way I can filter out an IMessage sent from a certain mod to my SimpleNetworkWrapper? Is there an event or something I can use? Thanks, Hassan
  2. @jabelar @elix Thanks for the suggestions, but neither helped.
  3. No, that's not why. I showed my proxy class whose methods are called by my main class. My main class is the one with the @EventHandler annotations.
  4. Hi! Basically, I want to replace snow and ice so they do not melt, and use the substitution alias system to avoid using ASM. I have replaced the ItemBlock and Block here: https://gist.github.com/hsyyid/ae6e14b6128f5aee27d8 but to no avail. Instead of replacing the snow and the ice, it appears that the ItemBlock does nothing when right clicked, and the snow and ice items DO NOT have textures anymore. Any and all help would be greatly appreciated!
  5. Figured it out with help from IRC, it was because my inventory was null in my TileEntity
  6. First off, don't just thank fry, thank shadekiller666 as well (he wrote the loader). Where exactly are you registering your custom model resource location? In your Main class or in a proxy? What is the unlocalized name of the item "Usp"? Do you have your blockstate for the item in the correct area? You need to give more info.
  7. I'm trying to create a GUI for a TileEntity on Minecraft 1.8. Basically I want to be able to put in a single book that has been written in, otherwise open the book inside. I am stuck with the GUI allowing you to enter the book. However, I keep getting an Null Pointer Exception from the Slot class: http://pastebin.com/tDE1wAwP My code: Container: http://pastebin.com/9R5MrmG5 Gui: http://pastebin.com/YdCg8wtN Gui Handler: http://pastebin.com/tDwbBj41 Block: http://pastebin.com/UKtR0WtT Any ideas and help would be greatly appreciated!
  8. UPDATE No.2 I can get it to render - it's just screwed up. Here's what it's supposed to look like: http://snag.gy/hefWK.jpg Here's what it looks like: http://snag.gy/gqMQ0.jpg Here's my GitHub Repository: https://github.com/hsyyid/HaloMod Any help would be appreciated!
  9. UPDATE! I fixed the crashing issue.. I forgot about worldRenderer.startDrawingQuads() However, I still cannot see my model, as I don't know what to do for addVertex().. am I supposed to use the vertexData?
  10. Thanks Ernio! I'm not so sure what to do from here... It crashes now but I'm 80% sure I'm not using Tessellator correctly.. Crash-Report: http://pastebin.com/nt1gHi87 RenderMongooseEntity Class: http://pastebin.com/XXk6LVSh
  11. Alright I've used ModelBakeEvent to get my IBakedModel. Now, how would I do worldrenderer.addVertexData(); from there? I can get a list of all the quads from my IBakedModel, but that does not return a list of int's - I think..
  12. LOL... I was being so stupid!! Thanks for your help!
  13. Yes I do. I can't use the event because I can't pass in any of the parameters.
  14. How? I can't use ModelBakeEvent because I don't know any of the parameters.. ModelManager, ModelLoader, and IRegistry
  15. Thanks! How would I actually use that in my class? I had a link to a paste-bin copy of it above. I don't have an IBakedModel - I have an IModel.
  16. I can't do what is done in RenderFallingBlock... it causes my game to crash because I can't pass in a block state... as I'm not rendering a block, rather an entity. Here is my class: http://pastebin.com/b8TNAVZf What are ModelLoaderRegistry, and ICustomModelLoader. In this forum posting: http://www.minecraftforge.net/forum/index.php?topic=27505.0 it says the new ModelLoaderRegistry is a "replacement for IAdvancedModelLoader"
  17. OK. How would I go about actually rendering it, if I can't bake my model?
  18. I'm not sure I understand what you mean exactly. I want to use a .obj or .b3d model for my entity and some items. How would registering my model and making a ModelResourceLocation make it render? I've already loaded my model into an IModel, but I want that IModel to render now. How do I do that??? ModelBakeEvent requires the following parameters ModelManager, IRegistry and ModelLoader, and B3DLoader.instance doesn't work for a ModelLoader..
  19. What am I supposed to do then? I have a model and want to render it..
  20. Alright I've gotten pretty far from what you've given me so far. Still don't know what to put in for the actual model.bake() parameters. The VertexFormat, and the bakedTextureGetter.
  21. Are you sure? The BlockModelRenderer may work but I'm not sure what to put for all the parameters. Such as VertexFormat, bakedTextureGetter, blockPosIn, worldRendererIn, blockAccessIn, and blockStateIn.
  22. There was a IModelCustom class which had a render method... was there any replacement of that in 1.8?
  23. Okay I got my entity with the B3D Model. I have an IModel - which doesn't have a render method... what do I do now?
  24. It's a format for 3D Models that Forge started supporting after 1.8 was released.
  25. Not working for my item.. just getting purple and black squares..
×
×
  • Create New...

Important Information

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