@Override
public void processCommand(ICommandSender icommandsender, String[] astring)
{
ChunkyPeripherals.logger.info("World: " + icommandsender.getEntityWorld().getWorldInfo().getWorldName());
ImmutableSetMultimap<ChunkCoordIntPair, Ticket> l = ForgeChunkManager.getPersistentChunksFor(icommandsender.getEntityWorld());
Collection<Ticket> c =l.values();
Iterator<Ticket> i = c.iterator();
int count=0;
while (i.hasNext())
{
Ticket t = i.next();
ChunkyPeripherals.logger.info("ticket #"+(count++)+" ="+t);
ImmutableSet<ChunkCoordIntPair> sc = t.getChunkList();
ImmutableList<ChunkCoordIntPair> lc = sc.asList();
Iterator<ChunkCoordIntPair> ic = lc.iterator();
while(ic.hasNext())
{
ChunkCoordIntPair ccoord = ic.next();
ChunkyPeripherals.logger.info("chunk " + ccoord.toString() + "("+ ccoord.chunkXPos*16+" ; "+ ccoord.chunkZPos*16 + ")");
}
}
}
CRModListForgePersistentChunks.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:ChunkyPeripherals
作者:
评论列表
文章目录