类net.minecraft.world.ChunkRegion源码实例Demo

下面列出了怎么用net.minecraft.world.ChunkRegion的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: the-hallow   文件: HallowedChunkGenerator.java
@Override
public void populateEntities(ChunkRegion region) {
	int centreX = region.getCenterChunkX();
	int centreZ = region.getCenterChunkZ();
	Biome biome = region.getBiome((new ChunkPos(centreX, centreZ)).getCenterBlockPos());
	ChunkRandom chunkRandom = new ChunkRandom();
	chunkRandom.setSeed(region.getSeed(), centreX << 4, centreZ << 4);
	SpawnHelper.populateEntities(region, biome, centreX, centreZ, chunkRandom);
}
 
源代码2 项目: carpet-extra   文件: ChunkGeneratorMixin.java
@Inject(method = "generateFeatures", at = @At("HEAD"))
private void onGenerateFeaturesStart(ChunkRegion chunkRegion_1, CallbackInfo ci)
{
    if (CarpetExtraSettings.dragonEggBedrockBreaking)
        DragonEggBedrockBreaking.fallInstantly = true;
}
 
源代码3 项目: carpet-extra   文件: ChunkGeneratorMixin.java
@Inject(method = "generateFeatures", at = @At("TAIL"))
private void onGenerateFeaturesEnd(ChunkRegion chunkRegion_1, CallbackInfo ci)
{
    if (CarpetExtraSettings.dragonEggBedrockBreaking)
        DragonEggBedrockBreaking.fallInstantly = false;
}
 
 类所在包
 类方法
 同包方法