本文整理汇总了Java中net.minecraft.world.chunk.Chunk.setChunkLoaded方法的典型用法代码示例。如果您正苦于以下问题:Java Chunk.setChunkLoaded方法的具体用法?Java Chunk.setChunkLoaded怎么用?Java Chunk.setChunkLoaded使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.world.chunk.Chunk
的用法示例。
在下文中一共展示了Chunk.setChunkLoaded方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadChunk
import net.minecraft.world.chunk.Chunk; //导入方法依赖的package包/类
/**
* loads or generates the chunk at the chunk location specified
*/
public Chunk loadChunk(int p_73158_1_, int p_73158_2_)
{
Chunk chunk = new Chunk(this.worldObj, p_73158_1_, p_73158_2_);
this.chunkMapping.add(ChunkCoordIntPair.chunkXZ2Int(p_73158_1_, p_73158_2_), chunk);
this.chunkListing.add(chunk);
chunk.setChunkLoaded(true);
return chunk;
}
示例2: loadChunk
import net.minecraft.world.chunk.Chunk; //导入方法依赖的package包/类
/**
* loads or generates the chunk at the chunk location specified
*/
public Chunk loadChunk(int chunkX, int chunkZ)
{
Chunk chunk = new Chunk(this.worldObj, chunkX, chunkZ);
this.chunkMapping.put(ChunkPos.asLong(chunkX, chunkZ), chunk);
chunk.setChunkLoaded(true);
return chunk;
}
示例3: loadChunk
import net.minecraft.world.chunk.Chunk; //导入方法依赖的package包/类
/**
* loads or generates the chunk at the chunk location specified
*/
public Chunk loadChunk(int chunkX, int chunkZ)
{
Chunk chunk = new Chunk(this.worldObj, chunkX, chunkZ);
this.chunkMapping.put(ChunkPos.asLong(chunkX, chunkZ), chunk);
net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.world.ChunkEvent.Load(chunk));
chunk.setChunkLoaded(true);
return chunk;
}