Uses of Enum Class
net.minecraft.world.entity.MobCategory
Packages that use MobCategory
Package
Description
-
Uses of MobCategory in net.minecraft.data.advancements.packs
Fields in net.minecraft.data.advancements.packs with type parameters of type MobCategoryModifier and TypeFieldDescriptionprivate static final Map<MobCategory, Set<EntityType<?>>> VanillaAdventureAdvancements.EXCEPTIONS_BY_EXPECTED_CATEGORIES -
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 source, MobCategory mobCategory, BlockPos at) -
Uses of MobCategory in net.minecraft.server.level
Method parameters in net.minecraft.server.level with type arguments of type MobCategoryModifier and TypeMethodDescriptionprivate voidServerChunkCache.tickSpawningChunk(LevelChunk chunk, long timeDiff, List<MobCategory> spawningCategories, NaturalSpawner.SpawnState spawnCookie) -
Uses of MobCategory in net.minecraft.world.entity
Subclasses with type arguments of type MobCategory in net.minecraft.world.entityFields 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 TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MobCategory> MobCategory.CODECMethods in net.minecraft.world.entity that return MobCategoryModifier and TypeMethodDescriptionEntityType.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 category) static <T extends Entity>
EntityType.Builder<T> EntityType.Builder.of(EntityType.EntityFactory<T> factory, MobCategory category) Constructors in net.minecraft.world.entity with parameters of type MobCategoryModifierConstructorDescriptionprivateBuilder(EntityType.EntityFactory<T> factory, MobCategory category) EntityType(EntityType.EntityFactory<T> factory, MobCategory category, boolean serialize, boolean summon, boolean fireImmune, boolean canSpawnFarFromPlayer, ImmutableSet<Block> immuneTo, EntityDimensions dimensions, float spawnDimensionsScale, int clientTrackingRange, int updateInterval, String descriptionId, Optional<ResourceKey<LootTable>> lootTable, FeatureFlagSet requiredFeatures, boolean allowedInPeaceful) EntityType(EntityType.EntityFactory<T> factory, MobCategory category, boolean serialize, boolean summon, boolean fireImmune, boolean canSpawnFarFromPlayer, ImmutableSet<Block> immuneTo, EntityDimensions dimensions, float spawnDimensionsScale, int clientTrackingRange, int updateInterval, String descriptionId, Optional<ResourceKey<LootTable>> lootTable, FeatureFlagSet requiredFeatures, boolean allowedInPeaceful, Predicate<EntityType<?>> trackDeltasSupplier, ToIntFunction<EntityType<?>> trackingRangeSupplier, ToIntFunction<EntityType<?>> updateIntervalSupplier, boolean onlyOpCanSetNbt) -
Uses of MobCategory in net.minecraft.world.entity.ai.behavior
Methods in net.minecraft.world.entity.ai.behavior with parameters of type MobCategoryModifier and TypeMethodDescriptionstatic BehaviorControl<LivingEntity> SetEntityLookTarget.create(MobCategory category, float maxDist) -
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 TypeMethodDescriptionstatic List<MobCategory> NaturalSpawner.getFilteredSpawningCategories(NaturalSpawner.SpawnState state, boolean spawnFriendlies, boolean spawnEnemies, boolean spawnPersistent) it.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 category) voidLocalMobCapCalculator.addMob(ChunkPos pos, MobCategory category) booleanLocalMobCapCalculator.canSpawn(MobCategory mobCategory, ChunkPos pos) booleanLocalMobCapCalculator.MobCounts.canSpawn(MobCategory category) private booleanNaturalSpawner.SpawnState.canSpawnForCategoryGlobal(MobCategory mobCategory) private booleanNaturalSpawner.SpawnState.canSpawnForCategoryLocal(MobCategory mobCategory, ChunkPos chunkPos) private static booleanNaturalSpawner.canSpawnMobAt(ServerLevel level, StructureManager structureManager, ChunkGenerator generator, MobCategory mobCategory, MobSpawnSettings.SpawnerData spawnerData, BlockPos pos) private static Optional<MobSpawnSettings.SpawnerData> NaturalSpawner.getRandomSpawnMobAt(ServerLevel level, StructureManager structureManager, ChunkGenerator generator, MobCategory mobCategory, RandomSource random, BlockPos pos) static booleanNaturalSpawner.isInNetherFortressBounds(BlockPos pos, ServerLevel level, MobCategory category, StructureManager structureManager) private static booleanNaturalSpawner.isValidSpawnPostitionForType(ServerLevel level, MobCategory mobCategory, StructureManager structureManager, ChunkGenerator generator, MobSpawnSettings.SpawnerData currentSpawnData, BlockPos.MutableBlockPos pos, double nearestPlayerDistanceSqr) private static WeightedList<MobSpawnSettings.SpawnerData> NaturalSpawner.mobsAt(ServerLevel level, StructureManager structureManager, ChunkGenerator generator, MobCategory mobCategory, BlockPos pos, @Nullable Holder<Biome> biome) static voidNaturalSpawner.spawnCategoryForChunk(MobCategory mobCategory, ServerLevel level, LevelChunk chunk, NaturalSpawner.SpawnPredicate extraTest, NaturalSpawner.AfterSpawnCallback spawnCallback) static voidNaturalSpawner.spawnCategoryForPosition(MobCategory mobCategory, ServerLevel level, BlockPos start) static voidNaturalSpawner.spawnCategoryForPosition(MobCategory mobCategory, ServerLevel level, ChunkAccess chunk, BlockPos start, NaturalSpawner.SpawnPredicate extraTest, NaturalSpawner.AfterSpawnCallback spawnCallback) Method parameters in net.minecraft.world.level with type arguments of type MobCategoryModifier and TypeMethodDescriptionstatic voidNaturalSpawner.spawnForChunk(ServerLevel level, LevelChunk chunk, NaturalSpawner.SpawnState state, List<MobCategory> spawningCategories) Constructor parameters in net.minecraft.world.level with type arguments of type MobCategoryModifierConstructorDescriptionprivateSpawnState(int spawnableChunkCount, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<MobCategory> mobCategoryCounts, PotentialCalculator spawnPotential, LocalMobCapCalculator localMobCapCalculator) -
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, WeightedList.Builder<MobSpawnSettings.SpawnerData>> MobSpawnSettings.Builder.spawnersprivate final Map<MobCategory, WeightedList<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 category, int weight, MobSpawnSettings.SpawnerData spawnerData) MobSpawnSettings.getMobs(MobCategory category) Constructor parameters in net.minecraft.world.level.biome with type arguments of type MobCategoryModifierConstructorDescriptionprivateMobSpawnSettings(float creatureGenerationProbability, Map<MobCategory, WeightedList<MobSpawnSettings.SpawnerData>> spawners, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> mobSpawnCosts) -
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> biome, StructureManager structureManager, MobCategory mobCategory, BlockPos pos) -
Uses of MobCategory in net.minecraft.world.level.levelgen.structure
Fields in net.minecraft.world.level.levelgen.structure with type parameters of type MobCategoryModifier and TypeFieldDescriptionprivate Map<MobCategory, StructureSpawnOverride> Structure.StructureSettings.Builder.spawnOverridesprivate final Map<MobCategory, StructureSpawnOverride> Structure.StructureSettings.spawnOverridesThe field for thespawnOverridesrecord component.Methods in net.minecraft.world.level.levelgen.structure that return types with arguments of type MobCategoryModifier and TypeMethodDescriptionStructure.spawnOverrides()Structure.StructureSettings.spawnOverrides()Returns the value of thespawnOverridesrecord component.Method parameters in net.minecraft.world.level.levelgen.structure with type arguments of type MobCategoryModifier and TypeMethodDescriptionStructure.StructureSettings.Builder.spawnOverrides(Map<MobCategory, StructureSpawnOverride> spawnOverrides) Constructor parameters in net.minecraft.world.level.levelgen.structure with type arguments of type MobCategoryModifierConstructorDescriptionStructureSettings(HolderSet<Biome> biomes, Map<MobCategory, StructureSpawnOverride> spawnOverrides, GenerationStep.Decoration step, TerrainAdjustment terrainAdaptation) Creates an instance of aStructureSettingsrecord class. -
Uses of MobCategory in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return MobCategoryModifier and TypeMethodDescriptiondefault MobCategoryIEntityExtension.getClassification(boolean forSpawnCount) Returns The classification of this entity -
Uses of MobCategory in net.neoforged.neoforge.common.world
Fields in net.neoforged.neoforge.common.world with type parameters of type MobCategoryModifier and TypeFieldDescriptionprivate final Set<MobCategory> StructureModifiers.ClearSpawnsStructureModifier.categoriesThe field for thecategoriesrecord component.private final Map<MobCategory, StructureSettingsBuilder.StructureSpawnOverrideBuilder> StructureSettingsBuilder.spawnOverridesprivate final Set<MobCategory> MobSpawnSettingsBuilder.typesViewMethods in net.neoforged.neoforge.common.world that return types with arguments of type MobCategoryModifier and TypeMethodDescriptionStructureModifiers.ClearSpawnsStructureModifier.categories()Returns the value of thecategoriesrecord component.MobSpawnSettingsBuilder.getSpawnerTypes()Methods in net.neoforged.neoforge.common.world with parameters of type MobCategoryModifier and TypeMethodDescriptionStructureSettingsBuilder.getOrAddSpawnOverrides(MobCategory category) Gets or creates a mutable builder for the spawn overrides of a given mob category.MobSpawnSettingsBuilder.getSpawner(MobCategory type) StructureSettingsBuilder.getSpawnOverrides(MobCategory category) Gets a mutable builder for the spawn overrides of a given mob category ornullif no overrides are defined for that category.voidStructureSettingsBuilder.removeSpawnOverrides(MobCategory category) Removes the spawn overrides for the given mob category.Constructor parameters in net.neoforged.neoforge.common.world with type arguments of type MobCategoryModifierConstructorDescriptionClearSpawnsStructureModifier(HolderSet<Structure> structures, Set<MobCategory> categories) Creates an instance of aClearSpawnsStructureModifierrecord class.privateStructureSettingsBuilder(HolderSet<Biome> biomes, Map<MobCategory, StructureSpawnOverride> spawnOverrides, GenerationStep.Decoration step, TerrainAdjustment terrainAdaptation) -
Uses of MobCategory in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type MobCategoryModifier and TypeMethodDescriptionEventHooks.getPotentialSpawns(LevelAccessor level, MobCategory category, BlockPos pos, WeightedList<MobSpawnSettings.SpawnerData> oldList) -
Uses of MobCategory in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as MobCategoryModifier and TypeFieldDescriptionprivate final MobCategoryLevelEvent.PotentialSpawns.mobcategoryMethods in net.neoforged.neoforge.event.level that return MobCategoryModifier and TypeMethodDescriptionLevelEvent.PotentialSpawns.getMobCategory()Returns the category of the mobs in the spawn list..Constructors in net.neoforged.neoforge.event.level with parameters of type MobCategoryModifierConstructorDescriptionPotentialSpawns(LevelAccessor level, MobCategory category, BlockPos pos, WeightedList<MobSpawnSettings.SpawnerData> oldList) -
Uses of MobCategory in net.neoforged.neoforge.registries
Methods in net.neoforged.neoforge.registries with parameters of type MobCategoryModifier and TypeMethodDescription<E extends Entity>
DeferredHolder<EntityType<?>, EntityType<E>> DeferredRegister.Entities.registerEntityType(String name, EntityType.EntityFactory<E> factory, MobCategory category) Convenience method that constructs a builder.<E extends Entity>
DeferredHolder<EntityType<?>, EntityType<E>> DeferredRegister.Entities.registerEntityType(String name, EntityType.EntityFactory<E> factory, MobCategory category, UnaryOperator<EntityType.Builder<E>> builder) Convenience method that constructs a builder for use in the operator.