Quintinity
Members-
Posts
17 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I am new!
Quintinity's Achievements
Tree Puncher (2/8)
3
Reputation
-
Right here: http://files.minecraftforge.net/
-
Would love access to a couple of methods in PlayerManager.java
Quintinity replied to MrMasochism's topic in Suggestions
Actually, this is much easily done with Reflection. -
TileEntitySpecialRenderer custom block model issues....
Quintinity replied to Jakemichie97's topic in Modder Support
My suggestion is to load tile entities in the @Init method, not @PreInit. Try that. -
You could use ASM transformers to override the classes...
-
Couldn't you just make the relic check for hostile mobs around it every second or so? That seems like the easiest way to go.
-
[Solved] Restoring texture overwrites for custom textures
Quintinity replied to Ivorius's topic in Suggestions
Just thought to let you know that this has been fix in build #379. You can see the changelog here: http://files.minecraftforge.net/minecraftforge-changelog-6.4.0.380.txt -
Making items have a custom model when held
Quintinity replied to Thor597's topic in General Discussion
Yes, ITEMID is the shiftedIndex. You don't need to register a model for it, just render the model when the renderItem method is called. Just make a model like you would for an entity, except you don't to register anything except for the item renderer. -
Nuuu, we trademarked them as "glowy floaty ball things". ;P
-
Making items have a custom model when held
Quintinity replied to Thor597's topic in General Discussion
This is pretty easy to do, actually. Use the IItemRenderer interface to override item rendering. Here's an example: package whatever; import net.minecraft.src.*; import net.minecraftforge.client.IItemRenderer; public class TestRenderer implements IItemRenderer { public boolean handleRenderType(ItemStack item, ItemRenderType type) { if (type == ItemRenderType.EQUIPPED) { return true; } return false; } public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { return false; } public void renderItem(ItemRenderType type, ItemStack item, Object... data) { if (type == ItemRenderType.EQUIPPED) { RenderBlocks blockRenderer = (RenderBlocks)data[0]; EntityLiving entity = (EntityLiving)data[1]; // entity holding the item // render item here } } } Register it like this in your client proxy: MinecraftForgeClient.registerItemRenderer(ITEMID, new TestRenderer()); -
Like this? This is part of the upcoming Betweenlands mod.
-
It's quite simple actually. Create a class that implements IChatListener. public class ChatHandler implements IChatListener { public Packet3Chat serverChat(NetHandler handler, Packet3Chat message) { //handle server chat } public Packet3Chat clientChat(NetHandler handler, Packet3Chat message) { //handle client chat } } Register it like this in your Init method: NetworkRegistry.instance().registerChatListener(new ChatHandler());
-
Requesting OGL context with stencil buffer from within a mod
Quintinity replied to Umpani's topic in General Discussion
Hello, From what I can tell, there is no way to request a stencil buffer without editing the Minecraft class. That shouldn't be to much a problem. I don't know of any popular mods that edit that class unless it's some noob who can't use reflections. Also, Optifine doesn't edit it. So, you have tow options. Edit the class or change your code so it doesn't require a stencil buffer. Either work would work. -
Add these methods to your tile entity class. public Packet getAuxillaryInfoPacket() { NBTTagCompound tag = new NBTTagCompound(); this.writeToNBT(tag); return new Packet132TileEntityData(this.xCoord, this.yCoord, this.zCoord, 1, tag); } public void onDataPacket(NetworkManager net, Packet132TileEntityData packet) { NBTTagCompound tag = packet.customParam1; shadows = tag.getInteger("shadows"); }
-
I don't see how Lex being a prick will stop people from using the most useful Minecraft API that exists.
-
Replacing / Removing a placed block
Quintinity replied to L.J.Duckfield's topic in General Discussion
um. world.setBlockId(x, y, z, 0); ?