
mardiff
Members-
Content Count
158 -
Joined
-
Last visited
Community Reputation
21 ExcellentAbout mardiff
-
Rank
Creeper Killer
Converted
-
Gender
Undisclosed
-
Personal Text
Have a good day!
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
mardiff started following [SOLVED] Spawning Particles with an Item, Working Fluid Tank?, [Solved] Lemming's Fluid System and and 2 others
-
[1.6.4][SOLVED]Armor not giving player wearing it potion effects
mardiff replied to The_Fireplace's topic in Modder Support
So just to clarify, what do the if statements return that are checking whether or not the player is wearing the armor? We really don't know what the exact problem is... -
java.lang.ClassCastException when opening GUI of custom furnace
mardiff replied to MatthewGB's topic in Modder Support
Sorry for snapping at you then. Post your gui handler, your container, and your gui. Also, just go through every class and make sure the TileEntityFurnace isn't imported. Thst should immediately point out your problem. -
[1.7.2]Gui controls redstone power state of block
mardiff replied to KeeganDeathman's topic in Modder Support
Packets. Most likely I would send a packet to the tile entity if you have one for consistencies sake, and then have the tile entity update the blocks state like the furnace does. Since packets have changed a lot in 1.7, look here for how to use them: www.minecraftforge.net/wiki/Netty_Packet_Handling -
java.lang.ClassCastException when opening GUI of custom furnace
mardiff replied to MatthewGB's topic in Modder Support
If you had any idea what you were doing you would know exactly where to look when I said that. public class TileEntityEFurnace extends TileEntityFurnace implements ISidedInventory -
Id recommend using the LivingDeathEvent.
-
java.lang.ClassCastException when opening GUI of custom furnace
mardiff replied to MatthewGB's topic in Modder Support
Don't extend TileEntityFurnace. Extend TileEntity. -
Maybe you shouldn't be yelling at him for not knowing English and should instead try to answer his question. Oh, and by the way, it's syntaxes.
-
They really didn't... it's the same thing except EnumArmorMaterial is just Armor Material.
-
Show us your main class and your onBlockActivated in your block too.
-
[1.6.4] Change icon texture based on its state
mardiff replied to Camulorix's topic in Modder Support
If you know how to use metadata then use getIconFromDamage. -
Umm... I thought it was pretty self explanatory... the three methods take a variable from the tile entity and send it to the gui. Since the gui can't read the tile entity since it's on the client and the tile is on the server, the container has to manage their variables to make sure they are the same. That's why you see these methods check if, for example, the last burn time of the gui is the same as the tile entity. If you want to use them, just sub in your variables that you'll be using. If you only want to do exactly what you said in the first post, then just edit the gui. The container should do everything you'd like, but if not, just sub in your variables for the already-existing ones.
-
Well, you've got SuperNova.guiIdOxidizer in the server side switch when you're looking for the fragmenter I do believe. Be careful how you copy and paste.
-
Look at the vanilla furnace. To send the integer to the GUI, the container uses three methods. I think they're detectAndSendChanges, addCraftingToCrafters, and updateProgessBar. To have the time update, look at how the TileEntityFurnace class manages burnTime in updateEntity(). (Geez, I really need to do something different if I can remember all of that...)
-
Check the onUpdate method. It does exactly what Alias said it does as long as the entity is a player.
-
The furnace already sends an integer to the GUI, so al you would need to do is change where it gets the cook progress scaled and renders that as an image to just draw the burn time, cook time, or whatever you're looking for. Only the GUI should need to be changed as the container and the tile entity already take care of everything for you.