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 pSource, MobCategory pMobCategory, BlockPos pPos) -
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 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 pCategory) static <T extends Entity>
EntityType.Builder<T> EntityType.Builder.of(EntityType.EntityFactory<T> pFactory, MobCategory pCategory) Constructors in net.minecraft.world.entity with parameters of type MobCategoryModifierConstructorDescriptionprivateBuilder(EntityType.EntityFactory<T> pFactory, MobCategory pCategory) EntityType(EntityType.EntityFactory<T> pFactory, MobCategory pCategory, boolean pSerialize, boolean pSummon, boolean pFireImmune, boolean pCanSpawnFarFromPlayer, ImmutableSet<Block> pImmuneTo, EntityDimensions pDimensions, float pSpawnDimensionsScale, int pClientTrackingRange, int pUpdateInterval, FeatureFlagSet pRequiredFeatures) EntityType(EntityType.EntityFactory<T> pFactory, MobCategory pCategory, boolean pSerialize, boolean pSummon, boolean pFireImmune, boolean pCanSpawnFarFromPlayer, ImmutableSet<Block> pImmuneTo, EntityDimensions pDimensions, float pSpawnDimensionsScale, int pClientTrackingRange, int pUpdateInterval, FeatureFlagSet pRequiredFeatures, Predicate<EntityType<?>> trackDeltasSupplier, ToIntFunction<EntityType<?>> trackingRangeSupplier, ToIntFunction<EntityType<?>> updateIntervalSupplier) -
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 pCategory, float pMakDist) -
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 pCategory) voidLocalMobCapCalculator.addMob(ChunkPos pPos, MobCategory pCategory) booleanLocalMobCapCalculator.canSpawn(MobCategory pCategory, ChunkPos pPos) booleanLocalMobCapCalculator.MobCounts.canSpawn(MobCategory pCategory) (package private) booleanNaturalSpawner.SpawnState.canSpawnForCategory(MobCategory pCategory, ChunkPos pPos) private static booleanNaturalSpawner.canSpawnMobAt(ServerLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, MobCategory pCategory, MobSpawnSettings.SpawnerData pData, BlockPos pPos) private static Optional<MobSpawnSettings.SpawnerData> NaturalSpawner.getRandomSpawnMobAt(ServerLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, MobCategory pCategory, RandomSource pRandom, BlockPos pPos) static booleanNaturalSpawner.isInNetherFortressBounds(BlockPos pPos, ServerLevel pLevel, MobCategory pCategory, StructureManager pStructureManager) private static booleanNaturalSpawner.isValidSpawnPostitionForType(ServerLevel pLevel, MobCategory pCategory, StructureManager pStructureManager, ChunkGenerator pGenerator, MobSpawnSettings.SpawnerData pData, BlockPos.MutableBlockPos pPos, double pDistance) private static WeightedRandomList<MobSpawnSettings.SpawnerData> NaturalSpawner.mobsAt(ServerLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, MobCategory pCategory, BlockPos pPos, Holder<Biome> pBiome) static voidNaturalSpawner.spawnCategoryForChunk(MobCategory pCategory, ServerLevel pLevel, LevelChunk pChunk, NaturalSpawner.SpawnPredicate pFilter, NaturalSpawner.AfterSpawnCallback pCallback) static voidNaturalSpawner.spawnCategoryForPosition(MobCategory pCategory, ServerLevel pLevel, BlockPos pPos) static voidNaturalSpawner.spawnCategoryForPosition(MobCategory pCategory, ServerLevel pLevel, ChunkAccess pChunk, BlockPos pPos, NaturalSpawner.SpawnPredicate pFilter, NaturalSpawner.AfterSpawnCallback pCallback) Constructor parameters in net.minecraft.world.level with type arguments of type MobCategoryModifierConstructorDescription(package private)SpawnState(int pSpawnableChunkCount, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<MobCategory> pMobCategoryCounts, PotentialCalculator pSpawnPotential, LocalMobCapCalculator pLocalMobCapCalculator) -
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 pClassification, MobSpawnSettings.SpawnerData pSpawner) MobSpawnSettings.getMobs(MobCategory pCategory) 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> pBiome, StructureManager pStructureManager, MobCategory pCategory, BlockPos pPos) -
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> pSpawnOverrides) 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, WeightedRandomList<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, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList)