Created
September 21, 2012 03:31
-
-
Save cpw/3759575 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ForgeSubscribe | |
event(ForcedChunkLoad evt) | |
{ | |
for (ForcedChunkTicket ticket : evt.getTickets()) | |
{ | |
NBTTag data = ticket.getData(); | |
ChunkCoordIntPair chunk = ... figure out chunk from data | |
MinecraftForge.claim(ticket, chunk); | |
} | |
} | |
registerNewChunk(ChunkCoordIntPair chunk) | |
{ | |
ForcedChunkTicket ticket = MinecraftForge.getForcedChunkTicket(myModObject, <some nbt data>); | |
MinecraftForge.claim(ticket, chunk); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment