Uses of Enum Class
net.minecraft.world.entity.MobCategory
Packages that use MobCategory
Package
Description
-
Uses of MobCategory in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type MobCategoryModifier and TypeMethodDescriptionprivate static intDebugMobSpawningCommand.spawnMobs(CommandSourceStack p_180115_, MobCategory p_180116_, BlockPos p_180117_) -
Uses of MobCategory in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as MobCategoryModifier and TypeFieldDescriptionprivate final MobCategoryEntityType.Builder.categoryprivate final MobCategoryEntityType.categoryFields in net.minecraft.world.entity with type parameters of type MobCategoryModifier and TypeFieldDescriptionprivate static final Map<String,MobCategory> MobCategory.BY_NAMEstatic final com.mojang.serialization.Codec<MobCategory>MobCategory.CODECMethods in net.minecraft.world.entity that return MobCategoryModifier and TypeMethodDescriptionstatic MobCategorystatic MobCategoryMobCategory.create(String name, String id, int maxNumberOfCreatureIn, boolean isPeacefulCreatureIn, boolean isAnimalIn, int despawnDistance) EntityType.getCategory()static MobCategoryReturns 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.Methods in net.minecraft.world.entity with parameters of type MobCategoryModifier 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_) Constructors in net.minecraft.world.entity with parameters of type MobCategoryModifierConstructorDescriptionprivateBuilder(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<PlayMessages.SpawnEntity, Level, T> customClientFactory) -
Uses of MobCategory in net.minecraft.world.entity.ai.behavior
Constructors in net.minecraft.world.entity.ai.behavior with parameters of type MobCategory -
Uses of MobCategory in net.minecraft.world.level
Fields in net.minecraft.world.level declared as MobCategoryModifier and TypeFieldDescriptionprivate static final MobCategory[]NaturalSpawner.SPAWNING_CATEGORIESFields in net.minecraft.world.level with type parameters of type MobCategoryModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.Object2IntMap<MobCategory>LocalMobCapCalculator.MobCounts.countsprivate final it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<MobCategory>NaturalSpawner.SpawnState.mobCategoryCountsprivate final it.unimi.dsi.fastutil.objects.Object2IntMap<MobCategory>NaturalSpawner.SpawnState.unmodifiableMobCategoryCountsMethods in net.minecraft.world.level that return types with arguments of type MobCategoryModifier and TypeMethodDescriptionit.unimi.dsi.fastutil.objects.Object2IntMap<MobCategory>NaturalSpawner.SpawnState.getMobCategoryCounts()Methods in net.minecraft.world.level with parameters of type MobCategoryModifier and TypeMethodDescriptionvoidLocalMobCapCalculator.MobCounts.add(MobCategory p_186518_) voidLocalMobCapCalculator.addMob(ChunkPos p_186513_, MobCategory p_186514_) booleanLocalMobCapCalculator.canSpawn(MobCategory p_186505_, ChunkPos p_186506_) booleanLocalMobCapCalculator.MobCounts.canSpawn(MobCategory p_186523_) (package private) booleanNaturalSpawner.SpawnState.canSpawnForCategory(MobCategory p_186549_, ChunkPos p_186550_) private static booleanNaturalSpawner.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_) static booleanNaturalSpawner.isInNetherFortressBounds(BlockPos p_186530_, ServerLevel p_186531_, MobCategory p_186532_, StructureFeatureManager p_186533_) private static booleanNaturalSpawner.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_204169_, StructureFeatureManager p_204170_, ChunkGenerator p_204171_, MobCategory p_204172_, BlockPos p_204173_, Holder<Biome> p_204174_) static voidNaturalSpawner.spawnCategoryForChunk(MobCategory p_47046_, ServerLevel p_47047_, LevelChunk p_47048_, NaturalSpawner.SpawnPredicate p_47049_, NaturalSpawner.AfterSpawnCallback p_47050_) static voidNaturalSpawner.spawnCategoryForPosition(MobCategory p_151613_, ServerLevel p_151614_, BlockPos p_151615_) static voidNaturalSpawner.spawnCategoryForPosition(MobCategory p_47039_, ServerLevel p_47040_, ChunkAccess p_47041_, BlockPos p_47042_, NaturalSpawner.SpawnPredicate p_47043_, NaturalSpawner.AfterSpawnCallback p_47044_) Constructor parameters in net.minecraft.world.level with type arguments of type MobCategoryModifierConstructorDescription(package private)SpawnState(int p_186544_, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<MobCategory> p_186545_, PotentialCalculator p_186546_, LocalMobCapCalculator p_186547_) -
Uses of MobCategory in net.minecraft.world.level.biome
Fields in net.minecraft.world.level.biome with type parameters of type MobCategoryModifier and TypeFieldDescriptionprotected final Map<MobCategory,List<MobSpawnSettings.SpawnerData>> MobSpawnSettings.Builder.spawnersprivate final Map<MobCategory,WeightedRandomList<MobSpawnSettings.SpawnerData>> MobSpawnSettings.spawnersprivate final Set<MobCategory>MobSpawnSettings.typesViewMethods in net.minecraft.world.level.biome that return types with arguments of type MobCategoryMethods in net.minecraft.world.level.biome with parameters of type MobCategoryModifier and TypeMethodDescriptionMobSpawnSettings.Builder.addSpawn(MobCategory p_48377_, MobSpawnSettings.SpawnerData p_48378_) MobSpawnSettings.getMobs(MobCategory p_151799_) Constructor parameters in net.minecraft.world.level.biome with type arguments of type MobCategoryModifierConstructorDescription(package private)MobSpawnSettings(float p_196689_, Map<MobCategory, WeightedRandomList<MobSpawnSettings.SpawnerData>> p_196690_, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> p_196691_) -
Uses of MobCategory in net.minecraft.world.level.chunk
Methods in net.minecraft.world.level.chunk with parameters of type MobCategoryModifier and TypeMethodDescriptionChunkGenerator.getMobsAt(Holder<Biome> p_204386_, StructureFeatureManager p_204387_, MobCategory p_204388_, BlockPos p_204389_) -
Uses of MobCategory in net.minecraft.world.level.levelgen.feature
Fields in net.minecraft.world.level.levelgen.feature with type parameters of type MobCategoryModifier and TypeFieldDescriptionfinal Map<MobCategory,StructureSpawnOverride> ConfiguredStructureFeature.spawnOverridesMethod parameters in net.minecraft.world.level.levelgen.feature with type arguments of type MobCategoryModifier and TypeMethodDescriptionConfiguredStructureFeature<C,? extends StructureFeature<C>> StructureFeature.configured(C p_209774_, TagKey<Biome> p_209775_, boolean p_209776_, Map<MobCategory, StructureSpawnOverride> p_209777_) ConfiguredStructureFeature<C,? extends StructureFeature<C>> StructureFeature.configured(C p_209766_, TagKey<Biome> p_209767_, Map<MobCategory, StructureSpawnOverride> p_209768_) Constructor parameters in net.minecraft.world.level.levelgen.feature with type arguments of type MobCategoryModifierConstructorDescriptionConfiguredStructureFeature(F p_209747_, FC p_209748_, HolderSet<Biome> p_209749_, boolean p_209750_, Map<MobCategory, StructureSpawnOverride> p_209751_) -
Uses of MobCategory in net.minecraftforge.common.extensions
Methods in net.minecraftforge.common.extensions that return MobCategoryModifier and TypeMethodDescriptiondefault MobCategoryIForgeEntity.getClassification(boolean forSpawnCount) Returns The classification of this entity -
Uses of MobCategory in net.minecraftforge.common.world
Fields in net.minecraftforge.common.world with type parameters of type MobCategoryModifier and TypeFieldDescriptionprivate final Set<MobCategory>MobSpawnSettingsBuilder.typesViewMethods in net.minecraftforge.common.world that return types with arguments of type MobCategoryMethods in net.minecraftforge.common.world with parameters of type MobCategory -
Uses of MobCategory in net.minecraftforge.debug.entity
Fields in net.minecraftforge.debug.entity declared as MobCategory -
Uses of MobCategory in net.minecraftforge.event
Methods in net.minecraftforge.event with parameters of type MobCategoryModifier and TypeMethodDescriptionForgeEventFactory.getPotentialSpawns(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList) -
Uses of MobCategory in net.minecraftforge.event.world
Fields in net.minecraftforge.event.world declared as MobCategoryModifier and TypeFieldDescriptionprivate final MobCategoryWorldEvent.PotentialSpawns.mobcategoryFields in net.minecraftforge.event.world with type parameters of type MobCategoryModifier and TypeFieldDescriptionprivate final Map<MobCategory,List<MobSpawnSettings.SpawnerData>> StructureSpawnListGatherEvent.entitySpawnsprivate final Map<MobCategory,List<MobSpawnSettings.SpawnerData>> StructureSpawnListGatherEvent.entitySpawnsUnmodifiableprivate final Map<MobCategory,List<MobSpawnSettings.SpawnerData>> StructureSpawnListGatherEvent.entitySpawnsUnmodifiableListsMethods in net.minecraftforge.event.world that return MobCategoryModifier and TypeMethodDescriptionWorldEvent.PotentialSpawns.getMobCategory()Returns the category of the mobs in the spawn list..Methods in net.minecraftforge.event.world that return types with arguments of type MobCategoryModifier 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.Methods in net.minecraftforge.event.world with parameters of type MobCategoryModifier and TypeMethodDescriptionvoidStructureSpawnListGatherEvent.addEntitySpawn(MobCategory classification, MobSpawnSettings.SpawnerData spawner) Adds a spawn to the list of spawns for the given classification.voidStructureSpawnListGatherEvent.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.voidStructureSpawnListGatherEvent.removeEntitySpawn(MobCategory classification, MobSpawnSettings.SpawnerData spawner) Removes a spawn from the list of spawns for the given classification.Constructors in net.minecraftforge.event.world with parameters of type MobCategoryModifierConstructorDescriptionPotentialSpawns(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList)