本文整理汇总了Java中net.minecraft.world.biome.BiomeEndDecorator类的典型用法代码示例。如果您正苦于以下问题:Java BiomeEndDecorator类的具体用法?Java BiomeEndDecorator怎么用?Java BiomeEndDecorator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BiomeEndDecorator类属于net.minecraft.world.biome包,在下文中一共展示了BiomeEndDecorator类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: findAliveCrystals
import net.minecraft.world.biome.BiomeEndDecorator; //导入依赖的package包/类
private void findAliveCrystals()
{
this.ticksSinceCrystalsScanned = 0;
this.aliveCrystals = 0;
for (WorldGenSpikes.EndSpike worldgenspikes$endspike : BiomeEndDecorator.getSpikesForWorld(this.world))
{
this.aliveCrystals += this.world.getEntitiesWithinAABB(EntityEnderCrystal.class, worldgenspikes$endspike.getTopBoundingBox()).size();
}
LOGGER.debug("Found {} end crystals still alive", new Object[] {Integer.valueOf(this.aliveCrystals)});
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:13,代码来源:DragonFightManager.java
示例2: resetSpikeCrystals
import net.minecraft.world.biome.BiomeEndDecorator; //导入依赖的package包/类
public void resetSpikeCrystals()
{
for (WorldGenSpikes.EndSpike worldgenspikes$endspike : BiomeEndDecorator.getSpikesForWorld(this.world))
{
for (EntityEnderCrystal entityendercrystal : this.world.getEntitiesWithinAABB(EntityEnderCrystal.class, worldgenspikes$endspike.getTopBoundingBox()))
{
entityendercrystal.setEntityInvulnerable(false);
entityendercrystal.setBeamTarget((BlockPos)null);
}
}
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:12,代码来源:DragonFightManager.java
示例3: populate
import net.minecraft.world.biome.BiomeEndDecorator; //导入依赖的package包/类
@Override public void populate(int x, int z)
{
if (YUNoMakeGoodMap.instance.shouldBeVoid(world))
{
WorldGenSpikes.EndSpike[] aworldgenspikes$endspike = BiomeEndDecorator.getSpikesForWorld(world);
for (WorldGenSpikes.EndSpike worldgenspikes$endspike : aworldgenspikes$endspike)
{
if (worldgenspikes$endspike.doesStartInChunk(new BlockPos(x*16, 0, z*16)))
{
this.spikes.setSpike(worldgenspikes$endspike);
this.spikes.generate(world, endRNG, new BlockPos(worldgenspikes$endspike.getCenterX(), 45, worldgenspikes$endspike.getCenterZ()));
}
}
}
if (YUNoMakeGoodMap.instance.shouldGenerateEndCities(this.world))
{
this.endCityGen.generateStructure(world, endRNG, new ChunkPos(x, z));
}
if (x == 0 && z == 0)
{
// Allows exit portal to be placed correctly. DragonFightManager will take over from here...
world.setBlockState(new BlockPos(0, 45, 0), Blocks.END_STONE.getDefaultState());
}
}
开发者ID:LexManos,项目名称:YUNoMakeGoodMap,代码行数:28,代码来源:WorldProviderEndVoid.java
示例4: BiomeGenEnd
import net.minecraft.world.biome.BiomeEndDecorator; //导入依赖的package包/类
public BiomeGenEnd(int p_i1990_1_) {
super(p_i1990_1_);
this.field_76761_J.clear();
this.field_76762_K.clear();
this.field_76755_L.clear();
this.field_82914_M.clear();
this.field_76761_J.add(new SpawnListEntry(EntityEnderman.class, 10, 4, 4));
this.field_76752_A = (byte)Block.field_71979_v.field_71990_ca;
this.field_76753_B = (byte)Block.field_71979_v.field_71990_ca;
this.field_76760_I = new BiomeEndDecorator(this);
}
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:12,代码来源:BiomeGenEnd.java
注:本文中的net.minecraft.world.biome.BiomeEndDecorator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论