本文整理汇总了Java中net.minecraft.world.chunk.Chunk.getInhabitedTime方法的典型用法代码示例。如果您正苦于以下问题:Java Chunk.getInhabitedTime方法的具体用法?Java Chunk.getInhabitedTime怎么用?Java Chunk.getInhabitedTime使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.world.chunk.Chunk
的用法示例。
在下文中一共展示了Chunk.getInhabitedTime方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateStructures
import net.minecraft.world.chunk.Chunk; //导入方法依赖的package包/类
@Override
public boolean generateStructures(Chunk chunkIn, int x, int z) {
boolean flag = false;
if (this.settings.useMonuments && this.mapFeaturesEnabled && chunkIn.getInhabitedTime() < 3600L) {
// flag |= this.oceanMonumentGenerator.generateStructure(this.world,
// this.rand, new ChunkPos(x, z));
}
return flag;
}
示例2: func_177460_a
import net.minecraft.world.chunk.Chunk; //导入方法依赖的package包/类
public boolean func_177460_a(IChunkProvider p_177460_1_, Chunk p_177460_2_, int p_177460_3_, int p_177460_4_)
{
boolean flag = false;
if (this.settings.useMonuments && this.mapFeaturesEnabled && p_177460_2_.getInhabitedTime() < 3600L)
{
flag |= this.oceanMonumentGenerator.generateStructure(this.worldObj, this.rand, new ChunkCoordIntPair(p_177460_3_, p_177460_4_));
}
return flag;
}
示例3: generateStructures
import net.minecraft.world.chunk.Chunk; //导入方法依赖的package包/类
public boolean generateStructures(Chunk chunkIn, int x, int z)
{
boolean flag = false;
if (this.settings.useMonuments && this.mapFeaturesEnabled && chunkIn.getInhabitedTime() < 3600L)
{
flag |= this.oceanMonumentGenerator.generateStructure(this.worldObj, this.rand, new ChunkPos(x, z));
}
return flag;
}