Package net.minecraftforge.common.world
Class MobSpawnInfoBuilder
- java.lang.Object
-
- net.minecraft.world.biome.MobSpawnInfo.Builder
-
- net.minecraftforge.common.world.MobSpawnInfoBuilder
-
public class MobSpawnInfoBuilder extends MobSpawnInfo.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<EntityType<?>>
costView
private java.util.Set<EntityClassification>
typesView
-
Fields inherited from class net.minecraft.world.biome.MobSpawnInfo.Builder
creatureGenerationProbability, mobSpawnCosts, playerCanSpawn, spawners
-
-
Constructor Summary
Constructors Constructor Description MobSpawnInfoBuilder(MobSpawnInfo orig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MobSpawnInfoBuilder
disablePlayerSpawn()
MobSpawnInfo.SpawnCosts
getCost(EntityType<?> type)
java.util.Set<EntityType<?>>
getEntityTypes()
float
getProbability()
java.util.List<MobSpawnInfo.Spawners>
getSpawner(EntityClassification type)
java.util.Set<EntityClassification>
getSpawnerTypes()
-
Methods inherited from class net.minecraft.world.biome.MobSpawnInfo.Builder
addMobCharge, addSpawn, build, creatureGenerationProbability, setPlayerCanSpawn
-
-
-
-
Field Detail
-
typesView
private final java.util.Set<EntityClassification> typesView
-
costView
private final java.util.Set<EntityType<?>> costView
-
-
Constructor Detail
-
MobSpawnInfoBuilder
public MobSpawnInfoBuilder(MobSpawnInfo orig)
-
-
Method Detail
-
getSpawnerTypes
public java.util.Set<EntityClassification> getSpawnerTypes()
-
getSpawner
public java.util.List<MobSpawnInfo.Spawners> getSpawner(EntityClassification type)
-
getEntityTypes
public java.util.Set<EntityType<?>> getEntityTypes()
-
getCost
@Nullable public MobSpawnInfo.SpawnCosts getCost(EntityType<?> type)
-
getProbability
public float getProbability()
-
disablePlayerSpawn
public MobSpawnInfoBuilder disablePlayerSpawn()
-
-