Jump to content

Quintinity

Members
  • Posts

    17
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Quintinity's Achievements

Tree Puncher

Tree Puncher (2/8)

3

Reputation

  1. Right here: http://files.minecraftforge.net/
  2. My suggestion is to load tile entities in the @Init method, not @PreInit. Try that.
  3. You could use ASM transformers to override the classes...
  4. 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.
  5. 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
  6. 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.
  7. Nuuu, we trademarked them as "glowy floaty ball things". ;P
  8. 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());
  9. Like this? This is part of the upcoming Betweenlands mod.
  10. 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());
  11. 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.
  12. 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"); }
  13. I don't see how Lex being a prick will stop people from using the most useful Minecraft API that exists.
×
×
  • Create New...

Important Information

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