Uses of Interface
net.minecraft.world.level.ServerLevelAccessor
Packages that use ServerLevelAccessor
Package
Description
-
Uses of ServerLevelAccessor in net.minecraft.server.level
Classes in net.minecraft.server.level that implement ServerLevelAccessor -
Uses of ServerLevelAccessor in net.minecraft.world.entity
Methods in net.minecraft.world.entity with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionstatic <T extends Entity>
booleanSpawnPlacements.checkSpawnRules(EntityType<T> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) protected voidMob.enchantSpawnedArmor(ServerLevelAccessor level, RandomSource random, EquipmentSlot slot, DifficultyInstance difficulty) private voidMob.enchantSpawnedEquipment(ServerLevelAccessor level, EquipmentSlot slot, RandomSource random, float chance, DifficultyInstance difficulty) protected voidMob.enchantSpawnedWeapon(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty) @Nullable SpawnGroupDataAgeableMob.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataMob.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Deprecated.Override-Only.protected voidMob.populateDefaultEquipmentEnchantments(ServerLevelAccessor level, RandomSource random, DifficultyInstance localDifficulty) booleanSpawnPlacements.SpawnPredicate.test(EntityType<T> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionstatic booleanAxolotl.checkAxolotlSpawnRules(EntityType<? extends LivingEntity> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) Axolotl.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionCamel.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.chicken
Methods in net.minecraft.world.entity.animal.chicken with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionChicken.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.cow
Methods in net.minecraft.world.entity.animal.cow with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionCow.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.dolphin
Methods in net.minecraft.world.entity.animal.dolphin with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataDolphin.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.equine
Methods in net.minecraft.world.entity.animal.equine with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataAbstractHorse.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataHorse.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataLlama.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataTraderLlama.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataZombieHorse.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.feline
Methods in net.minecraft.world.entity.animal.feline with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataCat.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataOcelot.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.fish
Methods in net.minecraft.world.entity.animal.fish with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataAbstractSchoolingFish.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataSalmon.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataTropicalFish.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.fox
Methods in net.minecraft.world.entity.animal.fox with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataFox.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionFrog.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionGoat.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.golem
Methods in net.minecraft.world.entity.animal.golem with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataCopperGolem.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.nautilus
Methods in net.minecraft.world.entity.animal.nautilus with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionAbstractNautilus.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) ZombieNautilus.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.panda
Methods in net.minecraft.world.entity.animal.panda with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataPanda.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.parrot
Methods in net.minecraft.world.entity.animal.parrot with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataParrot.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.pig
Methods in net.minecraft.world.entity.animal.pig with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionPig.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.polarbear
Methods in net.minecraft.world.entity.animal.polarbear with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionPolarBear.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.rabbit
Methods in net.minecraft.world.entity.animal.rabbit with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataRabbit.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataSheep.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) static DyeColorSheep.getRandomSheepColor(ServerLevelAccessor level, BlockPos pos) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.squid
Methods in net.minecraft.world.entity.animal.squid with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionstatic booleanGlowSquid.checkGlowSquidSpawnRules(EntityType<? extends LivingEntity> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataSquid.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.turtle
Methods in net.minecraft.world.entity.animal.turtle with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataTurtle.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataWolf.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionstatic booleanMonster.checkMonsterSpawnRules(EntityType<? extends Mob> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanMonster.checkSurfaceMonstersSpawnRules(EntityType<? extends Mob> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataPatrollingMonster.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataPhantom.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataShulker.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataSlime.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataStrider.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataVex.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataZoglin.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) static booleanMonster.isDarkEnoughToSpawn(ServerLevelAccessor level, BlockPos pos, RandomSource random) Static predicate for determining if the current light level and environmental conditions allow for a monster to spawn.private SpawnGroupDataStrider.spawnJockey(ServerLevelAccessor level, DifficultyInstance difficulty, Mob jockey, @Nullable SpawnGroupData jockeyGroupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataHoglin.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.monster.illager
Methods in net.minecraft.world.entity.monster.illager with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionprotected voidPillager.enchantSpawnedWeapon(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty) Illusioner.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataPillager.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataVindicator.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataPiglin.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataPiglinBrute.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.monster.skeleton
Methods in net.minecraft.world.entity.monster.skeleton with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionstatic booleanStray.checkStraySpawnRules(EntityType<Stray> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataAbstractSkeleton.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataWitherSkeleton.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) protected voidWitherSkeleton.populateDefaultEquipmentEnchantments(ServerLevelAccessor level, RandomSource random, DifficultyInstance localDifficulty) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.monster.spider
Methods in net.minecraft.world.entity.monster.spider with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataCaveSpider.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataSpider.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataWarden.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.monster.zombie
Methods in net.minecraft.world.entity.monster.zombie with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionstatic booleanDrowned.checkDrownedSpawnRules(EntityType<Drowned> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) Drowned.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataHusk.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataZombie.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataZombieVillager.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.npc.villager
Methods in net.minecraft.world.entity.npc.villager with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataAbstractVillager.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataVillager.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.raid
Methods in net.minecraft.world.entity.raid with parameters of type ServerLevelAccessorModifier and TypeMethodDescription@Nullable SpawnGroupDataRaider.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of ServerLevelAccessor in net.minecraft.world.entity.variant
Fields in net.minecraft.world.entity.variant declared as ServerLevelAccessorModifier and TypeFieldDescriptionprivate final ServerLevelAccessorSpawnContext.levelThe field for thelevelrecord component.Methods in net.minecraft.world.entity.variant that return ServerLevelAccessorModifier and TypeMethodDescriptionSpawnContext.level()Returns the value of thelevelrecord component.Methods in net.minecraft.world.entity.variant with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionstatic SpawnContextSpawnContext.create(ServerLevelAccessor level, BlockPos pos) Constructors in net.minecraft.world.entity.variant with parameters of type ServerLevelAccessorModifierConstructorDescriptionSpawnContext(BlockPos pos, ServerLevelAccessor level, EnvironmentAttributeReader environmentAttributes, Holder<Biome> biome) Creates an instance of aSpawnContextrecord class. -
Uses of ServerLevelAccessor in net.minecraft.world.level
Subinterfaces of ServerLevelAccessor in net.minecraft.world.levelMethods in net.minecraft.world.level with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionstatic voidNaturalSpawner.spawnMobsForChunkGeneration(ServerLevelAccessor level, Holder<Biome> biome, ChunkPos chunkPos, RandomSource random) -
Uses of ServerLevelAccessor in net.minecraft.world.level.levelgen.feature
Methods in net.minecraft.world.level.levelgen.feature with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionstatic voidEndPlatformFeature.createEndPlatform(ServerLevelAccessor newLevel, BlockPos origin, boolean dropResources) private voidEndSpikeFeature.placeSpike(ServerLevelAccessor level, RandomSource random, EndSpikeConfiguration config, EndSpikeFeature.EndSpike spike) -
Uses of ServerLevelAccessor in net.minecraft.world.level.levelgen.structure
Methods in net.minecraft.world.level.levelgen.structure with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionprotected booleanStructurePiece.createChest(ServerLevelAccessor level, BoundingBox chunkBB, RandomSource random, BlockPos pos, ResourceKey<LootTable> lootTable, @Nullable BlockState blockState) protected abstract voidTemplateStructurePiece.handleDataMarker(String markerId, BlockPos position, ServerLevelAccessor level, RandomSource random, BoundingBox chunkBB) -
Uses of ServerLevelAccessor in net.minecraft.world.level.levelgen.structure.structures
Methods in net.minecraft.world.level.levelgen.structure.structures with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionprotected voidEndCityPieces.EndCityPiece.handleDataMarker(String markerId, BlockPos position, ServerLevelAccessor level, RandomSource random, BoundingBox chunkBB) protected voidIglooPieces.IglooPiece.handleDataMarker(String markerId, BlockPos position, ServerLevelAccessor level, RandomSource random, BoundingBox chunkBB) protected voidNetherFossilPieces.NetherFossilPiece.handleDataMarker(String markerId, BlockPos position, ServerLevelAccessor level, RandomSource random, BoundingBox chunkBB) protected voidOceanRuinPieces.OceanRuinPiece.handleDataMarker(String markerId, BlockPos position, ServerLevelAccessor level, RandomSource random, BoundingBox chunkBB) protected voidRuinedPortalPiece.handleDataMarker(String markerId, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox chunkBB) protected voidShipwreckPieces.ShipwreckPiece.handleDataMarker(String markerId, BlockPos position, ServerLevelAccessor level, RandomSource random, BoundingBox chunkBB) protected voidWoodlandMansionPieces.WoodlandMansionPiece.handleDataMarker(String markerId, BlockPos position, ServerLevelAccessor level, RandomSource random, BoundingBox chunkBB) private voidSwampHutPiece.spawnCat(ServerLevelAccessor level, BoundingBox chunkBB) -
Uses of ServerLevelAccessor in net.minecraft.world.level.levelgen.structure.templatesystem
Methods in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionprivate voidStructureTemplate.addEntitiesToWorld(ServerLevelAccessor level, BlockPos position, StructurePlaceSettings placementIn, ProblemReporter problemReporter) StructureTemplate.createEntityIgnoreException(ProblemReporter reporter, ServerLevelAccessor level, CompoundTag tag) CappedProcessor.finalizeProcessing(ServerLevelAccessor level, BlockPos position, BlockPos referencePos, List<StructureTemplate.StructureBlockInfo> originalBlockInfoList, List<StructureTemplate.StructureBlockInfo> processedBlockInfoList, StructurePlaceSettings settings) StructureProcessor.finalizeProcessing(ServerLevelAccessor level, BlockPos position, BlockPos referencePos, List<StructureTemplate.StructureBlockInfo> originalBlockInfoList, List<StructureTemplate.StructureBlockInfo> processedBlockInfoList, StructurePlaceSettings settings) booleanStructureTemplate.placeInWorld(ServerLevelAccessor level, BlockPos position, BlockPos referencePos, StructurePlaceSettings settings, RandomSource random, int updateMode) StructureTemplate.processBlockInfos(ServerLevelAccessor level, BlockPos position, BlockPos referencePos, StructurePlaceSettings settings, List<StructureTemplate.StructureBlockInfo> blockInfoList) Deprecated.StructureTemplate.processBlockInfos(ServerLevelAccessor level, BlockPos position, BlockPos referencePos, StructurePlaceSettings settings, List<StructureTemplate.StructureBlockInfo> blockInfoList, @Nullable StructureTemplate template) -
Uses of ServerLevelAccessor in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type ServerLevelAccessorModifier and TypeMethodDescriptionstatic booleanEventHooks.checkSpawnPlacements(EntityType<?> entityType, ServerLevelAccessor level, EntitySpawnReason spawnType, BlockPos pos, RandomSource random, boolean defaultResult) Internal, should only be called viaSpawnPlacements.checkSpawnRules(EntityType, ServerLevelAccessor, EntitySpawnReason, BlockPos, RandomSource).static booleanEventHooks.checkSpawnPosition(Mob mob, ServerLevelAccessor level, EntitySpawnReason spawnType) Checks if the current position of the passed mob is valid for spawning, by firingMobSpawnEvent.PositionCheck.
The default check is to perform the logical and ofMob.checkSpawnRules(LevelAccessor, EntitySpawnReason)andMob.checkSpawnObstruction(LevelReader).static booleanEventHooks.checkSpawnPositionSpawner(Mob mob, ServerLevelAccessor level, EntitySpawnReason spawnType, SpawnData spawnData, BaseSpawner spawner) Specialized variant ofEventHooks.checkSpawnPosition(Mob, ServerLevelAccessor, EntitySpawnReason)for spawners, as they have slightly different checks, and pass through theBaseSpawnerto the event.static @Nullable SpawnGroupDataEventHooks.finalizeMobSpawn(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData) Finalizes the spawn of a mob by firing theFinalizeSpawnEventand callingMob.finalizeSpawn(ServerLevelAccessor, DifficultyInstance, EntitySpawnReason, SpawnGroupData)with the result.static FinalizeSpawnEventEventHooks.finalizeMobSpawnSpawner(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData, IOwnedSpawner spawner, boolean def) Finalizes the spawn of a mob by firing theFinalizeSpawnEventand callingMob.finalizeSpawn(ServerLevelAccessor, DifficultyInstance, EntitySpawnReason, SpawnGroupData)with the result. -
Uses of ServerLevelAccessor in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as ServerLevelAccessorModifier and TypeFieldDescriptionprivate final ServerLevelAccessorMobSpawnEvent.levelprivate final ServerLevelAccessorMobSpawnEvent.SpawnPlacementCheck.levelMethods in net.neoforged.neoforge.event.entity.living that return ServerLevelAccessorModifier and TypeMethodDescriptionMobSpawnEvent.getLevel()MobSpawnEvent.SpawnPlacementCheck.getLevel()Constructors in net.neoforged.neoforge.event.entity.living with parameters of type ServerLevelAccessorModifierConstructorDescriptionFinalizeSpawnEvent(Mob entity, ServerLevelAccessor level, double x, double y, double z, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData, @Nullable com.mojang.datafixers.util.Either<BlockEntity, Entity> spawner) MobDespawnEvent(Mob mob, ServerLevelAccessor level) Fire viaEventHooks.checkMobDespawn(Mob)protectedMobSpawnEvent(Mob mob, ServerLevelAccessor level, double x, double y, double z) PositionCheck(Mob mob, ServerLevelAccessor level, EntitySpawnReason spawnType, @Nullable BaseSpawner spawner) SpawnPlacementCheck(EntityType<?> entityType, ServerLevelAccessor level, EntitySpawnReason spawnType, BlockPos pos, RandomSource random, boolean defaultResult) Internal.