Uses of Enum Class
net.minecraft.world.entity.MobCategory
Package
Description
-
Uses of MobCategory in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static int
DebugMobSpawningCommand.spawnMobs(CommandSourceStack p_180115_, MobCategory p_180116_, BlockPos p_180117_)
-
Uses of MobCategory in net.minecraft.world.entity
Modifier and TypeFieldDescriptionprivate MobCategory
EntityType.Builder.category
private MobCategory
EntityType.category
Modifier and TypeFieldDescriptionprivate static Map<String,MobCategory>
MobCategory.BY_NAME
static com.mojang.serialization.Codec<MobCategory>
MobCategory.CODEC
Modifier and TypeMethodDescriptionstatic MobCategory
static MobCategory
MobCategory.create(String name, String id, int maxNumberOfCreatureIn, boolean isPeacefulCreatureIn, boolean isAnimalIn, int despawnDistance)
EntityType.getCategory()
static MobCategory
Returns the enum constant of this class with the specified name.static MobCategory[]
MobCategory.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic <T extends Entity>
EntityType.Builder<T>EntityType.Builder.createNothing(MobCategory p_20711_)
static <T extends Entity>
EntityType.Builder<T>EntityType.Builder.of(EntityType.EntityFactory<T> p_20705_, MobCategory p_20706_)
ModifierConstructorDescriptionprivate
Builder(EntityType.EntityFactory<T> p_20696_, MobCategory p_20697_)
EntityType(EntityType.EntityFactory<T> p_20574_, MobCategory p_20575_, boolean p_20576_, boolean p_20577_, boolean p_20578_, boolean p_20579_, com.google.common.collect.ImmutableSet<Block> p_20580_, EntityDimensions p_20581_, int p_20582_, int p_20583_)
EntityType(EntityType.EntityFactory<T> p_20574_, MobCategory p_20575_, boolean p_20576_, boolean p_20577_, boolean p_20578_, boolean p_20579_, com.google.common.collect.ImmutableSet<Block> p_20580_, EntityDimensions p_20581_, int p_20582_, int p_20583_, Predicate<EntityType<?>> velocityUpdateSupplier, ToIntFunction<EntityType<?>> trackingRangeSupplier, ToIntFunction<EntityType<?>> updateIntervalSupplier, BiFunction<FMLPlayMessages.SpawnEntity,Level,T> customClientFactory)
-
Uses of MobCategory in net.minecraft.world.entity.ai.behavior
-
Uses of MobCategory in net.minecraft.world.level
Modifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<MobCategory>
NaturalSpawner.SpawnState.mobCategoryCounts
private it.unimi.dsi.fastutil.objects.Object2IntMap<MobCategory>
NaturalSpawner.SpawnState.unmodifiableMobCategoryCounts
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.objects.Object2IntMap<MobCategory>
NaturalSpawner.SpawnState.getMobCategoryCounts()
Modifier and TypeMethodDescription(package private) boolean
NaturalSpawner.SpawnState.canSpawnForCategory(MobCategory p_47135_)
private static boolean
NaturalSpawner.canSpawnMobAt(ServerLevel p_47004_, StructureFeatureManager p_47005_, ChunkGenerator p_47006_, MobCategory p_47007_, MobSpawnSettings.SpawnerData p_47008_, BlockPos p_47009_)
private static Optional<MobSpawnSettings.SpawnerData>
NaturalSpawner.getRandomSpawnMobAt(ServerLevel p_151599_, StructureFeatureManager p_151600_, ChunkGenerator p_151601_, MobCategory p_151602_, Random p_151603_, BlockPos p_151604_)
private static boolean
NaturalSpawner.isValidSpawnPostitionForType(ServerLevel p_46996_, MobCategory p_46997_, StructureFeatureManager p_46998_, ChunkGenerator p_46999_, MobSpawnSettings.SpawnerData p_47000_, BlockPos.MutableBlockPos p_47001_, double p_47002_)
private static WeightedRandomList<MobSpawnSettings.SpawnerData>
NaturalSpawner.mobsAt(ServerLevel p_151592_, StructureFeatureManager p_151593_, ChunkGenerator p_151594_, MobCategory p_151595_, BlockPos p_151596_, Biome p_151597_)
static void
NaturalSpawner.spawnCategoryForChunk(MobCategory p_47046_, ServerLevel p_47047_, LevelChunk p_47048_, NaturalSpawner.SpawnPredicate p_47049_, NaturalSpawner.AfterSpawnCallback p_47050_)
static void
NaturalSpawner.spawnCategoryForPosition(MobCategory p_151613_, ServerLevel p_151614_, BlockPos p_151615_)
static void
NaturalSpawner.spawnCategoryForPosition(MobCategory p_47039_, ServerLevel p_47040_, ChunkAccess p_47041_, BlockPos p_47042_, NaturalSpawner.SpawnPredicate p_47043_, NaturalSpawner.AfterSpawnCallback p_47044_)
ModifierConstructorDescription(package private)
SpawnState(int p_47118_, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<MobCategory> p_47119_, PotentialCalculator p_47120_)
-
Uses of MobCategory in net.minecraft.world.level.biome
Modifier and TypeFieldDescriptionprotected Map<MobCategory,List<MobSpawnSettings.SpawnerData>>
MobSpawnSettings.Builder.spawners
MobSpawnSettings.spawners
private Set<MobCategory>
MobSpawnSettings.typesView
Modifier and TypeMethodDescriptionMobSpawnSettings.Builder.addSpawn(MobCategory p_48377_, MobSpawnSettings.SpawnerData p_48378_)
MobSpawnSettings.getMobs(MobCategory p_151799_)
ModifierConstructorDescription(package private)
MobSpawnSettings(float p_48334_, Map<MobCategory,WeightedRandomList<MobSpawnSettings.SpawnerData>> p_48335_, Map<EntityType<?>,MobSpawnSettings.MobSpawnCost> p_48336_, boolean p_48337_)
-
Uses of MobCategory in net.minecraft.world.level.chunk
Modifier and TypeMethodDescriptionChunkGenerator.getMobsAt(Biome p_156158_, StructureFeatureManager p_156159_, MobCategory p_156160_, BlockPos p_156161_)
-
Uses of MobCategory in net.minecraft.world.level.levelgen
Modifier and TypeMethodDescriptionNoiseBasedChunkGenerator.getMobsAt(Biome p_158433_, StructureFeatureManager p_158434_, MobCategory p_158435_, BlockPos p_158436_)
-
Uses of MobCategory in net.minecraft.world.level.levelgen.feature
Modifier and TypeMethodDescriptionNetherFortressFeature.getDefaultSpawnList(MobCategory category)
OceanMonumentFeature.getDefaultSpawnList(MobCategory category)
PillagerOutpostFeature.getDefaultSpawnList(MobCategory category)
SwamplandHutFeature.getDefaultSpawnList(MobCategory category)
StructureFeature.getSpawnList(MobCategory classification)
-
Uses of MobCategory in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault MobCategory
IForgeEntity.getClassification(boolean forSpawnCount)
Returns The classification of this entityModifier and TypeMethodDescriptiondefault List<MobSpawnSettings.SpawnerData>
IForgeStructureFeature.getDefaultSpawnList(MobCategory category)
Gets the default list of spawns for this structure, of the specified category.IForgeStructureFeature.getSpawnList(MobCategory classification)
Helper method to get the list of entity spawns for this structure for the given classification. -
Uses of MobCategory in net.minecraftforge.common.world
Modifier and TypeFieldDescriptionStructureSpawnManager.StructureSpawnInfo.spawns
private Set<MobCategory>
MobSpawnInfoBuilder.typesView
Modifier and TypeMethodDescriptionMobSpawnInfoBuilder.getSpawner(MobCategory type)
StructureSpawnManager.getSpawnList(StructureFeature<?> structure, MobCategory classification)
Gets the entity spawn lists for entities of a given classification for a given structure.StructureSpawnManager.getStructureSpawns(StructureFeatureManager structureManager, MobCategory classification, BlockPos pos)
Looks up if a given position is within a structure and returns any entity spawns that structure has for the given classification, or null if none are found.ModifierConstructorDescriptionprivate
StructureSpawnInfo(com.google.common.collect.ImmutableMap<MobCategory,WeightedRandomList<MobSpawnSettings.SpawnerData>> spawns, boolean insideOnly)
-
Uses of MobCategory in net.minecraftforge.debug.entity
-
Uses of MobCategory in net.minecraftforge.event.world
Modifier and TypeFieldDescriptionprivate Map<MobCategory,List<MobSpawnSettings.SpawnerData>>
StructureSpawnListGatherEvent.entitySpawns
private Map<MobCategory,List<MobSpawnSettings.SpawnerData>>
StructureSpawnListGatherEvent.entitySpawnsUnmodifiable
private Map<MobCategory,List<MobSpawnSettings.SpawnerData>>
StructureSpawnListGatherEvent.entitySpawnsUnmodifiableLists
Modifier and TypeMethodDescriptionStructureSpawnListGatherEvent.getEntitySpawns()
Gets an unmodifiable view of the map of spawns based on entity classification that is used to fill in the various spawn lists for the structure.Modifier and TypeMethodDescriptionvoid
StructureSpawnListGatherEvent.addEntitySpawn(MobCategory classification, MobSpawnSettings.SpawnerData spawner)
Adds a spawn to the list of spawns for the given classification.void
StructureSpawnListGatherEvent.addEntitySpawns(MobCategory classification, List<MobSpawnSettings.SpawnerData> spawners)
Adds spawns to the list of spawns for the given classification.StructureSpawnListGatherEvent.getEntitySpawns(MobCategory classification)
Gets an unmodifiable view of the the list representing the entity spawns for the given classification.private List<MobSpawnSettings.SpawnerData>
StructureSpawnListGatherEvent.getOrCreateEntitySpawns(MobCategory classification)
Gets the internal spawn list for a given entity classification, or adds one if needed.void
StructureSpawnListGatherEvent.removeEntitySpawn(MobCategory classification, MobSpawnSettings.SpawnerData spawner)
Removes a spawn from the list of spawns for the given classification.