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 final MobCategory
EntityType.Builder.category
private final MobCategory
EntityType.category
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<MobCategory> MobCategory.CODEC
Modifier and TypeMethodDescriptionEntityType.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_273268_, MobCategory p_272918_, boolean p_273417_, boolean p_273389_, boolean p_273556_, boolean p_272654_, com.google.common.collect.ImmutableSet<Block> p_273631_, EntityDimensions p_272946_, float p_338404_, int p_272895_, int p_273451_, FeatureFlagSet p_273518_) EntityType
(EntityType.EntityFactory<T> p_273268_, MobCategory p_272918_, boolean p_273417_, boolean p_273389_, boolean p_273556_, boolean p_272654_, com.google.common.collect.ImmutableSet<Block> p_273631_, EntityDimensions p_272946_, float p_338404_, int p_272895_, int p_273451_, FeatureFlagSet p_273518_, Predicate<EntityType<?>> trackDeltasSupplier, ToIntFunction<EntityType<?>> trackingRangeSupplier, ToIntFunction<EntityType<?>> updateIntervalSupplier) -
Uses of MobCategory in net.minecraft.world.entity.ai.behavior
Modifier and TypeMethodDescriptionstatic BehaviorControl
<LivingEntity> SetEntityLookTarget.create
(MobCategory p_259154_, float p_260240_) -
Uses of MobCategory in net.minecraft.world.level
Modifier and TypeFieldDescriptionprivate static final MobCategory[]
NaturalSpawner.SPAWNING_CATEGORIES
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.Object2IntMap
<MobCategory> LocalMobCapCalculator.MobCounts.counts
private final it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap
<MobCategory> NaturalSpawner.SpawnState.mobCategoryCounts
private final it.unimi.dsi.fastutil.objects.Object2IntMap
<MobCategory> NaturalSpawner.SpawnState.unmodifiableMobCategoryCounts
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.objects.Object2IntMap
<MobCategory> NaturalSpawner.SpawnState.getMobCategoryCounts()
Modifier and TypeMethodDescriptionvoid
LocalMobCapCalculator.MobCounts.add
(MobCategory p_186518_) void
LocalMobCapCalculator.addMob
(ChunkPos p_186513_, MobCategory p_186514_) boolean
LocalMobCapCalculator.canSpawn
(MobCategory p_186505_, ChunkPos p_186506_) boolean
LocalMobCapCalculator.MobCounts.canSpawn
(MobCategory p_186523_) (package private) boolean
NaturalSpawner.SpawnState.canSpawnForCategory
(MobCategory p_186549_, ChunkPos p_186550_) private static boolean
NaturalSpawner.canSpawnMobAt
(ServerLevel p_220437_, StructureManager p_220438_, ChunkGenerator p_220439_, MobCategory p_220440_, MobSpawnSettings.SpawnerData p_220441_, BlockPos p_220442_) private static Optional
<MobSpawnSettings.SpawnerData> NaturalSpawner.getRandomSpawnMobAt
(ServerLevel p_220430_, StructureManager p_220431_, ChunkGenerator p_220432_, MobCategory p_220433_, RandomSource p_220434_, BlockPos p_220435_) static boolean
NaturalSpawner.isInNetherFortressBounds
(BlockPos p_220456_, ServerLevel p_220457_, MobCategory p_220458_, StructureManager p_220459_) private static boolean
NaturalSpawner.isValidSpawnPostitionForType
(ServerLevel p_220422_, MobCategory p_220423_, StructureManager p_220424_, ChunkGenerator p_220425_, MobSpawnSettings.SpawnerData p_220426_, BlockPos.MutableBlockPos p_220427_, double p_220428_) private static WeightedRandomList
<MobSpawnSettings.SpawnerData> NaturalSpawner.mobsAt
(ServerLevel p_220444_, StructureManager p_220445_, ChunkGenerator p_220446_, MobCategory p_220447_, BlockPos p_220448_, Holder<Biome> p_220449_) 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_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
Modifier and TypeFieldDescriptionprotected final Map
<MobCategory, List<MobSpawnSettings.SpawnerData>> MobSpawnSettings.Builder.spawners
private final Map
<MobCategory, WeightedRandomList<MobSpawnSettings.SpawnerData>> MobSpawnSettings.spawners
private final 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_196689_, Map<MobCategory, WeightedRandomList<MobSpawnSettings.SpawnerData>> p_196690_, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> p_196691_) -
Uses of MobCategory in net.minecraft.world.level.chunk
Modifier and TypeMethodDescriptionChunkGenerator.getMobsAt
(Holder<Biome> p_223134_, StructureManager p_223135_, MobCategory p_223136_, BlockPos p_223137_) -
Uses of MobCategory in net.minecraft.world.level.levelgen.structure
Modifier and TypeFieldDescriptionprivate Map
<MobCategory, StructureSpawnOverride> Structure.StructureSettings.Builder.spawnOverrides
private final Map
<MobCategory, StructureSpawnOverride> Structure.StructureSettings.spawnOverrides
The field for thespawnOverrides
record component.Modifier and TypeMethodDescriptionStructure.spawnOverrides()
Structure.StructureSettings.spawnOverrides()
Returns the value of thespawnOverrides
record component.Modifier and TypeMethodDescriptionStructure.StructureSettings.Builder.spawnOverrides
(Map<MobCategory, StructureSpawnOverride> p_352057_) ModifierConstructorDescriptionStructureSettings
(HolderSet<Biome> biomes, Map<MobCategory, StructureSpawnOverride> spawnOverrides, GenerationStep.Decoration step, TerrainAdjustment terrainAdaptation) Creates an instance of aStructureSettings
record class. -
Uses of MobCategory in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault MobCategory
IEntityExtension.getClassification
(boolean forSpawnCount) Returns The classification of this entity -
Uses of MobCategory in net.neoforged.neoforge.common.world
Modifier and TypeFieldDescriptionprivate final Set
<MobCategory> StructureModifiers.ClearSpawnsStructureModifier.categories
The field for thecategories
record component.private final Map
<MobCategory, StructureSettingsBuilder.StructureSpawnOverrideBuilder> StructureSettingsBuilder.spawnOverrides
private final Set
<MobCategory> MobSpawnSettingsBuilder.typesView
Modifier and TypeMethodDescriptionStructureModifiers.ClearSpawnsStructureModifier.categories()
Returns the value of thecategories
record component.MobSpawnSettingsBuilder.getSpawnerTypes()
Modifier 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 ornull
if no overrides are defined for that category.void
StructureSettingsBuilder.removeSpawnOverrides
(MobCategory category) Removes the spawn overrides for the given mob category.ModifierConstructorDescriptionClearSpawnsStructureModifier
(HolderSet<Structure> structures, Set<MobCategory> categories) Creates an instance of aClearSpawnsStructureModifier
record class.private
StructureSettingsBuilder
(HolderSet<Biome> biomes, Map<MobCategory, StructureSpawnOverride> spawnOverrides, GenerationStep.Decoration step, TerrainAdjustment terrainAdaptation) -
Uses of MobCategory in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionEventHooks.getPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList) -
Uses of MobCategory in net.neoforged.neoforge.event.level
Modifier and TypeFieldDescriptionprivate final MobCategory
LevelEvent.PotentialSpawns.mobcategory
Modifier and TypeMethodDescriptionLevelEvent.PotentialSpawns.getMobCategory()
Returns the category of the mobs in the spawn list..ModifierConstructorDescriptionPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList)