Jump to content

stevengeorge123

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by stevengeorge123

  1. Well this is embarassing.... new ChunkCoordIntPair(this.xCoord / 16, this.yCoord / 16) when forcing the chunk. I used the yCoord instead of the zCoord.
  2. I mean I'd rather go through forge's system for it. I'm pretty sure the vanilla player entity loads chunks in a completely separate way. There's no need to "trick" the system when forge has a system built just for this. I just can't figure out how to use forge's system.
  3. I don't mean refelction. http://www.minecraftforge.net/wiki/Using_Access_Transformers
  4. You could use an access transformer to gain access to the field.
  5. I'm still unable to get this working. I would be very grateful to anyone who can help.
  6. Thanks for your suggestion. If I'm reading Buildcraft's code correctly, the ticket is created and used in the TileEntity update method with an initialized boolean to make sure that it only happens once. I tried using this method rather than the validate function, however it did not been to change the results. Many more tickets are created than needed and the chunk doesn't seem to be loaded. Any other suggestions?
  7. I'm trying to create a simple chunk loader to load just the chunk the block is located in. I read about Forge's ticket system, however I'm not sure I understand it. This is what I have so far: public class TileLoader extends TileEntity { private ForgeChunkManager.Ticket ticket; @Override public void validate() { super.validate(); if (!worldObj.isRemote && ticket == null) { ticket = ForgeChunkManager.requestTicket(LoaderTest.instance, this.worldObj, ForgeChunkManager.Type.NORMAL); ForgeChunkManager.forceChunk(ticket, new ChunkCoordIntPair(this.xCoord / 16, this.yCoord / 16)); } } @Override public void invalidate() { super.invalidate(); ForgeChunkManager.releaseTicket(ticket); } } With this code, many more tickets are created than needed and it doesn't seem to even load the chunk it is. What have I done wrong?
  8. In my opinion, it looks weird next to all the other items.
  9. Why are all of the item names in all caps?
  10. Hi, I'm trying to make a chunk loader, however, I have run into some difficulty. It works perfectly in the overworld, however, it just doesn't work at all in other dimensions. I don't know what could cause this because nothing I know of in the Forge chunk manager is dimension-specific. Is there something obvious I may have done incorrectly to cause this?
×
×
  • Create New...

Important Information

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