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> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) protected voidMob.enchantSpawnedArmor(ServerLevelAccessor pLevel, RandomSource pRandom, EquipmentSlot pSlot, DifficultyInstance pDifficulty) private voidMob.enchantSpawnedEquipment(ServerLevelAccessor pLevel, EquipmentSlot pSlot, RandomSource pRandom, float pEnchantChance, DifficultyInstance pDifficulty) protected voidMob.enchantSpawnedWeapon(ServerLevelAccessor pLevel, RandomSource pRandom, DifficultyInstance pDifficulty) @Nullable SpawnGroupDataAgeableMob.finalizeSpawn(ServerLevelAccessor p_146746_, DifficultyInstance p_146747_, EntitySpawnReason p_363316_, @Nullable SpawnGroupData p_146749_) @Nullable SpawnGroupDataMob.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, @Nullable SpawnGroupData pSpawnGroupData) Deprecated.Override-Only.protected voidMob.populateDefaultEquipmentEnchantments(ServerLevelAccessor pLevel, RandomSource pRandom, DifficultyInstance pDifficulty) booleanSpawnPlacements.SpawnPredicate.test(EntityType<T> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) -
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> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) Axolotl.finalizeSpawn(ServerLevelAccessor p_149132_, DifficultyInstance p_149133_, EntitySpawnReason p_361790_, @Nullable SpawnGroupData p_149135_) -
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 p_249190_, DifficultyInstance p_251264_, EntitySpawnReason p_364651_, @Nullable SpawnGroupData p_249259_) -
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 p_479246_, DifficultyInstance p_479546_, EntitySpawnReason p_478295_, @Nullable SpawnGroupData p_481650_) -
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 p_479111_, DifficultyInstance p_480094_, EntitySpawnReason p_481877_, @Nullable SpawnGroupData p_481471_) -
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 p_479150_, DifficultyInstance p_481882_, EntitySpawnReason p_478942_, @Nullable SpawnGroupData p_481012_) -
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 p_481728_, DifficultyInstance p_480010_, EntitySpawnReason p_481245_, @Nullable SpawnGroupData p_478762_) @Nullable SpawnGroupDataHorse.finalizeSpawn(ServerLevelAccessor p_479107_, DifficultyInstance p_479178_, EntitySpawnReason p_479054_, @Nullable SpawnGroupData p_479757_) @Nullable SpawnGroupDataLlama.finalizeSpawn(ServerLevelAccessor p_481498_, DifficultyInstance p_481989_, EntitySpawnReason p_480269_, @Nullable SpawnGroupData p_480615_) @Nullable SpawnGroupDataTraderLlama.finalizeSpawn(ServerLevelAccessor p_480785_, DifficultyInstance p_478024_, EntitySpawnReason p_481276_, @Nullable SpawnGroupData p_480982_) @Nullable SpawnGroupDataZombieHorse.finalizeSpawn(ServerLevelAccessor p_479493_, DifficultyInstance p_481210_, EntitySpawnReason p_482098_, @Nullable SpawnGroupData p_481475_) -
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 p_479018_, DifficultyInstance p_478283_, EntitySpawnReason p_481509_, @Nullable SpawnGroupData p_480915_) @Nullable SpawnGroupDataOcelot.finalizeSpawn(ServerLevelAccessor p_477941_, DifficultyInstance p_479506_, EntitySpawnReason p_481225_, @Nullable SpawnGroupData p_481908_) -
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 p_478891_, DifficultyInstance p_479199_, EntitySpawnReason p_480856_, @Nullable SpawnGroupData p_481772_) @Nullable SpawnGroupDataSalmon.finalizeSpawn(ServerLevelAccessor p_479696_, DifficultyInstance p_479293_, EntitySpawnReason p_478583_, @Nullable SpawnGroupData p_481140_) @Nullable SpawnGroupDataTropicalFish.finalizeSpawn(ServerLevelAccessor p_480327_, DifficultyInstance p_479255_, EntitySpawnReason p_481359_, @Nullable SpawnGroupData p_481706_) -
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 p_478921_, DifficultyInstance p_477940_, EntitySpawnReason p_480579_, @Nullable SpawnGroupData p_479774_) -
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 p_218488_, DifficultyInstance p_218489_, EntitySpawnReason p_361013_, @Nullable SpawnGroupData p_218491_) -
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 p_149365_, DifficultyInstance p_149366_, EntitySpawnReason p_360901_, @Nullable SpawnGroupData p_149368_) -
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 p_480601_, DifficultyInstance p_477985_, EntitySpawnReason p_479087_, @Nullable SpawnGroupData p_478229_) -
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 p_456241_, DifficultyInstance p_455836_, EntitySpawnReason p_456131_, @Nullable SpawnGroupData p_455985_) ZombieNautilus.finalizeSpawn(ServerLevelAccessor p_467810_, DifficultyInstance p_469369_, EntitySpawnReason p_469505_, @Nullable SpawnGroupData p_467165_) -
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 p_482023_, DifficultyInstance p_480729_, EntitySpawnReason p_477927_, @Nullable SpawnGroupData p_478134_) -
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 p_480706_, DifficultyInstance p_481783_, EntitySpawnReason p_479894_, @Nullable SpawnGroupData p_480556_) -
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 p_478479_, DifficultyInstance p_481884_, EntitySpawnReason p_480771_, @Nullable SpawnGroupData p_478284_) -
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 p_478339_, DifficultyInstance p_478045_, EntitySpawnReason p_479664_, @Nullable SpawnGroupData p_480338_) -
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 p_480653_, DifficultyInstance p_482053_, EntitySpawnReason p_480307_, @Nullable SpawnGroupData p_481416_) -
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 p_404937_, DifficultyInstance p_405503_, EntitySpawnReason p_405554_, @Nullable SpawnGroupData p_405662_) static DyeColorSheep.getRandomSheepColor(ServerLevelAccessor pLevel, BlockPos pPos) -
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> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) @Nullable SpawnGroupDataSquid.finalizeSpawn(ServerLevelAccessor p_478346_, DifficultyInstance p_480811_, EntitySpawnReason p_481727_, @Nullable SpawnGroupData p_480347_) -
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 p_477950_, DifficultyInstance p_481603_, EntitySpawnReason p_479654_, @Nullable SpawnGroupData p_481163_) -
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 p_406251_, DifficultyInstance p_406357_, EntitySpawnReason p_406333_, @Nullable SpawnGroupData p_406273_) -
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> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanMonster.checkSurfaceMonstersSpawnRules(EntityType<? extends Mob> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) @Nullable SpawnGroupDataPatrollingMonster.finalizeSpawn(ServerLevelAccessor p_33049_, DifficultyInstance p_33050_, EntitySpawnReason p_364305_, @Nullable SpawnGroupData p_33052_) Phantom.finalizeSpawn(ServerLevelAccessor p_33126_, DifficultyInstance p_33127_, EntitySpawnReason p_364084_, @Nullable SpawnGroupData p_33129_) @Nullable SpawnGroupDataShulker.finalizeSpawn(ServerLevelAccessor p_149780_, DifficultyInstance p_149781_, EntitySpawnReason p_363202_, @Nullable SpawnGroupData p_149783_) @Nullable SpawnGroupDataSlime.finalizeSpawn(ServerLevelAccessor p_33601_, DifficultyInstance p_33602_, EntitySpawnReason p_361992_, @Nullable SpawnGroupData p_33604_) @Nullable SpawnGroupDataStrider.finalizeSpawn(ServerLevelAccessor p_33887_, DifficultyInstance p_33888_, EntitySpawnReason p_360626_, @Nullable SpawnGroupData p_33890_) @Nullable SpawnGroupDataVex.finalizeSpawn(ServerLevelAccessor p_34002_, DifficultyInstance p_34003_, EntitySpawnReason p_364407_, @Nullable SpawnGroupData p_34005_) @Nullable SpawnGroupDataZoglin.finalizeSpawn(ServerLevelAccessor p_362960_, DifficultyInstance p_365250_, EntitySpawnReason p_363042_, @Nullable SpawnGroupData p_360432_) static booleanMonster.isDarkEnoughToSpawn(ServerLevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) Static predicate for determining if the current light level and environmental conditions allow for a monster to spawn.private SpawnGroupDataStrider.spawnJockey(ServerLevelAccessor pServerLevel, DifficultyInstance pDifficulty, Mob pJockey, @Nullable SpawnGroupData pSpawnData) -
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 p_34508_, DifficultyInstance p_34509_, EntitySpawnReason p_364113_, @Nullable SpawnGroupData p_34511_) -
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 p_481461_, RandomSource p_479437_, DifficultyInstance p_480205_) Illusioner.finalizeSpawn(ServerLevelAccessor p_480751_, DifficultyInstance p_481479_, EntitySpawnReason p_478167_, @Nullable SpawnGroupData p_481045_) @Nullable SpawnGroupDataPillager.finalizeSpawn(ServerLevelAccessor p_481053_, DifficultyInstance p_482114_, EntitySpawnReason p_481428_, @Nullable SpawnGroupData p_478218_) @Nullable SpawnGroupDataVindicator.finalizeSpawn(ServerLevelAccessor p_479899_, DifficultyInstance p_479154_, EntitySpawnReason p_480414_, @Nullable SpawnGroupData p_481963_) -
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 p_34717_, DifficultyInstance p_34718_, EntitySpawnReason p_361787_, @Nullable SpawnGroupData p_34720_) @Nullable SpawnGroupDataPiglinBrute.finalizeSpawn(ServerLevelAccessor p_35058_, DifficultyInstance p_35059_, EntitySpawnReason p_364915_, @Nullable SpawnGroupData p_35061_) -
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> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) @Nullable SpawnGroupDataAbstractSkeleton.finalizeSpawn(ServerLevelAccessor p_480580_, DifficultyInstance p_480574_, EntitySpawnReason p_481793_, @Nullable SpawnGroupData p_478585_) @Nullable SpawnGroupDataWitherSkeleton.finalizeSpawn(ServerLevelAccessor p_479867_, DifficultyInstance p_478360_, EntitySpawnReason p_481272_, @Nullable SpawnGroupData p_481025_) protected voidWitherSkeleton.populateDefaultEquipmentEnchantments(ServerLevelAccessor p_480793_, RandomSource p_481983_, DifficultyInstance p_480847_) -
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 p_481241_, DifficultyInstance p_479489_, EntitySpawnReason p_479465_, @Nullable SpawnGroupData p_482086_) @Nullable SpawnGroupDataSpider.finalizeSpawn(ServerLevelAccessor p_478692_, DifficultyInstance p_479487_, EntitySpawnReason p_481376_, @Nullable SpawnGroupData p_480575_) -
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 p_219400_, DifficultyInstance p_219401_, EntitySpawnReason p_360351_, @Nullable SpawnGroupData p_219403_) -
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> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) Drowned.finalizeSpawn(ServerLevelAccessor p_479591_, DifficultyInstance p_479303_, EntitySpawnReason p_481609_, @Nullable SpawnGroupData p_481694_) @Nullable SpawnGroupDataHusk.finalizeSpawn(ServerLevelAccessor p_481590_, DifficultyInstance p_480270_, EntitySpawnReason p_478215_, @Nullable SpawnGroupData p_480515_) @Nullable SpawnGroupDataZombie.finalizeSpawn(ServerLevelAccessor p_478549_, DifficultyInstance p_481659_, EntitySpawnReason p_478522_, @Nullable SpawnGroupData p_479167_) @Nullable SpawnGroupDataZombieVillager.finalizeSpawn(ServerLevelAccessor p_482360_, DifficultyInstance p_482357_, EntitySpawnReason p_482369_, @Nullable SpawnGroupData p_482358_) -
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 p_480749_, DifficultyInstance p_481930_, EntitySpawnReason p_477981_, @Nullable SpawnGroupData p_481717_) @Nullable SpawnGroupDataVillager.finalizeSpawn(ServerLevelAccessor p_479460_, DifficultyInstance p_481788_, EntitySpawnReason p_480000_, @Nullable SpawnGroupData p_481743_) -
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 p_37856_, DifficultyInstance p_37857_, EntitySpawnReason p_362502_, @Nullable SpawnGroupData p_37859_) -
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 pLevel, BlockPos pPos) 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 pLevelAccessor, Holder<Biome> pBiome, ChunkPos pChunkPos, RandomSource pRandom) -
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 pLevel, BlockPos pPos, boolean pDropBlocks) private voidSpikeFeature.placeSpike(ServerLevelAccessor pLevel, RandomSource pRandom, SpikeConfiguration pConfig, SpikeFeature.EndSpike pSpike) Places the End Spike in the world. -
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 pLevel, BoundingBox pBox, RandomSource pRandom, BlockPos pPos, ResourceKey<LootTable> pLootTable, @Nullable BlockState pState) protected abstract voidTemplateStructurePiece.handleDataMarker(String pName, BlockPos pPos, ServerLevelAccessor pLevel, RandomSource pRandom, BoundingBox pBox) -
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 p_227505_, BlockPos p_227506_, ServerLevelAccessor p_227507_, RandomSource p_227508_, BoundingBox p_227509_) protected voidIglooPieces.IglooPiece.handleDataMarker(String p_227582_, BlockPos p_227583_, ServerLevelAccessor p_227584_, RandomSource p_227585_, BoundingBox p_227586_) protected voidNetherFossilPieces.NetherFossilPiece.handleDataMarker(String p_228561_, BlockPos p_228562_, ServerLevelAccessor p_228563_, RandomSource p_228564_, BoundingBox p_228565_) protected voidOceanRuinPieces.OceanRuinPiece.handleDataMarker(String p_229046_, BlockPos p_229047_, ServerLevelAccessor p_229048_, RandomSource p_229049_, BoundingBox p_229050_) protected voidRuinedPortalPiece.handleDataMarker(String p_229170_, BlockPos p_229171_, ServerLevelAccessor p_229172_, RandomSource p_229173_, BoundingBox p_229174_) protected voidShipwreckPieces.ShipwreckPiece.handleDataMarker(String p_229376_, BlockPos p_229377_, ServerLevelAccessor p_229378_, RandomSource p_229379_, BoundingBox p_229380_) protected voidWoodlandMansionPieces.WoodlandMansionPiece.handleDataMarker(String p_230213_, BlockPos p_230214_, ServerLevelAccessor p_230215_, RandomSource p_230216_, BoundingBox p_230217_) private voidSwampHutPiece.spawnCat(ServerLevelAccessor pLevel, BoundingBox pBox) -
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 p_74524_, BlockPos p_74525_, StructurePlaceSettings placementIn, ProblemReporter p_421857_) StructureTemplate.createEntityIgnoreException(ProblemReporter pProblemReporter, ServerLevelAccessor pLevel, CompoundTag pTag) CappedProcessor.finalizeProcessing(ServerLevelAccessor p_278291_, BlockPos p_278055_, BlockPos p_277825_, List<StructureTemplate.StructureBlockInfo> p_277746_, List<StructureTemplate.StructureBlockInfo> p_277676_, StructurePlaceSettings p_277728_) StructureProcessor.finalizeProcessing(ServerLevelAccessor pServerLevel, BlockPos pOffset, BlockPos pPos, List<StructureTemplate.StructureBlockInfo> pOriginalBlockInfos, List<StructureTemplate.StructureBlockInfo> pProcessedBlockInfos, StructurePlaceSettings pSettings) booleanStructureTemplate.placeInWorld(ServerLevelAccessor pServerLevel, BlockPos pOffset, BlockPos pPos, StructurePlaceSettings pSettings, RandomSource pRandom, @net.minecraft.world.level.block.Block.UpdateFlags int pFlags) StructureTemplate.processBlockInfos(ServerLevelAccessor pServerLevel, BlockPos pOffset, BlockPos pPos, StructurePlaceSettings pSettings, List<StructureTemplate.StructureBlockInfo> pBlockInfos) Deprecated.StructureTemplate.processBlockInfos(ServerLevelAccessor pServerLevel, BlockPos pOffset, BlockPos pPos, StructurePlaceSettings pSettings, List<StructureTemplate.StructureBlockInfo> pBlockInfos, @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) 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(net.minecraft.world.level.LevelAccessor, net.minecraft.world.entity.EntitySpawnReason)andMob.checkSpawnObstruction(net.minecraft.world.level.LevelReader).static booleanEventHooks.checkSpawnPositionSpawner(Mob mob, ServerLevelAccessor level, EntitySpawnReason spawnType, SpawnData spawnData, BaseSpawner spawner) Specialized variant ofEventHooks.checkSpawnPosition(net.minecraft.world.entity.Mob, net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.entity.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(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.EntitySpawnReason, net.minecraft.world.entity.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(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.EntitySpawnReason, net.minecraft.world.entity.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.