本文整理匯總了Java中net.minecraft.world.biome.Biome.SpawnListEntry方法的典型用法代碼示例。如果您正苦於以下問題:Java Biome.SpawnListEntry方法的具體用法?Java Biome.SpawnListEntry怎麽用?Java Biome.SpawnListEntry使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.world.biome.Biome
的用法示例。
在下文中一共展示了Biome.SpawnListEntry方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getPossibleCreatures
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
@Override
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos) {
Biome biome = this.world.getBiome(pos);
/*
* if (this.mapFeaturesEnabled) { if (creatureType ==
* EnumCreatureType.MONSTER &&
* this.scatteredFeatureGenerator.isSwampHut(pos)) { return
* this.scatteredFeatureGenerator.getScatteredFeatureSpawnList(); }
*
* if (creatureType == EnumCreatureType.MONSTER &&
* this.settings.useMonuments &&
* this.oceanMonumentGenerator.isPositionInStructure(this.world, pos)) {
* return this.oceanMonumentGenerator.getScatteredFeatureSpawnList(); }
* }
*/
return biome.getSpawnableList(creatureType);
}
示例2: getPossibleCreatures
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
if (creatureType == EnumCreatureType.MONSTER)
{
if (this.genNetherBridge.isInsideStructure(pos))
{
return this.genNetherBridge.getSpawnList();
}
if (this.genNetherBridge.isPositionInStructure(this.world, pos) && this.world.getBlockState(pos.down()).getBlock() == Blocks.NETHER_BRICK)
{
return this.genNetherBridge.getSpawnList();
}
}
Biome biome = this.world.getBiome(pos);
return biome.getSpawnableList(creatureType);
}
示例3: getPossibleCreatures
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
Biome biome = this.worldObj.getBiome(pos);
if (this.mapFeaturesEnabled)
{
if (creatureType == EnumCreatureType.MONSTER && this.scatteredFeatureGenerator.isSwampHut(pos))
{
return this.scatteredFeatureGenerator.getScatteredFeatureSpawnList();
}
if (creatureType == EnumCreatureType.MONSTER && this.settings.useMonuments && this.oceanMonumentGenerator.isPositionInStructure(this.worldObj, pos))
{
return this.oceanMonumentGenerator.getScatteredFeatureSpawnList();
}
}
return biome.getSpawnableList(creatureType);
}
示例4: getPotentialSpawns
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public static List<Biome.SpawnListEntry> getPotentialSpawns(WorldServer world, EnumCreatureType type, BlockPos pos, List<Biome.SpawnListEntry> oldList)
{
WorldEvent.PotentialSpawns event = new WorldEvent.PotentialSpawns(world, type, pos, oldList);
if (MinecraftForge.EVENT_BUS.post(event))
{
return null;
}
return event.getList();
}
示例5: getPossibleCreatures
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
Biome biome = this.worldObj.getBiome(pos);
return biome.getSpawnableList(creatureType);
}
示例6: getScatteredFeatureSpawnList
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public List<Biome.SpawnListEntry> getScatteredFeatureSpawnList()
{
return MONUMENT_ENEMIES;
}
示例7: getPossibleCreatures
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
@Override
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos) {
return null;
}
示例8: getSpawnEntries
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public List<Biome.SpawnListEntry> getSpawnEntries() {
return spawnEntries;
}
示例9: getPossibleCreatures
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
return this.worldObj.getBiome(pos).getSpawnableList(creatureType);
}
示例10: getPossibleCreatures
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
@Override
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos) {
return Collections.emptyList();
}
示例11: canCreatureTypeSpawnHere
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public boolean canCreatureTypeSpawnHere(EnumCreatureType creatureType, Biome.SpawnListEntry spawnListEntry, BlockPos pos)
{
List<Biome.SpawnListEntry> list = this.getChunkProvider().getPossibleCreatures(creatureType, pos);
list = net.minecraftforge.event.ForgeEventFactory.getPotentialSpawns(this, creatureType, pos, list);
return list != null && !list.isEmpty() ? list.contains(spawnListEntry) : false;
}
示例12: getSpawnListEntryForTypeAt
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
@Nullable
public Biome.SpawnListEntry getSpawnListEntryForTypeAt(EnumCreatureType creatureType, BlockPos pos)
{
List<Biome.SpawnListEntry> list = this.getChunkProvider().getPossibleCreatures(creatureType, pos);
return list != null && !list.isEmpty() ? (Biome.SpawnListEntry)WeightedRandom.getRandomItem(this.rand, list) : null;
}
示例13: getScatteredFeatureSpawnList
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public List<Biome.SpawnListEntry> getScatteredFeatureSpawnList()
{
return this.scatteredFeatureSpawnList;
}
示例14: getPossibleCreatures
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
return this.chunkGenerator.getPossibleCreatures(creatureType, pos);
}
示例15: getSpawnList
import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public List<Biome.SpawnListEntry> getSpawnList()
{
return this.spawnList;
}