Uses of Class
net.minecraft.server.level.ServerLevel
Package
Description
-
Uses of ServerLevel in net.minecraft.advancements.critereon
Modifier and TypeMethodDescriptionboolean
BlockPredicate.matches
(ServerLevel p_17915_, BlockPos p_17916_) boolean
DamageSourcePredicate.matches
(ServerLevel p_25445_, Vec3 p_25446_, DamageSource p_25447_) boolean
DistanceTrigger.TriggerInstance.matches
(ServerLevel p_186189_, Vec3 p_186190_, Vec3 p_186191_) boolean
EntityPredicate.matches
(ServerLevel p_36608_, Vec3 p_36609_, Entity p_36610_) boolean
EntitySubPredicate.matches
(Entity p_218828_, ServerLevel p_218829_, Vec3 p_218830_) boolean
EntitySubPredicates.EntityHolderVariantPredicateType.Instance.matches
(Entity p_335756_, ServerLevel p_335539_, Vec3 p_336193_) boolean
EntitySubPredicates.EntityVariantPredicateType.Instance.matches
(Entity p_334092_, ServerLevel p_333810_, Vec3 p_333907_) boolean
FallAfterExplosionTrigger.TriggerInstance.matches
(ServerLevel p_335990_, Vec3 p_335477_, Vec3 p_336025_, LootContext p_335849_) boolean
FishingHookPredicate.matches
(Entity p_219716_, ServerLevel p_219717_, Vec3 p_219718_) boolean
FluidPredicate.matches
(ServerLevel p_41105_, BlockPos p_41106_) boolean
LightningBoltPredicate.matches
(Entity p_299034_, ServerLevel p_299101_, Vec3 p_298929_) boolean
LightPredicate.matches
(ServerLevel p_51342_, BlockPos p_51343_) boolean
LocationPredicate.matches
(ServerLevel p_52618_, double p_52619_, double p_52620_, double p_52621_) boolean
PlayerPredicate.matches
(Entity p_222484_, ServerLevel p_222485_, Vec3 p_222486_) boolean
RaiderPredicate.matches
(Entity p_338232_, ServerLevel p_338194_, Vec3 p_338564_) boolean
SlimePredicate.matches
(Entity p_223423_, ServerLevel p_223424_, Vec3 p_223425_) -
Uses of ServerLevel in net.minecraft.client.gui.components
-
Uses of ServerLevel in net.minecraft.client.renderer.debug
Modifier and TypeMethodDescriptionboolean
GameEventListenerRenderer.TrackedListener.handleGameEvent
(ServerLevel p_234540_, Holder<GameEvent> p_316503_, GameEvent.Context p_250285_, Vec3 p_250758_) -
Uses of ServerLevel in net.minecraft.commands
ModifierConstructorDescriptionCommandSourceStack
(CommandSource p_81302_, Vec3 p_81303_, Vec2 p_81304_, ServerLevel p_81305_, int p_81306_, String p_81307_, Component p_81308_, MinecraftServer p_81309_, Entity p_81310_) protected
CommandSourceStack
(CommandSource p_282943_, Vec3 p_282023_, Vec2 p_282896_, ServerLevel p_282659_, int p_283075_, String p_282379_, Component p_282469_, MinecraftServer p_281590_, Entity p_281515_, boolean p_282415_, CommandResultCallback p_309630_, EntityAnchorArgument.Anchor p_282332_, CommandSigningContext p_283585_, TaskChainer p_282376_) -
Uses of ServerLevel in net.minecraft.commands.arguments
Modifier and TypeMethodDescriptionstatic ServerLevel
DimensionArgument.getDimension
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_88809_, String p_88810_) -
Uses of ServerLevel in net.minecraft.commands.arguments.blocks
Modifier and TypeMethodDescriptionboolean
BlockInput.place
(ServerLevel p_114671_, BlockPos p_114672_, int p_114673_) boolean
BlockInput.test
(ServerLevel p_173524_, BlockPos p_173525_) -
Uses of ServerLevel in net.minecraft.commands.arguments.coordinates
Modifier and TypeMethodDescriptionstatic BlockPos
BlockPosArgument.getLoadedBlockPos
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_265283_, ServerLevel p_265219_, String p_265677_) -
Uses of ServerLevel in net.minecraft.commands.arguments.selector
Modifier and TypeMethodDescriptionprivate void
EntitySelector.addEntities
(List<Entity> p_121155_, ServerLevel p_121156_, AABB p_352947_, Predicate<Entity> p_121158_) -
Uses of ServerLevel in net.minecraft.core.dispenser
Modifier and TypeFieldDescriptionprivate final ServerLevel
BlockSource.level
The field for thelevel
record component.Modifier and TypeMethodDescriptionBlockSource.level()
Returns the value of thelevel
record component.Modifier and TypeMethodDescriptionprivate static boolean
ShearsDispenseItemBehavior.tryShearBeehive
(ServerLevel p_123577_, BlockPos p_123578_) private static boolean
ShearsDispenseItemBehavior.tryShearLivingEntity
(ServerLevel p_123583_, BlockPos p_123584_) ModifierConstructorDescriptionBlockSource
(ServerLevel level, BlockPos pos, BlockState state, DispenserBlockEntity blockEntity) Creates an instance of aBlockSource
record class. -
Uses of ServerLevel in net.minecraft.gametest.framework
Modifier and TypeFieldDescriptionprivate final ServerLevel
GameTestInfo.level
private final ServerLevel
GameTestRunner.Builder.level
(package private) final ServerLevel
GameTestRunner.level
private final ServerLevel
TestCommand.TestSummaryDisplayer.level
The field for thelevel
record component.Modifier and TypeFieldDescriptionprivate static final Map
<String, Consumer<ServerLevel>> GameTestRegistry.AFTER_BATCH_FUNCTIONS
private final Consumer
<ServerLevel> GameTestBatch.afterBatchFunction
The field for theafterBatchFunction
record component.private static final Map
<String, Consumer<ServerLevel>> GameTestRegistry.BEFORE_BATCH_FUNCTIONS
private final Consumer
<ServerLevel> GameTestBatch.beforeBatchFunction
The field for thebeforeBatchFunction
record component.Modifier and TypeMethodDescriptionGameTestHelper.getLevel()
GameTestInfo.getLevel()
TestCommand.TestSummaryDisplayer.level()
Returns the value of thelevel
record component.Modifier and TypeMethodDescriptionGameTestBatch.afterBatchFunction()
Returns the value of theafterBatchFunction
record component.GameTestBatch.beforeBatchFunction()
Returns the value of thebeforeBatchFunction
record component.static Consumer
<ServerLevel> GameTestRegistry.getAfterBatchFunction
(String p_177518_) static Consumer
<ServerLevel> GameTestRegistry.getBeforeBatchFunction
(String p_127677_) Modifier and TypeMethodDescriptionstatic void
StructureUtils.addCommandBlockAndButtonToStartTest
(BlockPos p_127876_, BlockPos p_127877_, Rotation p_127878_, ServerLevel p_127879_) private static void
StructureUtils.clearBlock
(int p_127842_, BlockPos p_127843_, ServerLevel p_127844_) static void
GameTestRunner.clearMarkers
(ServerLevel p_127686_) static void
StructureUtils.clearSpaceForStructure
(BoundingBox p_127850_, ServerLevel p_127852_) private static Optional
<GameTestInfo> TestCommand.createGameTestInfo
(BlockPos p_320172_, ServerLevel p_320346_, RetryOptions p_320822_) static void
StructureUtils.createNewEmptyStructureBlock
(String p_177765_, BlockPos p_177766_, Vec3i p_177767_, Rotation p_177768_, ServerLevel p_177769_) private static StructureBlockEntity
StructureUtils.createStructureBlock
(GameTestInfo p_312256_, BlockPos p_127892_, Rotation p_127893_, ServerLevel p_127894_) private static boolean
StructureUtils.doesStructureContain
(BlockPos p_127868_, BlockPos p_127869_, ServerLevel p_127870_) static void
StructureUtils.encaseStructure
(AABB p_326863_, ServerLevel p_326882_, boolean p_326950_) StructureUtils.findNearestStructureBlock
(BlockPos p_127907_, int p_127908_, ServerLevel p_127909_) StructureUtils.findStructureBlockContainingPos
(BlockPos p_127854_, int p_127855_, ServerLevel p_127856_) StructureUtils.findStructureBlocks
(BlockPos p_127911_, int p_127912_, ServerLevel p_127913_) StructureUtils.findStructureByTestFunction
(BlockPos p_340830_, int p_340828_, ServerLevel p_340893_, String p_341292_) private static void
StructureUtils.forceLoadChunks
(BoundingBox p_308909_, ServerLevel p_127859_) static GameTestRunner.Builder
GameTestRunner.Builder.fromBatches
(Collection<GameTestBatch> p_319850_, ServerLevel p_320176_) static GameTestRunner.Builder
GameTestRunner.Builder.fromInfo
(Collection<GameTestInfo> p_319878_, ServerLevel p_320046_) static Collection
<GameTestBatch> GameTestBatchFactory.fromTestFunction
(Collection<TestFunction> p_320519_, ServerLevel p_319999_) private static BoundingBox
StructureUtils.getBoundingBoxAtGround
(BlockPos p_341291_, int p_341122_, ServerLevel p_341148_) StructureUtils.lookedAtStructureBlockPos
(BlockPos p_320206_, Entity p_320494_, ServerLevel p_320139_) default void
GameTestRunner.StructureSpawner.onBatchStart
(ServerLevel p_352207_) void
StructureGridSpawner.onBatchStart
(ServerLevel p_352155_) static StructureBlockEntity
StructureUtils.prepareTestStructure
(GameTestInfo p_312267_, BlockPos p_309600_, Rotation p_309541_, ServerLevel p_309609_) static void
StructureUtils.removeBarriers
(AABB p_326925_, ServerLevel p_326815_) protected static void
ReportGameListener.say
(ServerLevel p_177701_, ChatFormatting p_177702_, String p_177703_) (package private) static void
TestCommand.say
(ServerLevel p_127934_, String p_127935_, ChatFormatting p_127936_) private static void
ReportGameListener.showRedBox
(ServerLevel p_177697_, BlockPos p_177698_, String p_177699_) private static void
TestCommand.TestSummaryDisplayer.showTestSummaryIfAllDone
(ServerLevel p_319899_, MultipleTestTracker p_320682_) private void
GameTestServer.startTests
(ServerLevel p_177625_) static GameTestInfo
GameTestBatchFactory.toGameTestInfo
(TestFunction p_320432_, int p_320796_, ServerLevel p_320136_) (package private) static int
TestCommand.trackAndStartRunner
(CommandSourceStack p_320627_, ServerLevel p_320564_, GameTestRunner p_320295_) private static boolean
TestCommand.verifyStructureExists
(ServerLevel p_309700_, String p_320698_) Modifier and TypeMethodDescriptionprivate static <T extends Annotation>
voidGameTestRegistry.registerBatchFunction
(Method p_177506_, Class<T> p_177507_, Function<T, String> p_177508_, Map<String, Consumer<ServerLevel>> p_177509_) ModifierConstructorDescriptionprivate
Builder
(Collection<GameTestBatch> p_320127_, ServerLevel p_320437_) GameTestInfo
(TestFunction p_127613_, Rotation p_127614_, ServerLevel p_127615_, RetryOptions p_320308_) protected
GameTestRunner
(GameTestRunner.GameTestBatcher p_320713_, Collection<GameTestBatch> p_320022_, ServerLevel p_320570_, GameTestTicker p_320736_, GameTestRunner.StructureSpawner p_320336_, GameTestRunner.StructureSpawner p_320643_, boolean p_352218_) TestSummaryDisplayer
(ServerLevel level, MultipleTestTracker tracker) Creates an instance of aTestSummaryDisplayer
record class.ModifierConstructorDescriptionGameTestBatch
(String name, Collection<GameTestInfo> gameTestInfos, Consumer<ServerLevel> beforeBatchFunction, Consumer<ServerLevel> afterBatchFunction) Creates an instance of aGameTestBatch
record class. -
Uses of ServerLevel in net.minecraft.network.protocol
Modifier and TypeMethodDescriptionstatic <T extends PacketListener>
voidPacketUtils.ensureRunningOnSameThread
(Packet<T> p_131360_, T p_131361_, ServerLevel p_131362_) -
Uses of ServerLevel in net.minecraft.network.protocol.game
Modifier and TypeMethodDescriptionServerboundTeleportToEntityPacket.getEntity
(ServerLevel p_134682_) private static String
DebugPackets.getShortDescription
(ServerLevel p_179493_, Object p_179494_) ServerboundInteractPacket.getTarget
(ServerLevel p_179604_) static void
DebugPackets.sendGameTestAddMarker
(ServerLevel p_133683_, BlockPos p_133684_, String p_133685_, int p_133686_, int p_133687_) static void
DebugPackets.sendGameTestClearPacket
(ServerLevel p_133675_) private static void
DebugPackets.sendPacketToAllPlayers
(ServerLevel p_133692_, CustomPacketPayload p_296119_) static void
DebugPackets.sendPoiAddedPacket
(ServerLevel p_133680_, BlockPos p_133681_) static void
DebugPackets.sendPoiPacketsForChunk
(ServerLevel p_133677_, ChunkPos p_133678_) static void
DebugPackets.sendPoiRemovedPacket
(ServerLevel p_133717_, BlockPos p_133718_) static void
DebugPackets.sendPoiTicketCountPacket
(ServerLevel p_133720_, BlockPos p_133721_) static void
DebugPackets.sendRaids
(ServerLevel p_133689_, Collection<Raid> p_133690_) private static void
DebugPackets.sendVillageSectionsPacket
(ServerLevel p_133723_, BlockPos p_133724_) -
Uses of ServerLevel in net.minecraft.server
Modifier and TypeFieldDescriptionprivate final Map
<ResourceKey<Level>, ServerLevel> MinecraftServer.levels
Modifier and TypeMethodDescriptionMinecraftServer.getLevel
(ResourceKey<Level> p_129881_) private ServerLevel[]
MinecraftServer.getWorldArray()
final ServerLevel
MinecraftServer.overworld()
Modifier and TypeMethodDescriptionMinecraftServer.forgeGetWorldMap()
Deprecated.MinecraftServer.getAllLevels()
Modifier and TypeMethodDescriptionint
MinecraftServer.getSpawnRadius
(ServerLevel p_129804_) boolean
MinecraftServer.isUnderSpawnProtection
(ServerLevel p_129811_, BlockPos p_129812_, Player p_129813_) private static void
MinecraftServer.setInitialSpawn
(ServerLevel p_177897_, ServerLevelData p_177898_, boolean p_177899_, boolean p_177900_) private void
MinecraftServer.synchronizeTime
(ServerLevel p_276371_) -
Uses of ServerLevel in net.minecraft.server.commands
Modifier and TypeFieldDescriptionprivate final ServerLevel
CloneCommands.DimensionAndPosition.dimension
The field for thedimension
record component.Modifier and TypeMethodDescriptionCloneCommands.DimensionAndPosition.dimension()
Returns the value of thedimension
record component.Modifier and TypeMethodDescriptionprivate static void
PlaceCommand.checkLoaded
(ServerLevel p_214544_, ChunkPos p_214545_, ChunkPos p_214546_) private static OptionalInt
ExecuteCommand.checkRegions
(ServerLevel p_137037_, BlockPos p_137038_, BlockPos p_137039_, BlockPos p_137040_, boolean p_137041_) static com.mojang.datafixers.util.Either
<Integer, com.mojang.brigadier.exceptions.CommandSyntaxException> FillBiomeCommand.fill
(ServerLevel p_313898_, BlockPos p_313859_, BlockPos p_313868_, Holder<Biome> p_313728_) static com.mojang.datafixers.util.Either
<Integer, com.mojang.brigadier.exceptions.CommandSyntaxException> FillBiomeCommand.fill
(ServerLevel p_313779_, BlockPos p_313726_, BlockPos p_313895_, Holder<Biome> p_313905_, Predicate<Holder<Biome>> p_313945_, Consumer<Supplier<Component>> p_313787_) SetBlockCommand.Filter.filter
(BoundingBox p_138620_, BlockPos p_138621_, BlockInput p_138622_, ServerLevel p_138623_) private static int
TimeCommand.getDayTime
(ServerLevel p_139070_) private static CloneCommands.DimensionAndPosition
CloneCommands.getLoadedDimensionAndPosition
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_265513_, ServerLevel p_265183_, String p_265511_) private static boolean
ExecuteCommand.isChunkLoaded
(ServerLevel p_265261_, BlockPos p_265260_) private static void
TeleportCommand.performTeleport
(CommandSourceStack p_139015_, Entity p_139016_, ServerLevel p_139017_, double p_139018_, double p_139019_, double p_139020_, Set<RelativeMovement> p_139021_, float p_139022_, float p_139023_, TeleportCommand.LookAt p_139024_) private static double
SpreadPlayersCommand.setPlayerPositions
(Collection<? extends Entity> p_138730_, ServerLevel p_138731_, SpreadPlayersCommand.Position[] p_138732_, int p_138733_, boolean p_138734_) private static void
SpreadPlayersCommand.spreadPositions
(Vec2 p_214741_, double p_214742_, ServerLevel p_214743_, RandomSource p_214744_, double p_214745_, double p_214746_, double p_214747_, double p_214748_, int p_214749_, SpreadPlayersCommand.Position[] p_214750_, boolean p_214751_) private static int
TeleportCommand.teleportToPos
(CommandSourceStack p_139026_, Collection<? extends Entity> p_139027_, ServerLevel p_139028_, Coordinates p_139029_, Coordinates p_139030_, TeleportCommand.LookAt p_139031_) Modifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> CloneCommands.beginEndDestinationAndModeSuffix
(CommandBuildContext p_265681_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> p_265514_) private static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> CloneCommands.destinationAndModeSuffix
(CommandBuildContext p_265238_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> p_265621_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> p_265296_) ModifierConstructorDescription(package private)
DimensionAndPosition
(ServerLevel dimension, BlockPos position) Creates an instance of aDimensionAndPosition
record class. -
Uses of ServerLevel in net.minecraft.server.dedicated
Modifier and TypeMethodDescriptionboolean
DedicatedServer.isUnderSpawnProtection
(ServerLevel p_139630_, BlockPos p_139631_, Player p_139632_) -
Uses of ServerLevel in net.minecraft.server.level
Modifier and TypeFieldDescription(package private) final ServerLevel
ChunkMap.level
final ServerLevel
ServerChunkCache.level
private final ServerLevel
ServerEntity.level
protected ServerLevel
ServerPlayerGameMode.level
private final ServerLevel
WorldGenRegion.level
Modifier and TypeMethodDescriptionServerLevel.getLevel()
WorldGenRegion.getLevel()
Deprecated.ServerPlayer.serverLevel()
Modifier and TypeMethodDescriptionServerPlayer.adjustSpawnLocation
(ServerLevel p_352206_, BlockPos p_352202_) ServerPlayer.createCommonSpawnInfo
(ServerLevel p_294169_) private static Optional
<ServerPlayer.RespawnPosAngle> ServerPlayer.findRespawnAndUseSpawnBlock
(ServerLevel p_348505_, BlockPos p_348607_, float p_348481_, boolean p_348513_, boolean p_348600_) protected static BlockPos
PlayerRespawnLogic.getOverworldRespawnPos
(ServerLevel p_183929_, int p_183930_, int p_183931_) static BlockPos
PlayerRespawnLogic.getSpawnPosInChunk
(ServerLevel p_183933_, ChunkPos p_183934_) protected void
ServerPlayer.onChangedBlock
(ServerLevel p_346052_, BlockPos p_9206_) void
ServerPlayerGameMode.setLevel
(ServerLevel p_9261_) void
ServerPlayer.setServerLevel
(ServerLevel p_284971_) void
ServerPlayer.teleportTo
(ServerLevel p_9000_, double p_9001_, double p_9002_, double p_9003_, float p_9004_, float p_9005_) boolean
ServerPlayer.teleportTo
(ServerLevel p_265564_, double p_265424_, double p_265680_, double p_265312_, Set<RelativeMovement> p_265192_, float p_265059_, float p_265266_) private void
ServerPlayer.triggerDimensionChangeTriggers
(ServerLevel p_9210_) ModifierConstructorDescriptionChunkMap
(ServerLevel p_214836_, LevelStorageSource.LevelStorageAccess p_214837_, com.mojang.datafixers.DataFixer p_214838_, StructureTemplateManager p_214839_, Executor p_214840_, BlockableEventLoop<Runnable> p_214841_, LightChunkGetter p_214842_, ChunkGenerator p_214843_, ChunkProgressListener p_214844_, ChunkStatusUpdateListener p_214845_, Supplier<DimensionDataStorage> p_214846_, int p_214847_, boolean p_214848_) ServerChunkCache
(ServerLevel p_214982_, LevelStorageSource.LevelStorageAccess p_214983_, com.mojang.datafixers.DataFixer p_214984_, StructureTemplateManager p_214985_, Executor p_214986_, ChunkGenerator p_214987_, int p_214988_, int p_214989_, boolean p_214990_, ChunkProgressListener p_214991_, ChunkStatusUpdateListener p_214992_, Supplier<DimensionDataStorage> p_214993_) ServerEntity
(ServerLevel p_8528_, Entity p_8529_, int p_8530_, boolean p_8531_, Consumer<Packet<?>> p_8532_) ServerPlayer
(MinecraftServer p_254143_, ServerLevel p_254435_, com.mojang.authlib.GameProfile p_253651_, ClientInformation p_301997_) WorldGenRegion
(ServerLevel p_143484_, StaticCache2D<GenerationChunkHolder> p_347548_, ChunkStep p_347626_, ChunkAccess p_347663_) -
Uses of ServerLevel in net.minecraft.server.network
Modifier and TypeMethodDescriptionprivate static void
PlayerChunkSender.sendChunk
(ServerGamePacketListenerImpl p_295237_, ServerLevel p_294963_, LevelChunk p_295144_) -
Uses of ServerLevel in net.minecraft.server.players
Modifier and TypeMethodDescriptionvoid
PlayerList.addWorldborderListener
(ServerLevel p_184210_) void
PlayerList.sendLevelInfo
(ServerPlayer p_11230_, ServerLevel p_11231_) -
Uses of ServerLevel in net.minecraft.util
Modifier and TypeMethodDescriptionboolean
SpawnUtil.Strategy.canSpawnOn
(ServerLevel p_216428_, BlockPos p_216429_, BlockState p_216430_, BlockPos p_216431_, BlockState p_216432_) private static boolean
SpawnUtil.moveToPossibleSpawnPosition
(ServerLevel p_216399_, int p_216400_, BlockPos.MutableBlockPos p_216401_, SpawnUtil.Strategy p_216402_) SpawnUtil.trySpawnMob
(EntityType<T> p_216404_, MobSpawnType p_216405_, ServerLevel p_216406_, BlockPos p_216407_, int p_216408_, int p_216409_, int p_216410_, SpawnUtil.Strategy p_216411_) -
Uses of ServerLevel in net.minecraft.world.effect
Modifier and TypeMethodDescriptionstatic List
<ServerPlayer> MobEffectUtil.addEffectToPlayersAround
(ServerLevel p_216947_, Entity p_216948_, Vec3 p_216949_, double p_216950_, MobEffectInstance p_216951_, int p_216952_) -
Uses of ServerLevel in net.minecraft.world.entity
Modifier and TypeMethodDescriptionEntity.adjustSpawnLocation
(ServerLevel p_352356_, BlockPos p_352343_) EntityType.appendCustomEntityStackConfig
(Consumer<T> p_263579_, ServerLevel p_263571_, ItemStack p_263582_, Player p_263574_) EntityType.appendDefaultStackConfig
(Consumer<T> p_265154_, ServerLevel p_265733_, ItemStack p_265598_, Player p_265666_) static void
ExperienceOrb.award
(ServerLevel p_147083_, Vec3 p_147084_, int p_147085_) EntityType.create
(ServerLevel p_262637_, Consumer<T> p_262629_, BlockPos p_262595_, MobSpawnType p_262666_, boolean p_262685_, boolean p_262588_) EntityType.createDefaultStackConfig
(ServerLevel p_263583_, ItemStack p_263568_, Player p_263575_) private LootParams
Mob.createEquipmentParams
(ServerLevel p_338758_) protected void
LivingEntity.dropAllDeathLoot
(ServerLevel p_348524_, DamageSource p_21192_) protected void
LivingEntity.dropCustomDeathLoot
(ServerLevel p_348639_, DamageSource p_21018_, boolean p_21020_) protected void
Mob.dropCustomDeathLoot
(ServerLevel p_348683_, DamageSource p_21385_, boolean p_21387_) abstract AgeableMob
AgeableMob.getBreedOffspring
(ServerLevel p_146743_, AgeableMob p_146744_) final int
LivingEntity.getExperienceReward
(ServerLevel p_345212_, Entity p_345512_) PortalProcessor.getPortalDestination
(ServerLevel p_350593_, Entity p_350987_) boolean
Entity.killedEntity
(ServerLevel p_216988_, LivingEntity p_216989_) protected void
LivingEntity.onChangedBlock
(ServerLevel p_345126_, BlockPos p_21175_) boolean
PortalProcessor.processPortalTeleportation
(ServerLevel p_350279_, Entity p_350646_, boolean p_350822_) EntityType.spawn
(ServerLevel p_262704_, Consumer<T> p_262621_, BlockPos p_262672_, MobSpawnType p_262644_, boolean p_262690_, boolean p_262590_) EntityType.spawn
(ServerLevel p_262634_, BlockPos p_262707_, MobSpawnType p_262597_) EntityType.spawn
(ServerLevel p_20593_, ItemStack p_20594_, Player p_20595_, BlockPos p_20596_, MobSpawnType p_20597_, boolean p_20598_, boolean p_20599_) boolean
Entity.teleportTo
(ServerLevel p_265257_, double p_265407_, double p_265727_, double p_265410_, Set<RelativeMovement> p_265083_, float p_265573_, float p_265094_) void
Entity.thunderHit
(ServerLevel p_19927_, LightningBolt p_19928_) private static boolean
ExperienceOrb.tryMergeToExisting
(ServerLevel p_147097_, Vec3 p_147098_, int p_147099_) default void
NeutralMob.updatePersistentAnger
(ServerLevel p_21667_, boolean p_21668_) Modifier and TypeMethodDescriptionvoid
Entity.updateDynamicGameEventListener
(BiConsumer<DynamicGameEventListener<?>, ServerLevel> p_216996_) -
Uses of ServerLevel in net.minecraft.world.entity.ai
Modifier and TypeMethodDescriptionprivate void
Brain.startEachNonRunningBehavior
(ServerLevel p_21958_, E p_21959_) void
Brain.stopAll
(ServerLevel p_21934_, E p_21935_) void
Brain.tick
(ServerLevel p_21866_, E p_21867_) private void
Brain.tickEachRunningBehavior
(ServerLevel p_21964_, E p_21965_) private void
Brain.tickSensors
(ServerLevel p_21950_, E p_21951_) -
Uses of ServerLevel in net.minecraft.world.entity.ai.behavior
Modifier and TypeMethodDescriptionabstract <E extends LivingEntity>
voidGateBehavior.RunningPolicy.apply
(Stream<BehaviorControl<? super E>> p_147532_, ServerLevel p_147533_, E p_147534_, long p_147535_) private static boolean
ValidateNearbyPoi.bedIsOccupied
(ServerLevel p_24531_, BlockPos p_24532_, LivingEntity p_24533_) VillagerMakeLove.breed
(ServerLevel p_24656_, Villager p_24657_, Villager p_24658_) private static int
GiveGiftToHero.calculateTimeUntilNextGift
(ServerLevel p_22994_) protected boolean
AnimalMakeLove.canStillUse
(ServerLevel p_22416_, Animal p_22417_, long p_22418_) protected boolean
AnimalPanic.canStillUse
(ServerLevel p_147391_, E p_147392_, long p_147393_) protected boolean
Behavior.canStillUse
(ServerLevel p_22545_, E p_22546_, long p_22547_) protected boolean
CelebrateVillagersSurvivedRaid.canStillUse
(ServerLevel p_22693_, Villager p_22694_, long p_22695_) protected boolean
CountDownCooldownTicks.canStillUse
(ServerLevel p_147468_, LivingEntity p_147469_, long p_147470_) protected boolean
Croak.canStillUse
(ServerLevel p_217154_, Frog p_217155_, long p_217156_) protected boolean
CrossbowAttack.canStillUse
(ServerLevel p_22781_, E p_22782_, long p_22783_) protected boolean
FollowTemptation.canStillUse
(ServerLevel p_147494_, PathfinderMob p_147495_, long p_147496_) protected boolean
GiveGiftToHero.canStillUse
(ServerLevel p_23026_, Villager p_23027_, long p_23028_) protected boolean
GoAndGiveItemsToTarget.canStillUse
(ServerLevel p_217218_, E p_217219_, long p_217220_) protected boolean
GoToPotentialJobSite.canStillUse
(ServerLevel p_23106_, Villager p_23107_, long p_23108_) protected boolean
HarvestFarmland.canStillUse
(ServerLevel p_23204_, Villager p_23205_, long p_23206_) protected boolean
JumpOnBed.canStillUse
(ServerLevel p_23383_, Mob p_23384_, long p_23385_) protected boolean
LongJumpMidJump.canStillUse
(ServerLevel p_147603_, Mob p_147604_, long p_147605_) protected boolean
LongJumpToRandomPos.canStillUse
(ServerLevel p_147653_, Mob p_147654_, long p_147655_) protected boolean
LookAndFollowTradingPlayerSink.canStillUse
(ServerLevel p_23448_, Villager p_23449_, long p_23450_) protected boolean
LookAtTargetSink.canStillUse
(ServerLevel p_23481_, Mob p_23482_, long p_23483_) protected boolean
MoveToTargetSink.canStillUse
(ServerLevel p_23586_, Mob p_23587_, long p_23588_) protected boolean
PrepareRamNearestTarget.canStillUse
(ServerLevel p_147773_, PathfinderMob p_147774_, long p_147775_) protected boolean
RamTarget.canStillUse
(ServerLevel p_217352_, Goat p_217353_, long p_217354_) boolean
ShowTradesToPlayer.canStillUse
(ServerLevel p_24109_, Villager p_24110_, long p_24111_) protected boolean
SleepInBed.canStillUse
(ServerLevel p_24161_, LivingEntity p_24162_, long p_24163_) protected boolean
Swim.canStillUse
(ServerLevel p_24391_, Mob p_24392_, long p_24393_) protected boolean
TradeWithVillager.canStillUse
(ServerLevel p_24419_, Villager p_24420_, long p_24421_) protected boolean
UseBonemeal.canStillUse
(ServerLevel p_24477_, Villager p_24478_, long p_24479_) protected boolean
VillagerMakeLove.canStillUse
(ServerLevel p_24626_, Villager p_24627_, long p_24628_) protected boolean
VillagerPanicTrigger.canStillUse
(ServerLevel p_24684_, Villager p_24685_, long p_24686_) protected boolean
WorkAtPoi.canStillUse
(ServerLevel p_24830_, Villager p_24831_, long p_24832_) protected boolean
AnimalMakeLove.checkExtraStartConditions
(ServerLevel p_22401_, Animal p_22402_) protected boolean
AnimalPanic.checkExtraStartConditions
(ServerLevel p_275286_, E p_275721_) protected boolean
Behavior.checkExtraStartConditions
(ServerLevel p_22538_, E p_22539_) protected boolean
CelebrateVillagersSurvivedRaid.checkExtraStartConditions
(ServerLevel p_22690_, Villager p_22691_) protected boolean
Croak.checkExtraStartConditions
(ServerLevel p_217151_, Frog p_217152_) protected boolean
CrossbowAttack.checkExtraStartConditions
(ServerLevel p_22778_, E p_22779_) protected boolean
GiveGiftToHero.checkExtraStartConditions
(ServerLevel p_23003_, Villager p_23004_) protected boolean
GoAndGiveItemsToTarget.checkExtraStartConditions
(ServerLevel p_217196_, E p_217197_) protected boolean
GoToPotentialJobSite.checkExtraStartConditions
(ServerLevel p_23103_, Villager p_23104_) protected boolean
HarvestFarmland.checkExtraStartConditions
(ServerLevel p_23174_, Villager p_23175_) protected boolean
JumpOnBed.checkExtraStartConditions
(ServerLevel p_23346_, Mob p_23347_) protected boolean
LongJumpToRandomPos.checkExtraStartConditions
(ServerLevel p_147650_, Mob p_147651_) protected boolean
LookAndFollowTradingPlayerSink.checkExtraStartConditions
(ServerLevel p_23445_, Villager p_23446_) protected boolean
MoveToTargetSink.checkExtraStartConditions
(ServerLevel p_23583_, Mob p_23584_) protected boolean
RamTarget.checkExtraStartConditions
(ServerLevel p_217349_, Goat p_217350_) boolean
ShowTradesToPlayer.checkExtraStartConditions
(ServerLevel p_24106_, Villager p_24107_) protected boolean
SleepInBed.checkExtraStartConditions
(ServerLevel p_24154_, LivingEntity p_24155_) protected boolean
Swim.checkExtraStartConditions
(ServerLevel p_24388_, Mob p_24389_) protected boolean
TradeWithVillager.checkExtraStartConditions
(ServerLevel p_24416_, Villager p_24417_) protected boolean
UseBonemeal.checkExtraStartConditions
(ServerLevel p_24474_, Villager p_24475_) protected boolean
VillagerMakeLove.checkExtraStartConditions
(ServerLevel p_24623_, Villager p_24624_) protected boolean
WorkAtPoi.checkExtraStartConditions
(ServerLevel p_24827_, Villager p_24828_) static void
InteractWithDoor.closeDoorsThatIHaveOpenedOrPassedThrough
(ServerLevel p_260343_, LivingEntity p_259371_, Node p_259408_, Node p_260013_, Set<GlobalPos> p_259401_, Optional<List<LivingEntity>> p_260015_) private void
WorkAtComposter.compostItems
(ServerLevel p_24793_, Villager p_24794_, GlobalPos p_24795_, BlockState p_24796_) final void
Behavior.doStop
(ServerLevel p_22563_, E p_22564_, long p_22565_) void
BehaviorControl.doStop
(ServerLevel p_259056_, E p_259620_, long p_260105_) final void
DoNothing.doStop
(ServerLevel p_260265_, LivingEntity p_259336_, long p_259826_) final void
GateBehavior.doStop
(ServerLevel p_259962_, E p_260250_, long p_259847_) final void
OneShot.doStop
(ServerLevel p_260215_, E p_259970_, long p_260273_) static SectionPos
BehaviorUtils.findSectionClosestToVillage
(ServerLevel p_22582_, SectionPos p_22583_, int p_22584_) protected void
RamTarget.finishRam
(ServerLevel p_217356_, Goat p_217357_) protected Optional
<LongJumpToRandomPos.PossibleJump> LongJumpToPreferredBlock.getJumpCandidate
(ServerLevel p_217273_) protected Optional
<LongJumpToRandomPos.PossibleJump> LongJumpToRandomPos.getJumpCandidate
(ServerLevel p_217299_) private static Vec3
MoveToSkySeeingSpot.getOutdoorPosition
(ServerLevel p_23565_, LivingEntity p_23566_) private Vec3
AnimalPanic.getPanicPos
(E p_196639_, ServerLevel p_196640_) private BlockPos
HarvestFarmland.getValidFarmland
(ServerLevel p_23165_) private void
VillagerMakeLove.giveBedToChild
(ServerLevel p_24634_, Villager p_24635_, BlockPos p_24636_) static boolean
MoveToSkySeeingSpot.hasNoBlocksAbove
(ServerLevel p_23559_, LivingEntity p_23560_, BlockPos p_23561_) private boolean
RamTarget.hasRammedHornBreakingBlock
(ServerLevel p_217363_, Goat p_217364_) private boolean
LongJumpToRandomPos.isAcceptableLandingPosition
(ServerLevel p_217300_, E p_217301_, BlockPos p_217302_) private boolean
JumpOnBed.isBed
(ServerLevel p_23357_, BlockPos p_23358_) private static boolean
InteractWithDoor.isDoorTooFarAway
(ServerLevel p_23308_, LivingEntity p_23309_, GlobalPos p_23310_) private boolean
JumpOnBed.nearBed
(ServerLevel p_23369_, Mob p_23370_) private boolean
JumpOnBed.onBedSurface
(ServerLevel p_23391_, Mob p_23392_) private boolean
JumpOnBed.onOrOverBed
(ServerLevel p_23380_, Mob p_23381_) protected void
LongJumpToRandomPos.pickCandidate
(ServerLevel p_217319_, E p_217320_, long p_217321_) UseBonemeal.pickNextTarget
(ServerLevel p_24493_, Villager p_24494_) private static boolean
VillagerGoalPackages.raidExistsAndActive
(ServerLevel p_260274_, LivingEntity p_260163_) private static boolean
VillagerGoalPackages.raidExistsAndNotVictory
(ServerLevel p_259939_, LivingEntity p_259384_) InteractWithDoor.rememberDoorToClose
(MemoryAccessor<com.mojang.datafixers.kinds.OptionalBox.Mu, Set<GlobalPos>> p_262178_, Optional<Set<GlobalPos>> p_261639_, ServerLevel p_261528_, BlockPos p_261874_) private void
WorkAtComposter.spawnComposterFillEffects
(ServerLevel p_24798_, BlockState p_24799_, BlockPos p_24800_, BlockState p_24801_) protected void
AnimalMakeLove.start
(ServerLevel p_22404_, Animal p_22405_, long p_22406_) protected void
AnimalPanic.start
(ServerLevel p_147399_, E p_147400_, long p_147401_) protected void
Behavior.start
(ServerLevel p_22540_, E p_22541_, long p_22542_) protected void
Croak.start
(ServerLevel p_217162_, Frog p_217163_, long p_217164_) protected void
FollowTemptation.start
(ServerLevel p_147505_, PathfinderMob p_147506_, long p_147507_) protected void
GiveGiftToHero.start
(ServerLevel p_23006_, Villager p_23007_, long p_23008_) protected void
GoAndGiveItemsToTarget.start
(ServerLevel p_217199_, E p_217200_, long p_217201_) protected void
HarvestFarmland.start
(ServerLevel p_23177_, Villager p_23178_, long p_23179_) protected void
JumpOnBed.start
(ServerLevel p_23349_, Mob p_23350_, long p_23351_) protected void
LongJumpMidJump.start
(ServerLevel p_147611_, Mob p_147612_, long p_147613_) protected void
LongJumpToPreferredBlock.start
(ServerLevel p_217279_, E p_217280_, long p_217281_) protected void
LongJumpToRandomPos.start
(ServerLevel p_147676_, E p_147677_, long p_147678_) protected void
LookAndFollowTradingPlayerSink.start
(ServerLevel p_23458_, Villager p_23459_, long p_23460_) protected void
MoveToTargetSink.start
(ServerLevel p_23609_, Mob p_23610_, long p_23611_) protected void
PrepareRamNearestTarget.start
(ServerLevel p_147736_, PathfinderMob p_147737_, long p_147738_) protected void
RamTarget.start
(ServerLevel p_217359_, Goat p_217360_, long p_217361_) protected void
RandomLookAround.start
(ServerLevel p_250941_, Mob p_248765_, long p_251801_) void
ShowTradesToPlayer.start
(ServerLevel p_24124_, Villager p_24125_, long p_24126_) protected void
SleepInBed.start
(ServerLevel p_24157_, LivingEntity p_24158_, long p_24159_) protected void
TradeWithVillager.start
(ServerLevel p_24437_, Villager p_24438_, long p_24439_) protected void
UseBonemeal.start
(ServerLevel p_24496_, Villager p_24497_, long p_24498_) protected void
VillagerMakeLove.start
(ServerLevel p_24652_, Villager p_24653_, long p_24654_) protected void
VillagerPanicTrigger.start
(ServerLevel p_24694_, Villager p_24695_, long p_24696_) protected void
WorkAtPoi.start
(ServerLevel p_24816_, Villager p_24817_, long p_24818_) protected void
AnimalMakeLove.stop
(ServerLevel p_22438_, Animal p_22439_, long p_22440_) protected void
AnimalPanic.stop
(ServerLevel p_217118_, E p_217119_, long p_217120_) protected void
Behavior.stop
(ServerLevel p_22548_, E p_22549_, long p_22550_) protected void
CelebrateVillagersSurvivedRaid.stop
(ServerLevel p_22704_, Villager p_22705_, long p_22706_) protected void
CountDownCooldownTicks.stop
(ServerLevel p_147472_, LivingEntity p_147473_, long p_147474_) protected void
Croak.stop
(ServerLevel p_217170_, Frog p_217171_, long p_217172_) protected void
CrossbowAttack.stop
(ServerLevel p_22805_, E p_22806_, long p_22807_) protected void
FollowTemptation.stop
(ServerLevel p_147515_, PathfinderMob p_147516_, long p_147517_) protected void
GiveGiftToHero.stop
(ServerLevel p_23046_, Villager p_23047_, long p_23048_) protected void
GoToPotentialJobSite.stop
(ServerLevel p_23129_, Villager p_23130_, long p_23131_) protected void
HarvestFarmland.stop
(ServerLevel p_23188_, Villager p_23189_, long p_23190_) protected void
JumpOnBed.stop
(ServerLevel p_23372_, Mob p_23373_, long p_23374_) protected void
LongJumpMidJump.stop
(ServerLevel p_147619_, Mob p_147620_, long p_147621_) protected void
LookAndFollowTradingPlayerSink.stop
(ServerLevel p_23466_, Villager p_23467_, long p_23468_) protected void
LookAtTargetSink.stop
(ServerLevel p_23492_, Mob p_23493_, long p_23494_) protected void
MoveToTargetSink.stop
(ServerLevel p_23601_, Mob p_23602_, long p_23603_) protected void
PrepareRamNearestTarget.stop
(ServerLevel p_147762_, E p_147763_, long p_147764_) void
ShowTradesToPlayer.stop
(ServerLevel p_24144_, Villager p_24145_, long p_24146_) protected void
SleepInBed.stop
(ServerLevel p_24165_, LivingEntity p_24166_, long p_24167_) protected void
TradeWithVillager.stop
(ServerLevel p_24453_, Villager p_24454_, long p_24455_) protected void
UseBonemeal.stop
(ServerLevel p_24504_, Villager p_24505_, long p_24506_) protected void
VillagerMakeLove.stop
(ServerLevel p_24675_, Villager p_24676_, long p_24677_) VillagerMakeLove.takeVacantBed
(ServerLevel p_24649_, Villager p_24650_) protected void
AnimalMakeLove.tick
(ServerLevel p_22428_, Animal p_22429_, long p_22430_) protected void
AnimalPanic.tick
(ServerLevel p_147403_, E p_147404_, long p_147405_) protected void
Behavior.tick
(ServerLevel p_22551_, E p_22552_, long p_22553_) protected void
CelebrateVillagersSurvivedRaid.tick
(ServerLevel p_22712_, Villager p_22713_, long p_22714_) protected void
CountDownCooldownTicks.tick
(ServerLevel p_147476_, LivingEntity p_147477_, long p_147478_) protected void
Croak.tick
(ServerLevel p_217178_, Frog p_217179_, long p_217180_) protected void
CrossbowAttack.tick
(ServerLevel p_22794_, E p_22795_, long p_22796_) protected void
FollowTemptation.tick
(ServerLevel p_147523_, PathfinderMob p_147524_, long p_147525_) protected void
GiveGiftToHero.tick
(ServerLevel p_23036_, Villager p_23037_, long p_23038_) protected void
GoAndGiveItemsToTarget.tick
(ServerLevel p_217226_, E p_217227_, long p_217228_) protected void
GoToPotentialJobSite.tick
(ServerLevel p_23121_, Villager p_23122_, long p_23123_) protected void
HarvestFarmland.tick
(ServerLevel p_23196_, Villager p_23197_, long p_23198_) protected void
JumpOnBed.tick
(ServerLevel p_23394_, Mob p_23395_, long p_23396_) protected void
LongJumpToRandomPos.tick
(ServerLevel p_147680_, E p_147681_, long p_147682_) protected void
LookAndFollowTradingPlayerSink.tick
(ServerLevel p_23474_, Villager p_23475_, long p_23476_) protected void
LookAtTargetSink.tick
(ServerLevel p_23503_, Mob p_23504_, long p_23505_) protected void
MoveToTargetSink.tick
(ServerLevel p_23617_, Mob p_23618_, long p_23619_) protected void
PrepareRamNearestTarget.tick
(ServerLevel p_147784_, E p_147785_, long p_147786_) protected void
RamTarget.tick
(ServerLevel p_217366_, Goat p_217367_, long p_217368_) void
ShowTradesToPlayer.tick
(ServerLevel p_24134_, Villager p_24135_, long p_24136_) protected void
Swim.tick
(ServerLevel p_24399_, Mob p_24400_, long p_24401_) protected void
TradeWithVillager.tick
(ServerLevel p_24445_, Villager p_24446_, long p_24447_) protected void
UseBonemeal.tick
(ServerLevel p_24512_, Villager p_24513_, long p_24514_) protected void
VillagerMakeLove.tick
(ServerLevel p_24667_, Villager p_24668_, long p_24669_) protected void
VillagerPanicTrigger.tick
(ServerLevel p_24700_, Villager p_24701_, long p_24702_) final void
Behavior.tickOrStop
(ServerLevel p_22559_, E p_22560_, long p_22561_) void
BehaviorControl.tickOrStop
(ServerLevel p_259926_, E p_260016_, long p_259089_) final void
DoNothing.tickOrStop
(ServerLevel p_259225_, LivingEntity p_259218_, long p_259803_) final void
GateBehavior.tickOrStop
(ServerLevel p_259934_, E p_259790_, long p_260259_) final void
OneShot.tickOrStop
(ServerLevel p_259112_, E p_259594_, long p_259046_) private boolean
JumpOnBed.tiredOfJumping
(ServerLevel p_23401_, Mob p_23402_) private boolean
JumpOnBed.tiredOfWalking
(ServerLevel p_23398_, Mob p_23399_) final boolean
Behavior.tryStart
(ServerLevel p_22555_, E p_22556_, long p_22557_) boolean
BehaviorControl.tryStart
(ServerLevel p_259494_, E p_259608_, long p_260186_) final boolean
DoNothing.tryStart
(ServerLevel p_259135_, LivingEntity p_259195_, long p_259189_) final boolean
GateBehavior.tryStart
(ServerLevel p_259362_, E p_259746_, long p_259560_) final boolean
OneShot.tryStart
(ServerLevel p_260083_, E p_259643_, long p_259226_) private void
VillagerMakeLove.tryToGiveBirth
(ServerLevel p_24630_, Villager p_24631_, Villager p_24632_) protected void
WorkAtComposter.useWorkstation
(ServerLevel p_24790_, Villager p_24791_) protected void
WorkAtPoi.useWorkstation
(ServerLevel p_24813_, Villager p_24814_) private boolean
HarvestFarmland.validPos
(BlockPos p_23181_, ServerLevel p_23182_) private boolean
UseBonemeal.validPos
(BlockPos p_24486_, ServerLevel p_24487_) -
Uses of ServerLevel in net.minecraft.world.entity.ai.behavior.declarative
Modifier and TypeMethodDescriptionboolean
Trigger.trigger
(ServerLevel p_259730_, E p_260017_, long p_259489_) BehaviorBuilder.TriggerWithResult.tryTrigger
(ServerLevel p_259864_, E p_259042_, long p_260282_) Modifier and TypeMethodDescriptionstatic <E extends LivingEntity>
OneShot<E> BehaviorBuilder.triggerIf
(BiPredicate<ServerLevel, E> p_259227_) -
Uses of ServerLevel in net.minecraft.world.entity.ai.behavior.warden
Modifier and TypeMethodDescriptionprotected boolean
Digging.canStillUse
(ServerLevel p_217527_, E p_217528_, long p_217529_) protected boolean
Emerging.canStillUse
(ServerLevel p_217553_, E p_217554_, long p_217555_) protected boolean
Roar.canStillUse
(ServerLevel p_217588_, Warden p_217589_, long p_217590_) protected boolean
Sniffing.canStillUse
(ServerLevel p_217653_, E p_217654_, long p_217655_) protected boolean
SonicBoom.canStillUse
(ServerLevel p_217695_, Warden p_217696_, long p_217697_) protected boolean
Digging.checkExtraStartConditions
(ServerLevel p_217524_, E p_217525_) protected boolean
ForceUnmount.checkExtraStartConditions
(ServerLevel p_238424_, LivingEntity p_238425_) protected boolean
SonicBoom.checkExtraStartConditions
(ServerLevel p_217692_, Warden p_217693_) protected void
Digging.start
(ServerLevel p_217535_, E p_217536_, long p_217537_) protected void
Emerging.start
(ServerLevel p_217561_, E p_217562_, long p_217563_) protected void
ForceUnmount.start
(ServerLevel p_238410_, LivingEntity p_238411_, long p_238412_) protected void
Roar.start
(ServerLevel p_217580_, Warden p_217581_, long p_217582_) protected void
Sniffing.start
(ServerLevel p_217664_, E p_217665_, long p_217666_) protected void
SonicBoom.start
(ServerLevel p_217713_, Warden p_217714_, long p_217715_) protected void
Digging.stop
(ServerLevel p_217543_, E p_217544_, long p_217545_) protected void
Emerging.stop
(ServerLevel p_217569_, E p_217570_, long p_217571_) protected void
Roar.stop
(ServerLevel p_217604_, Warden p_217605_, long p_217606_) protected void
Sniffing.stop
(ServerLevel p_217672_, E p_217673_, long p_217674_) protected void
SonicBoom.stop
(ServerLevel p_217732_, Warden p_217733_, long p_217734_) protected void
Roar.tick
(ServerLevel p_217596_, Warden p_217597_, long p_217598_) protected void
SonicBoom.tick
(ServerLevel p_217724_, Warden p_217725_, long p_217726_) -
Uses of ServerLevel in net.minecraft.world.entity.ai.sensing
Modifier and TypeMethodDescriptionprotected void
AdultSensor.doTick
(ServerLevel p_148248_, AgeableMob p_148249_) protected void
BreezeAttackEntitySensor.doTick
(ServerLevel p_312447_, Breeze p_312739_) protected void
DummySensor.doTick
(ServerLevel p_26638_, LivingEntity p_26639_) protected void
GolemSensor.doTick
(ServerLevel p_26645_, LivingEntity p_26646_) protected void
HoglinSpecificSensor.doTick
(ServerLevel p_26659_, Hoglin p_26660_) protected void
HurtBySensor.doTick
(ServerLevel p_26670_, LivingEntity p_26671_) protected void
IsInWaterSensor.doTick
(ServerLevel p_217816_, LivingEntity p_217817_) protected void
MobSensor.doTick
(ServerLevel p_316535_, T p_316183_) protected void
NearestBedSensor.doTick
(ServerLevel p_26685_, Mob p_26686_) protected void
NearestItemSensor.doTick
(ServerLevel p_26697_, Mob p_26698_) protected void
NearestLivingEntitySensor.doTick
(ServerLevel p_26710_, T p_26711_) protected void
NearestVisibleLivingEntitySensor.doTick
(ServerLevel p_148288_, LivingEntity p_148289_) protected void
PiglinBruteSpecificSensor.doTick
(ServerLevel p_26721_, LivingEntity p_26722_) protected void
PiglinSpecificSensor.doTick
(ServerLevel p_26726_, LivingEntity p_26727_) protected void
PlayerSensor.doTick
(ServerLevel p_26740_, LivingEntity p_26741_) protected void
SecondaryPoiSensor.doTick
(ServerLevel p_26754_, Villager p_26755_) protected abstract void
Sensor.doTick
(ServerLevel p_26801_, E p_26802_) protected void
TemptingSensor.doTick
(ServerLevel p_148331_, PathfinderMob p_148332_) protected void
VillagerBabiesSensor.doTick
(ServerLevel p_26834_, LivingEntity p_26835_) protected void
WardenEntitySensor.doTick
(ServerLevel p_217833_, Warden p_217834_) HoglinSpecificSensor.findNearestRepellent
(ServerLevel p_26665_, Hoglin p_26666_) PiglinSpecificSensor.findNearestRepellent
(ServerLevel p_26735_, LivingEntity p_26736_) private static boolean
PiglinSpecificSensor.isValidRepellent
(ServerLevel p_26729_, BlockPos p_26730_) final void
Sensor.tick
(ServerLevel p_26807_, E p_26808_) -
Uses of ServerLevel in net.minecraft.world.entity.ai.village
Modifier and TypeMethodDescriptionprivate Vec3
VillageSiege.findRandomSpawnPos
(ServerLevel p_27010_, BlockPos p_27011_) int
VillageSiege.tick
(ServerLevel p_27013_, boolean p_27014_, boolean p_27015_) private void
VillageSiege.trySpawn
(ServerLevel p_27017_) private boolean
VillageSiege.tryToSetupSiege
(ServerLevel p_27008_) -
Uses of ServerLevel in net.minecraft.world.entity.animal
Modifier and TypeMethodDescriptionprotected void
Fox.dropAllDeathLoot
(ServerLevel p_348640_, DamageSource p_28536_) void
Animal.finalizeSpawnChildFromBreeding
(ServerLevel p_277963_, Animal p_277357_, AgeableMob p_277516_) Bee.getBreedOffspring
(ServerLevel p_148760_, AgeableMob p_148761_) Cat.getBreedOffspring
(ServerLevel p_148870_, AgeableMob p_148871_) Chicken.getBreedOffspring
(ServerLevel p_148884_, AgeableMob p_148885_) Cow.getBreedOffspring
(ServerLevel p_148890_, AgeableMob p_148891_) Fox.getBreedOffspring
(ServerLevel p_148912_, AgeableMob p_148913_) MushroomCow.getBreedOffspring
(ServerLevel p_148942_, AgeableMob p_148943_) Ocelot.getBreedOffspring
(ServerLevel p_148956_, AgeableMob p_148957_) Panda.getBreedOffspring
(ServerLevel p_148967_, AgeableMob p_148968_) Parrot.getBreedOffspring
(ServerLevel p_148993_, AgeableMob p_148994_) Pig.getBreedOffspring
(ServerLevel p_149001_, AgeableMob p_149002_) PolarBear.getBreedOffspring
(ServerLevel p_149005_, AgeableMob p_149006_) Rabbit.getBreedOffspring
(ServerLevel p_149035_, AgeableMob p_149036_) Sheep.getBreedOffspring
(ServerLevel p_149044_, AgeableMob p_149045_) Turtle.getBreedOffspring
(ServerLevel p_149068_, AgeableMob p_149069_) Wolf.getBreedOffspring
(ServerLevel p_149088_, AgeableMob p_149089_) void
Animal.spawnChildFromBreeding
(ServerLevel p_27564_, Animal p_27565_) void
MushroomCow.thunderHit
(ServerLevel p_28921_, LightningBolt p_28922_) void
Pig.thunderHit
(ServerLevel p_29473_, LightningBolt p_29474_) void
Turtle.thunderHit
(ServerLevel p_30140_, LightningBolt p_30141_) -
Uses of ServerLevel in net.minecraft.world.entity.animal.allay
Modifier and TypeMethodDescriptionboolean
Allay.VibrationUser.canReceiveVibration
(ServerLevel p_282038_, BlockPos p_283385_, Holder<GameEvent> p_316820_, GameEvent.Context p_282208_) boolean
Allay.JukeboxListener.handleGameEvent
(ServerLevel p_250009_, Holder<GameEvent> p_316687_, GameEvent.Context p_249478_, Vec3 p_250852_) void
Allay.VibrationUser.onReceiveVibration
(ServerLevel p_281422_, BlockPos p_281449_, Holder<GameEvent> p_316630_, Entity p_281794_, Entity p_281864_, float p_281642_) Modifier and TypeMethodDescriptionvoid
Allay.updateDynamicGameEventListener
(BiConsumer<DynamicGameEventListener<?>, ServerLevel> p_218348_) -
Uses of ServerLevel in net.minecraft.world.entity.animal.armadillo
Modifier and TypeMethodDescriptionprotected boolean
ArmadilloAi.ArmadilloBallUp.canStillUse
(ServerLevel p_316577_, Armadillo p_316565_, long p_316753_) protected boolean
ArmadilloAi.ArmadilloBallUp.checkExtraStartConditions
(ServerLevel p_316768_, Armadillo p_316762_) Armadillo.getBreedOffspring
(ServerLevel p_316757_, AgeableMob p_316523_) protected void
ArmadilloAi.ArmadilloBallUp.start
(ServerLevel p_316659_, Armadillo p_316121_, long p_316872_) protected void
ArmadilloAi.ArmadilloPanic.start
(ServerLevel p_326201_, Armadillo p_326188_, long p_325949_) protected void
ArmadilloAi.ArmadilloBallUp.stop
(ServerLevel p_316572_, Armadillo p_316192_, long p_316823_) protected void
ArmadilloAi.ArmadilloBallUp.tick
(ServerLevel p_316315_, Armadillo p_316310_, long p_316415_) -
Uses of ServerLevel in net.minecraft.world.entity.animal.axolotl
Modifier and TypeMethodDescriptionprotected boolean
PlayDead.canStillUse
(ServerLevel p_149322_, Axolotl p_149323_, long p_149324_) protected boolean
PlayDead.checkExtraStartConditions
(ServerLevel p_149319_, Axolotl p_149320_) Axolotl.getBreedOffspring
(ServerLevel p_149112_, AgeableMob p_149113_) protected void
PlayDead.start
(ServerLevel p_149330_, Axolotl p_149331_, long p_149332_) -
Uses of ServerLevel in net.minecraft.world.entity.animal.camel
Modifier and TypeMethodDescriptionprotected boolean
CamelAi.RandomSitting.checkExtraStartConditions
(ServerLevel p_249520_, Camel p_250322_) Camel.getBreedOffspring
(ServerLevel p_251227_, AgeableMob p_251047_) protected void
CamelAi.CamelPanic.start
(ServerLevel p_326184_, Camel p_326451_, long p_326217_) protected void
CamelAi.RandomSitting.start
(ServerLevel p_250901_, Camel p_250345_, long p_248515_) -
Uses of ServerLevel in net.minecraft.world.entity.animal.frog
Modifier and TypeMethodDescriptionprotected boolean
ShootTongue.canStillUse
(ServerLevel p_218633_, Frog p_218634_, long p_218635_) protected boolean
ShootTongue.checkExtraStartConditions
(ServerLevel p_218630_, Frog p_218631_) private void
ShootTongue.eatEntity
(ServerLevel p_218641_, Frog p_218642_) Frog.getBreedOffspring
(ServerLevel p_218476_, AgeableMob p_218477_) void
Frog.spawnChildFromBreeding
(ServerLevel p_218479_, Animal p_218480_) protected void
ShootTongue.start
(ServerLevel p_218644_, Frog p_218645_, long p_218646_) protected void
ShootTongue.stop
(ServerLevel p_218652_, Frog p_218653_, long p_218654_) protected void
ShootTongue.tick
(ServerLevel p_218660_, Frog p_218661_, long p_218662_) -
Uses of ServerLevel in net.minecraft.world.entity.animal.goat
Modifier and TypeMethodDescriptionGoat.getBreedOffspring
(ServerLevel p_149376_, AgeableMob p_149377_) -
Uses of ServerLevel in net.minecraft.world.entity.animal.horse
Modifier and TypeMethodDescriptionAbstractHorse.getBreedOffspring
(ServerLevel p_149506_, AgeableMob p_149507_) Donkey.getBreedOffspring
(ServerLevel p_149530_, AgeableMob p_149531_) Horse.getBreedOffspring
(ServerLevel p_149533_, AgeableMob p_149534_) Llama.getBreedOffspring
(ServerLevel p_149545_, AgeableMob p_149546_) Mule.getBreedOffspring
(ServerLevel p_149549_, AgeableMob p_149550_) SkeletonHorse.getBreedOffspring
(ServerLevel p_149553_, AgeableMob p_149554_) ZombieHorse.getBreedOffspring
(ServerLevel p_149561_, AgeableMob p_149562_) -
Uses of ServerLevel in net.minecraft.world.entity.animal.sniffer
Modifier and TypeMethodDescriptionprotected boolean
SnifferAi.Digging.canStillUse
(ServerLevel p_272686_, Sniffer p_273617_, long p_273124_) protected boolean
SnifferAi.FeelingHappy.canStillUse
(ServerLevel p_272660_, Sniffer p_273250_, long p_273180_) protected boolean
SnifferAi.FinishedDigging.canStillUse
(ServerLevel p_273775_, Sniffer p_273131_, long p_273569_) protected boolean
SnifferAi.Scenting.canStillUse
(ServerLevel p_273482_, Sniffer p_273724_, long p_273191_) protected boolean
SnifferAi.Searching.canStillUse
(ServerLevel p_273196_, Sniffer p_273769_, long p_273602_) protected boolean
SnifferAi.Sniffing.canStillUse
(ServerLevel p_273156_, Sniffer p_273448_, long p_272841_) protected boolean
SnifferAi.Digging.checkExtraStartConditions
(ServerLevel p_273442_, Sniffer p_273370_) protected boolean
SnifferAi.FinishedDigging.checkExtraStartConditions
(ServerLevel p_273692_, Sniffer p_272856_) protected boolean
SnifferAi.Scenting.checkExtraStartConditions
(ServerLevel p_279176_, Sniffer p_279496_) protected boolean
SnifferAi.Searching.checkExtraStartConditions
(ServerLevel p_273493_, Sniffer p_272857_) protected boolean
SnifferAi.Sniffing.checkExtraStartConditions
(ServerLevel p_272972_, Sniffer p_273676_) Sniffer.getBreedOffspring
(ServerLevel p_273401_, AgeableMob p_273310_) void
Sniffer.spawnChildFromBreeding
(ServerLevel p_277923_, Animal p_277857_) protected void
SnifferAi.Digging.start
(ServerLevel p_272951_, Sniffer p_272688_, long p_272979_) protected void
SnifferAi.FeelingHappy.start
(ServerLevel p_273624_, Sniffer p_273470_, long p_273501_) protected void
SnifferAi.FinishedDigging.start
(ServerLevel p_272708_, Sniffer p_273502_, long p_272739_) protected void
SnifferAi.Scenting.start
(ServerLevel p_272795_, Sniffer p_272788_, long p_273611_) protected void
SnifferAi.Searching.start
(ServerLevel p_273563_, Sniffer p_273394_, long p_273358_) protected void
SnifferAi.Sniffing.start
(ServerLevel p_272950_, Sniffer p_272614_, long p_273573_) protected void
SnifferAi.Digging.stop
(ServerLevel p_273656_, Sniffer p_273063_, long p_272844_) protected void
SnifferAi.FeelingHappy.stop
(ServerLevel p_273216_, Sniffer p_273271_, long p_273738_) protected void
SnifferAi.FinishedDigging.stop
(ServerLevel p_273210_, Sniffer p_273648_, long p_272804_) protected void
SnifferAi.Scenting.stop
(ServerLevel p_272816_, Sniffer p_273426_, long p_272832_) protected void
SnifferAi.Searching.stop
(ServerLevel p_273705_, Sniffer p_273135_, long p_272667_) protected void
SnifferAi.Sniffing.stop
(ServerLevel p_272617_, Sniffer p_273181_, long p_272635_) -
Uses of ServerLevel in net.minecraft.world.entity.boss.enderdragon
Modifier and TypeMethodDescriptionprivate void
EnderDragon.knockBack
(ServerLevel p_345435_, List<Entity> p_31132_) -
Uses of ServerLevel in net.minecraft.world.entity.boss.wither
Modifier and TypeMethodDescriptionprotected void
WitherBoss.dropCustomDeathLoot
(ServerLevel p_348644_, DamageSource p_31464_, boolean p_31466_) -
Uses of ServerLevel in net.minecraft.world.entity.decoration
Modifier and TypeMethodDescriptionprivate void
ArmorStand.brokenByAnything
(ServerLevel p_348553_, DamageSource p_31654_) private void
ArmorStand.brokenByPlayer
(ServerLevel p_348677_, DamageSource p_31647_) private void
ArmorStand.causeDamage
(ServerLevel p_348633_, DamageSource p_31649_, float p_31650_) void
ArmorStand.thunderHit
(ServerLevel p_31576_, LightningBolt p_31577_) void
BlockAttachedEntity.thunderHit
(ServerLevel p_345825_, LightningBolt p_346288_) -
Uses of ServerLevel in net.minecraft.world.entity.monster
Modifier and TypeMethodDescriptionvoid
Evoker.applyRaidBuffs
(ServerLevel p_348515_, int p_32632_, boolean p_32633_) void
Illusioner.applyRaidBuffs
(ServerLevel p_348536_, int p_32915_, boolean p_32916_) void
Pillager.applyRaidBuffs
(ServerLevel p_348618_, int p_33267_, boolean p_33268_) void
Ravager.applyRaidBuffs
(ServerLevel p_348582_, int p_33337_, boolean p_33338_) void
Vindicator.applyRaidBuffs
(ServerLevel p_348474_, int p_34079_, boolean p_34080_) void
Witch.applyRaidBuffs
(ServerLevel p_348621_, int p_34140_, boolean p_34141_) protected void
Creeper.dropCustomDeathLoot
(ServerLevel p_348566_, DamageSource p_32292_, boolean p_32294_) protected void
EnderMan.dropCustomDeathLoot
(ServerLevel p_348556_, DamageSource p_32497_, boolean p_32499_) protected void
Skeleton.dropCustomDeathLoot
(ServerLevel p_348477_, DamageSource p_33574_, boolean p_33576_) protected void
WitherSkeleton.dropCustomDeathLoot
(ServerLevel p_348522_, DamageSource p_34174_, boolean p_34176_) protected void
Zombie.dropCustomDeathLoot
(ServerLevel p_348597_, DamageSource p_34291_, boolean p_34293_) private void
ZombieVillager.finishConversion
(ServerLevel p_34399_) Strider.getBreedOffspring
(ServerLevel p_149861_, AgeableMob p_149862_) boolean
Zombie.killedEntity
(ServerLevel p_219160_, LivingEntity p_219161_) void
Creeper.thunderHit
(ServerLevel p_32286_, LightningBolt p_32287_) -
Uses of ServerLevel in net.minecraft.world.entity.monster.breeze
Modifier and TypeMethodDescriptionprivate static boolean
LongJump.canJumpFromCurrentPosition
(ServerLevel p_312261_, Breeze p_312824_) static boolean
LongJump.canRun
(ServerLevel p_338176_, Breeze p_338459_) protected boolean
LongJump.canStillUse
(ServerLevel p_312482_, Breeze p_312019_, long p_312448_) protected boolean
Shoot.canStillUse
(ServerLevel p_312535_, Breeze p_312174_, long p_311812_) protected boolean
ShootWhenStuck.canStillUse
(ServerLevel p_314552_, Breeze p_314459_, long p_314460_) protected boolean
LongJump.checkExtraStartConditions
(ServerLevel p_312131_, Breeze p_312686_) protected boolean
Shoot.checkExtraStartConditions
(ServerLevel p_312041_, Breeze p_312169_) protected boolean
ShootWhenStuck.checkExtraStartConditions
(ServerLevel p_314464_, Breeze p_314546_) protected boolean
Slide.checkExtraStartConditions
(ServerLevel p_311853_, Breeze p_311894_) protected void
BreezeAi.SlideToTargetSink.start
(ServerLevel p_312732_, Mob p_312543_, long p_312612_) protected void
LongJump.start
(ServerLevel p_312817_, Breeze p_311902_, long p_312420_) protected void
Shoot.start
(ServerLevel p_311932_, Breeze p_312618_, long p_311781_) protected void
ShootWhenStuck.start
(ServerLevel p_314434_, Breeze p_314572_, long p_314431_) protected void
Slide.start
(ServerLevel p_312325_, Breeze p_312534_, long p_311789_) protected void
BreezeAi.SlideToTargetSink.stop
(ServerLevel p_312932_, Mob p_311871_, long p_312594_) protected void
LongJump.stop
(ServerLevel p_312766_, Breeze p_312924_, long p_312793_) protected void
Shoot.stop
(ServerLevel p_312137_, Breeze p_311803_, long p_312309_) protected void
LongJump.tick
(ServerLevel p_312091_, Breeze p_312923_, long p_312404_) protected void
Shoot.tick
(ServerLevel p_312907_, Breeze p_312605_, long p_312804_) -
Uses of ServerLevel in net.minecraft.world.entity.monster.hoglin
Modifier and TypeMethodDescriptionprivate void
Hoglin.finishConversion
(ServerLevel p_34532_) Hoglin.getBreedOffspring
(ServerLevel p_149900_, AgeableMob p_149901_) -
Uses of ServerLevel in net.minecraft.world.entity.monster.piglin
Modifier and TypeMethodDescriptionprotected void
Piglin.dropCustomDeathLoot
(ServerLevel p_348503_, DamageSource p_34697_, boolean p_34699_) protected void
AbstractPiglin.finishConversion
(ServerLevel p_34663_) protected void
Piglin.finishConversion
(ServerLevel p_34756_) -
Uses of ServerLevel in net.minecraft.world.entity.monster.warden
Modifier and TypeMethodDescriptionstatic void
Warden.applyDarknessAround
(ServerLevel p_219376_, Vec3 p_219377_, Entity p_219378_, int p_219379_) boolean
Warden.VibrationUser.canReceiveVibration
(ServerLevel p_282574_, BlockPos p_282323_, Holder<GameEvent> p_316784_, GameEvent.Context p_282515_) private void
AngerManagement.convertFromUuids
(ServerLevel p_219262_) private static List
<ServerPlayer> WardenSpawnTracker.getNearbyPlayers
(ServerLevel p_219595_, BlockPos p_219596_) private static boolean
WardenSpawnTracker.hasNearbyWarden
(ServerLevel p_219575_, BlockPos p_219576_) void
Warden.VibrationUser.onReceiveVibration
(ServerLevel p_281325_, BlockPos p_282386_, Holder<GameEvent> p_316139_, Entity p_281438_, Entity p_282582_, float p_283699_) void
AngerManagement.tick
(ServerLevel p_219264_, Predicate<Entity> p_219265_) static OptionalInt
WardenSpawnTracker.tryWarn
(ServerLevel p_219578_, BlockPos p_219579_, ServerPlayer p_219580_) Modifier and TypeMethodDescriptionvoid
Warden.updateDynamicGameEventListener
(BiConsumer<DynamicGameEventListener<?>, ServerLevel> p_219413_) -
Uses of ServerLevel in net.minecraft.world.entity.npc
Modifier and TypeMethodDescriptionVillager.getBreedOffspring
(ServerLevel p_150012_, AgeableMob p_150013_) WanderingTrader.getBreedOffspring
(ServerLevel p_150046_, AgeableMob p_150047_) void
Villager.gossip
(ServerLevel p_35412_, Villager p_35413_, long p_35414_) void
Villager.refreshBrain
(ServerLevel p_35484_) private boolean
WanderingTraderSpawner.spawn
(ServerLevel p_35916_) private int
CatSpawner.spawnCat
(BlockPos p_35334_, ServerLevel p_35335_) void
Villager.spawnGolemIfNeeded
(ServerLevel p_35398_, long p_35399_, int p_35400_) private int
CatSpawner.spawnInHut
(ServerLevel p_35337_, BlockPos p_35338_) private int
CatSpawner.spawnInVillage
(ServerLevel p_35327_, BlockPos p_35328_) void
Villager.thunderHit
(ServerLevel p_35409_, LightningBolt p_35410_) int
CatSpawner.tick
(ServerLevel p_35330_, boolean p_35331_, boolean p_35332_) int
WanderingTraderSpawner.tick
(ServerLevel p_35922_, boolean p_35923_, boolean p_35924_) private void
WanderingTraderSpawner.tryToSpawnLlamaFor
(ServerLevel p_35918_, WanderingTrader p_35919_, int p_35920_) -
Uses of ServerLevel in net.minecraft.world.entity.player
Modifier and TypeMethodDescriptionboolean
Player.killedEntity
(ServerLevel p_219735_, LivingEntity p_219736_) -
Uses of ServerLevel in net.minecraft.world.entity.projectile
Modifier and TypeMethodDescriptionprotected void
AbstractArrow.hitBlockEnchantmentEffects
(ServerLevel p_345462_, BlockHitResult p_345204_, ItemStack p_345083_) protected void
ThrownTrident.hitBlockEnchantmentEffects
(ServerLevel p_344953_, BlockHitResult p_346320_, ItemStack p_344999_) -
Uses of ServerLevel in net.minecraft.world.entity.raid
Modifier and TypeFieldDescriptionprivate final ServerLevel
Raid.level
private final ServerLevel
Raids.level
Modifier and TypeMethodDescriptionabstract void
Raider.applyRaidBuffs
(ServerLevel p_348605_, int p_37844_, boolean p_37845_) static SavedData.Factory
<Raids> Raids.factory
(ServerLevel p_295840_) private Raid
Raids.getOrCreateRaid
(ServerLevel p_37961_, BlockPos p_37962_) static Raids
Raids.load
(ServerLevel p_150236_, CompoundTag p_150237_) ModifierConstructorDescriptionRaid
(int p_37692_, ServerLevel p_37693_, BlockPos p_37694_) Raid
(ServerLevel p_37696_, CompoundTag p_37697_) Raids
(ServerLevel p_37956_) -
Uses of ServerLevel in net.minecraft.world.entity.vehicle
Modifier and TypeMethodDescriptionstatic AbstractMinecart
AbstractMinecart.createMinecart
(ServerLevel p_305794_, double p_38121_, double p_38122_, double p_38123_, AbstractMinecart.Type p_38124_, ItemStack p_305892_, Player p_306203_) -
Uses of ServerLevel in net.minecraft.world.item
Modifier and TypeMethodDescriptionvoid
ItemStack.hurtAndBreak
(int p_220158_, ServerLevel p_346256_, ServerPlayer p_220160_, Consumer<Item> p_348596_) void
ItemStack.hurtAndBreak
(int p_220158_, ServerLevel p_346256_, LivingEntity p_220160_, Consumer<Item> p_348596_) static void
MapItem.renderBiomePreviewMap
(ServerLevel p_42851_, ItemStack p_42852_) protected void
ProjectileWeaponItem.shoot
(ServerLevel p_346125_, LivingEntity p_330728_, InteractionHand p_331152_, ItemStack p_330646_, List<ItemStack> p_331726_, float p_331007_, float p_331445_, boolean p_331107_, LivingEntity p_331167_) private void
MobBucketItem.spawn
(ServerLevel p_151142_, ItemStack p_151143_, BlockPos p_151144_) SpawnEggItem.spawnOffspringFromSpawnEgg
(Player p_43216_, Mob p_43217_, EntityType<? extends Mob> p_43218_, ServerLevel p_43219_, Vec3 p_43220_, ItemStack p_43221_) -
Uses of ServerLevel in net.minecraft.world.item.component
-
Uses of ServerLevel in net.minecraft.world.item.enchantment
Modifier and TypeMethodDescriptionprivate static LootContext
Enchantment.blockHitContext
(ServerLevel p_350329_, int p_350503_, Entity p_350451_, Vec3 p_350874_, BlockState p_350311_) static LootContext
Enchantment.damageContext
(ServerLevel p_346018_, int p_345520_, Entity p_345257_, DamageSource p_346340_) void
Enchantment.doPostAttack
(ServerLevel p_344857_, int p_44688_, EnchantedItemInUse p_345323_, EnchantmentTarget p_345287_, Entity p_44687_, DamageSource p_345177_) static void
Enchantment.doPostAttack
(TargetedConditionalEffect<EnchantmentEntityEffect> p_346387_, ServerLevel p_345844_, int p_344928_, EnchantedItemInUse p_345486_, Entity p_345472_, DamageSource p_345022_) static void
EnchantmentHelper.doPostAttackEffects
(ServerLevel p_345941_, Entity p_345661_, DamageSource p_345580_) static void
EnchantmentHelper.doPostAttackEffectsWithItemSource
(ServerLevel p_348463_, Entity p_348545_, DamageSource p_348552_, ItemStack p_348507_) private static LootContext
Enchantment.entityContext
(ServerLevel p_346134_, int p_346059_, Entity p_346146_, Vec3 p_345814_) static float
EnchantmentHelper.getDamageProtection
(ServerLevel p_346015_, LivingEntity p_346118_, DamageSource p_44858_) static int
EnchantmentHelper.getFishingLuckBonus
(ServerLevel p_346163_, ItemStack p_44905_, Entity p_345772_) static float
EnchantmentHelper.getFishingTimeReduction
(ServerLevel p_345589_, ItemStack p_344902_, Entity p_346054_) static int
EnchantmentHelper.getPiercingCount
(ServerLevel p_345735_, ItemStack p_344942_, ItemStack p_345766_) static int
EnchantmentHelper.getTridentReturnToOwnerAcceleration
(ServerLevel p_344814_, ItemStack p_346255_, Entity p_346332_) boolean
Enchantment.isImmuneToDamage
(ServerLevel p_345480_, int p_345043_, Entity p_346344_, DamageSource p_344985_) static boolean
EnchantmentHelper.isImmuneToDamage
(ServerLevel p_346228_, LivingEntity p_345220_, DamageSource p_345884_) private static LootContext
Enchantment.itemContext
(ServerLevel p_345514_, int p_345186_, ItemStack p_344997_) private static LootContext
Enchantment.locationContext
(ServerLevel p_345134_, int p_346182_, Entity p_345416_, boolean p_345862_) void
Enchantment.modifyAmmoCount
(ServerLevel p_346007_, int p_345438_, ItemStack p_345581_, org.apache.commons.lang3.mutable.MutableFloat p_345594_) static float
EnchantmentHelper.modifyArmorEffectiveness
(ServerLevel p_345426_, ItemStack p_345454_, Entity p_345834_, DamageSource p_345082_, float p_344790_) void
Enchantment.modifyArmorEffectivness
(ServerLevel p_345449_, int p_346129_, ItemStack p_345436_, Entity p_345815_, DamageSource p_346172_, org.apache.commons.lang3.mutable.MutableFloat p_345265_) void
Enchantment.modifyBlockExperience
(ServerLevel p_344830_, int p_345513_, ItemStack p_344939_, org.apache.commons.lang3.mutable.MutableFloat p_344754_) void
Enchantment.modifyDamage
(ServerLevel p_345743_, int p_345544_, ItemStack p_345269_, Entity p_346011_, DamageSource p_344755_, org.apache.commons.lang3.mutable.MutableFloat p_345551_) static float
EnchantmentHelper.modifyDamage
(ServerLevel p_345523_, ItemStack p_345856_, Entity p_344995_, DamageSource p_345216_, float p_346025_) private void
Enchantment.modifyDamageFilteredValue
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> p_345367_, ServerLevel p_345784_, int p_344796_, ItemStack p_345410_, Entity p_345673_, DamageSource p_345768_, org.apache.commons.lang3.mutable.MutableFloat p_345664_) void
Enchantment.modifyDamageProtection
(ServerLevel p_345336_, int p_345347_, ItemStack p_346270_, Entity p_346395_, DamageSource p_345595_, org.apache.commons.lang3.mutable.MutableFloat p_345579_) void
Enchantment.modifyDurabilityChange
(ServerLevel p_345412_, int p_344937_, ItemStack p_345854_, org.apache.commons.lang3.mutable.MutableFloat p_345948_) void
Enchantment.modifyDurabilityToRepairFromXp
(ServerLevel p_346275_, int p_346253_, ItemStack p_346008_, org.apache.commons.lang3.mutable.MutableFloat p_344922_) static int
EnchantmentHelper.modifyDurabilityToRepairFromXp
(ServerLevel p_345119_, ItemStack p_345686_, int p_344847_) private void
Enchantment.modifyEntityFilteredValue
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> p_345986_, ServerLevel p_345473_, int p_345352_, ItemStack p_345076_, Entity p_345170_, org.apache.commons.lang3.mutable.MutableFloat p_345910_) void
Enchantment.modifyFallBasedDamage
(ServerLevel p_345164_, int p_344793_, ItemStack p_345159_, Entity p_345653_, DamageSource p_344870_, org.apache.commons.lang3.mutable.MutableFloat p_346329_) static float
EnchantmentHelper.modifyFallBasedDamage
(ServerLevel p_345433_, ItemStack p_345368_, Entity p_345047_, DamageSource p_345711_, float p_346245_) void
Enchantment.modifyFishingLuckBonus
(ServerLevel p_344932_, int p_346280_, ItemStack p_344733_, Entity p_346035_, org.apache.commons.lang3.mutable.MutableFloat p_345897_) void
Enchantment.modifyFishingTimeReduction
(ServerLevel p_344910_, int p_345466_, ItemStack p_345847_, Entity p_346092_, org.apache.commons.lang3.mutable.MutableFloat p_346295_) private void
Enchantment.modifyItemFilteredCount
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> p_345794_, ServerLevel p_345992_, int p_345038_, ItemStack p_345886_, org.apache.commons.lang3.mutable.MutableFloat p_345188_) void
Enchantment.modifyKnockback
(ServerLevel p_346266_, int p_344905_, ItemStack p_345602_, Entity p_346190_, DamageSource p_345911_, org.apache.commons.lang3.mutable.MutableFloat p_345127_) static float
EnchantmentHelper.modifyKnockback
(ServerLevel p_346221_, ItemStack p_344862_, Entity p_345720_, DamageSource p_345322_, float p_345116_) void
Enchantment.modifyMobExperience
(ServerLevel p_346393_, int p_345762_, ItemStack p_345945_, Entity p_345849_, org.apache.commons.lang3.mutable.MutableFloat p_345252_) void
Enchantment.modifyPiercingCount
(ServerLevel p_346422_, int p_344854_, ItemStack p_345503_, org.apache.commons.lang3.mutable.MutableFloat p_345370_) void
Enchantment.modifyProjectileCount
(ServerLevel p_345353_, int p_344837_, ItemStack p_346382_, Entity p_345611_, org.apache.commons.lang3.mutable.MutableFloat p_344765_) void
Enchantment.modifyProjectileSpread
(ServerLevel p_346170_, int p_345846_, ItemStack p_346147_, Entity p_345832_, org.apache.commons.lang3.mutable.MutableFloat p_345361_) void
Enchantment.modifyTridentReturnToOwnerAcceleration
(ServerLevel p_345534_, int p_345845_, ItemStack p_345558_, Entity p_345333_, org.apache.commons.lang3.mutable.MutableFloat p_344912_) void
Enchantment.onHitBlock
(ServerLevel p_345175_, int p_346193_, EnchantedItemInUse p_344721_, Entity p_345951_, Vec3 p_344878_, BlockState p_351026_) static void
EnchantmentHelper.onHitBlock
(ServerLevel p_346213_, ItemStack p_344826_, LivingEntity p_345015_, Entity p_345210_, EquipmentSlot p_345889_, Vec3 p_345922_, BlockState p_350787_, Consumer<Item> p_348575_) void
Enchantment.onProjectileSpawned
(ServerLevel p_345440_, int p_346424_, EnchantedItemInUse p_346046_, Entity p_345958_) static void
EnchantmentHelper.onProjectileSpawned
(ServerLevel p_345062_, ItemStack p_345805_, AbstractArrow p_346298_, Consumer<Item> p_348544_) static int
EnchantmentHelper.processAmmoUse
(ServerLevel p_344848_, ItemStack p_345072_, ItemStack p_345407_, int p_346289_) static int
EnchantmentHelper.processBlockExperience
(ServerLevel p_344948_, ItemStack p_345630_, int p_345026_) static int
EnchantmentHelper.processDurabilityChange
(ServerLevel p_345153_, ItemStack p_344889_, int p_345787_) static float
EnchantmentHelper.processEquipmentDropChance
(ServerLevel p_346339_, LivingEntity p_345864_, DamageSource p_345060_, float p_346089_) static int
EnchantmentHelper.processMobExperience
(ServerLevel p_344940_, Entity p_345838_, Entity p_345369_, int p_344901_) static int
EnchantmentHelper.processProjectileCount
(ServerLevel p_345598_, ItemStack p_346421_, Entity p_346006_, int p_346388_) static float
EnchantmentHelper.processProjectileSpread
(ServerLevel p_346048_, ItemStack p_345702_, Entity p_346314_, float p_346070_) void
Enchantment.runLocationChangedEffects
(ServerLevel p_345522_, int p_345228_, EnchantedItemInUse p_345521_, LivingEntity p_346133_) static void
EnchantmentHelper.runLocationChangedEffects
(ServerLevel p_345674_, LivingEntity p_346396_) static void
EnchantmentHelper.runLocationChangedEffects
(ServerLevel p_345755_, ItemStack p_345291_, LivingEntity p_346348_, EquipmentSlot p_345919_) void
Enchantment.tick
(ServerLevel p_345064_, int p_346148_, EnchantedItemInUse p_345056_, Entity p_345139_) static void
EnchantmentHelper.tickEffects
(ServerLevel p_345788_, LivingEntity p_344873_) -
Uses of ServerLevel in net.minecraft.world.item.enchantment.effects
Modifier and TypeMethodDescriptionvoid
AllOf.EntityEffects.apply
(ServerLevel p_346093_, int p_345940_, EnchantedItemInUse p_344929_, Entity p_345319_, Vec3 p_345200_) void
ApplyMobEffect.apply
(ServerLevel p_345355_, int p_346112_, EnchantedItemInUse p_344766_, Entity p_345996_, Vec3 p_345315_) void
DamageEntity.apply
(ServerLevel p_345710_, int p_344734_, EnchantedItemInUse p_345002_, Entity p_345450_, Vec3 p_345442_) void
DamageItem.apply
(ServerLevel p_345496_, int p_344926_, EnchantedItemInUse p_345827_, Entity p_345408_, Vec3 p_345110_) void
EnchantmentEntityEffect.apply
(ServerLevel p_345106_, int p_346004_, EnchantedItemInUse p_344966_, Entity p_346140_, Vec3 p_345890_) void
ExplodeEffect.apply
(ServerLevel p_346186_, int p_345966_, EnchantedItemInUse p_346324_, Entity p_345305_, Vec3 p_344916_) void
Ignite.apply
(ServerLevel p_345606_, int p_344968_, EnchantedItemInUse p_346032_, Entity p_346370_, Vec3 p_344775_) void
PlaySoundEffect.apply
(ServerLevel p_344971_, int p_344872_, EnchantedItemInUse p_345016_, Entity p_346106_, Vec3 p_345017_) void
ReplaceBlock.apply
(ServerLevel p_345756_, int p_346215_, EnchantedItemInUse p_345202_, Entity p_346293_, Vec3 p_345339_) void
ReplaceDisk.apply
(ServerLevel p_353045_, int p_353076_, EnchantedItemInUse p_353050_, Entity p_353038_, Vec3 p_353044_) void
RunFunction.apply
(ServerLevel p_346152_, int p_344788_, EnchantedItemInUse p_344801_, Entity p_346210_, Vec3 p_345413_) void
SetBlockProperties.apply
(ServerLevel p_346105_, int p_345373_, EnchantedItemInUse p_346028_, Entity p_346068_, Vec3 p_345511_) void
SpawnParticlesEffect.apply
(ServerLevel p_345529_, int p_346425_, EnchantedItemInUse p_346391_, Entity p_345668_, Vec3 p_344842_) void
SummonEntityEffect.apply
(ServerLevel p_345900_, int p_346183_, EnchantedItemInUse p_345549_, Entity p_346414_, Vec3 p_346284_) void
AllOf.LocationBasedEffects.onChangedBlock
(ServerLevel p_345329_, int p_345154_, EnchantedItemInUse p_344984_, Entity p_345671_, Vec3 p_344781_, boolean p_345113_) void
EnchantmentAttributeEffect.onChangedBlock
(ServerLevel p_346176_, int p_345071_, EnchantedItemInUse p_345394_, Entity p_345539_, Vec3 p_346261_, boolean p_345801_) default void
EnchantmentEntityEffect.onChangedBlock
(ServerLevel p_345419_, int p_345173_, EnchantedItemInUse p_344724_, Entity p_346126_, Vec3 p_345614_, boolean p_346410_) void
EnchantmentLocationBasedEffect.onChangedBlock
(ServerLevel p_345577_, int p_345675_, EnchantedItemInUse p_345807_, Entity p_345378_, Vec3 p_344844_, boolean p_345637_) -
Uses of ServerLevel in net.minecraft.world.level
Modifier and TypeMethodDescriptionabstract ServerLevel
BaseCommandBlock.getLevel()
ServerLevelAccessor.getLevel()
Modifier and TypeMethodDescriptionprivate 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 Mob
NaturalSpawner.getMobForSpawn
(ServerLevel p_46989_, EntityType<?> p_46990_) 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.isRightDistanceToPlayerAndSpawnPoint
(ServerLevel p_47025_, ChunkAccess p_47026_, BlockPos.MutableBlockPos p_47027_, double p_47028_) boolean
SpawnData.CustomSpawnRules.isValidPosition
(BlockPos p_321770_, ServerLevel p_321818_) private static boolean
NaturalSpawner.isValidPositionForMob
(ServerLevel p_46992_, Mob p_46993_, double p_46994_) 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_) void
BaseSpawner.serverTick
(ServerLevel p_151312_, BlockPos p_151313_) 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_) static void
NaturalSpawner.spawnForChunk
(ServerLevel p_47030_, LevelChunk p_47031_, NaturalSpawner.SpawnState p_47032_, boolean p_47033_, boolean p_47034_, boolean p_47035_) int
CustomSpawner.tick
(ServerLevel p_45839_, boolean p_45840_, boolean p_45841_) -
Uses of ServerLevel in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionvoid
SaplingBlock.advanceTree
(ServerLevel p_222001_, BlockPos p_222002_, BlockState p_222003_, RandomSource p_222004_) private static boolean
PointedDripstoneBlock.canTipGrow
(BlockState p_154195_, ServerLevel p_154196_, BlockPos p_154197_) default void
ChangeOverTimeBlock.changeOverTime
(BlockState p_309154_, ServerLevel p_309115_, BlockPos p_308999_, RandomSource p_308868_) void
CopperBulbBlock.checkAndFlip
(BlockState p_313720_, ServerLevel p_313753_, BlockPos p_313735_) private static DimensionTransition
NetherPortalBlock.createDimensionTransition
(ServerLevel p_350955_, BlockUtil.FoundRectangle p_350865_, Direction.Axis p_351013_, Vec3 p_351020_, Entity p_350578_, Vec3 p_350266_, float p_350648_, float p_350338_, DimensionTransition.PostDimensionTransition p_352441_) protected void
CrafterBlock.dispenseFrom
(BlockState p_307495_, ServerLevel p_307310_, BlockPos p_307672_) protected void
DispenserBlock.dispenseFrom
(ServerLevel p_52665_, BlockState p_302451_, BlockPos p_52666_) protected void
DropperBlock.dispenseFrom
(ServerLevel p_52944_, BlockState p_302455_, BlockPos p_52945_) private void
CrafterBlock.dispenseItem
(ServerLevel p_335887_, BlockPos p_307620_, CrafterBlockEntity p_307387_, ItemStack p_307296_, BlockState p_307501_, RecipeHolder<CraftingRecipe> p_335494_) static Fluid
PointedDripstoneBlock.getCauldronFillFluidType
(ServerLevel p_221850_, BlockPos p_221851_) private static DimensionTransition
NetherPortalBlock.getDimensionTransitionFromExit
(Entity p_350906_, BlockPos p_350376_, BlockUtil.FoundRectangle p_350428_, ServerLevel p_350928_, DimensionTransition.PostDimensionTransition p_352093_) Block.getDrops
(BlockState p_49870_, ServerLevel p_49871_, BlockPos p_49872_, BlockEntity p_49873_) Block.getDrops
(BlockState p_49875_, ServerLevel p_49876_, BlockPos p_49877_, BlockEntity p_49878_, Entity p_49879_, ItemStack p_49880_) private DimensionTransition
NetherPortalBlock.getExitPortal
(ServerLevel p_350564_, Entity p_350493_, BlockPos p_350379_, BlockPos p_350747_, boolean p_350326_, WorldBorder p_350718_) default <T extends BlockEntity>
GameEventListenerEntityBlock.getListener
(ServerLevel p_221121_, T p_221122_) default Optional
<BlockState> ChangeOverTimeBlock.getNextState
(BlockState p_309150_, ServerLevel p_309039_, BlockPos p_309042_, RandomSource p_308890_) EndGatewayBlock.getPortalDestination
(ServerLevel p_350958_, Entity p_350650_, BlockPos p_350525_) EndPortalBlock.getPortalDestination
(ServerLevel p_351032_, Entity p_350274_, BlockPos p_350589_) NetherPortalBlock.getPortalDestination
(ServerLevel p_350444_, Entity p_350334_, BlockPos p_350764_) Portal.getPortalDestination
(ServerLevel p_350469_, Entity p_350401_, BlockPos p_350443_) int
NetherPortalBlock.getPortalTransitionTime
(ServerLevel p_350689_, Entity p_350280_) default int
Portal.getPortalTransitionTime
(ServerLevel p_350613_, Entity p_350544_) private void
PitcherCropBlock.grow
(ServerLevel p_277975_, BlockState p_277349_, BlockPos p_277585_, int p_277498_) private static void
PointedDripstoneBlock.grow
(ServerLevel p_154036_, BlockPos p_154037_, Direction p_154038_) boolean
MushroomBlock.growMushroom
(ServerLevel p_221774_, BlockPos p_221775_, BlockState p_221776_, RandomSource p_221777_) static void
PointedDripstoneBlock.growStalactiteOrStalagmiteIfPossible
(BlockState p_221888_, ServerLevel p_221889_, BlockPos p_221890_, RandomSource p_221891_) private static void
PointedDripstoneBlock.growStalagmiteBelow
(ServerLevel p_154033_, BlockPos p_154034_) private void
FrogspawnBlock.hatchFrogspawn
(ServerLevel p_221182_, BlockPos p_221183_, RandomSource p_221184_) static BlockState
ComposterBlock.insertItem
(Entity p_270919_, BlockState p_270087_, ServerLevel p_270284_, ItemStack p_270253_, BlockPos p_270678_) static void
PointedDripstoneBlock.maybeTransferFluid
(BlockState p_221860_, ServerLevel p_221861_, BlockPos p_221862_, float p_221863_) void
AzaleaBlock.performBonemeal
(ServerLevel p_220707_, RandomSource p_220708_, BlockPos p_220709_, BlockState p_220710_) void
BambooSaplingBlock.performBonemeal
(ServerLevel p_220743_, RandomSource p_220744_, BlockPos p_220745_, BlockState p_220746_) void
BambooStalkBlock.performBonemeal
(ServerLevel p_261845_, RandomSource p_262034_, BlockPos p_261955_, BlockState p_261685_) void
BigDripleafBlock.performBonemeal
(ServerLevel p_220783_, RandomSource p_220784_, BlockPos p_220785_, BlockState p_220786_) void
BigDripleafStemBlock.performBonemeal
(ServerLevel p_220803_, RandomSource p_220804_, BlockPos p_220805_, BlockState p_220806_) void
BonemealableBlock.performBonemeal
(ServerLevel p_220874_, RandomSource p_220875_, BlockPos p_220876_, BlockState p_220877_) void
CaveVinesBlock.performBonemeal
(ServerLevel p_220923_, RandomSource p_220924_, BlockPos p_220925_, BlockState p_220926_) void
CaveVinesPlantBlock.performBonemeal
(ServerLevel p_220938_, RandomSource p_220939_, BlockPos p_220940_, BlockState p_220941_) void
CocoaBlock.performBonemeal
(ServerLevel p_220990_, RandomSource p_220991_, BlockPos p_220992_, BlockState p_220993_) void
CropBlock.performBonemeal
(ServerLevel p_221040_, RandomSource p_221041_, BlockPos p_221042_, BlockState p_221043_) void
FungusBlock.performBonemeal
(ServerLevel p_221243_, RandomSource p_221244_, BlockPos p_221245_, BlockState p_221246_) void
GlowLichenBlock.performBonemeal
(ServerLevel p_221259_, RandomSource p_221260_, BlockPos p_221261_, BlockState p_221262_) void
GrassBlock.performBonemeal
(ServerLevel p_221270_, RandomSource p_221271_, BlockPos p_221272_, BlockState p_221273_) void
GrowingPlantBodyBlock.performBonemeal
(ServerLevel p_221285_, RandomSource p_221286_, BlockPos p_221287_, BlockState p_221288_) void
GrowingPlantHeadBlock.performBonemeal
(ServerLevel p_221337_, RandomSource p_221338_, BlockPos p_221339_, BlockState p_221340_) void
MangroveLeavesBlock.performBonemeal
(ServerLevel p_221427_, RandomSource p_221428_, BlockPos p_221429_, BlockState p_221430_) void
MangrovePropaguleBlock.performBonemeal
(ServerLevel p_221451_, RandomSource p_221452_, BlockPos p_221453_, BlockState p_221454_) void
MossBlock.performBonemeal
(ServerLevel p_221533_, RandomSource p_221534_, BlockPos p_221535_, BlockState p_221536_) void
MushroomBlock.performBonemeal
(ServerLevel p_221769_, RandomSource p_221770_, BlockPos p_221771_, BlockState p_221772_) void
NetherrackBlock.performBonemeal
(ServerLevel p_221811_, RandomSource p_221812_, BlockPos p_221813_, BlockState p_221814_) void
NyliumBlock.performBonemeal
(ServerLevel p_221825_, RandomSource p_221826_, BlockPos p_221827_, BlockState p_221828_) void
PinkPetalsBlock.performBonemeal
(ServerLevel p_273476_, RandomSource p_273093_, BlockPos p_272601_, BlockState p_272683_) void
PitcherCropBlock.performBonemeal
(ServerLevel p_277717_, RandomSource p_277870_, BlockPos p_277836_, BlockState p_278034_) void
RootedDirtBlock.performBonemeal
(ServerLevel p_221974_, RandomSource p_221975_, BlockPos p_221976_, BlockState p_221977_) void
SaplingBlock.performBonemeal
(ServerLevel p_221996_, RandomSource p_221997_, BlockPos p_221998_, BlockState p_221999_) void
SeagrassBlock.performBonemeal
(ServerLevel p_222423_, RandomSource p_222424_, BlockPos p_222425_, BlockState p_222426_) void
SeaPickleBlock.performBonemeal
(ServerLevel p_222413_, RandomSource p_222414_, BlockPos p_222415_, BlockState p_222416_) void
SmallDripleafBlock.performBonemeal
(ServerLevel p_222433_, RandomSource p_222434_, BlockPos p_222435_, BlockState p_222436_) void
StemBlock.performBonemeal
(ServerLevel p_222528_, RandomSource p_222529_, BlockPos p_222530_, BlockState p_222531_) void
SweetBerryBushBlock.performBonemeal
(ServerLevel p_222553_, RandomSource p_222554_, BlockPos p_222555_, BlockState p_222556_) void
TallFlowerBlock.performBonemeal
(ServerLevel p_222568_, RandomSource p_222569_, BlockPos p_222570_, BlockState p_222571_) void
TallGrassBlock.performBonemeal
(ServerLevel p_222578_, RandomSource p_222579_, BlockPos p_222580_, BlockState p_222581_) private void
NyliumBlock.place
(Registry<ConfiguredFeature<?, ?>> p_255879_, ResourceKey<ConfiguredFeature<?, ?>> p_256032_, ServerLevel p_255631_, ChunkGenerator p_256445_, RandomSource p_255709_, BlockPos p_256019_) void
Block.popExperience
(ServerLevel p_49806_, BlockPos p_49807_, int p_49808_) protected void
BambooSaplingBlock.randomTick
(BlockState p_220753_, ServerLevel p_220754_, BlockPos p_220755_, RandomSource p_220756_) protected void
BambooStalkBlock.randomTick
(BlockState p_261931_, ServerLevel p_261751_, BlockPos p_261616_, RandomSource p_261766_) protected void
BeetrootBlock.randomTick
(BlockState p_220778_, ServerLevel p_220779_, BlockPos p_220780_, RandomSource p_220781_) protected void
BuddingAmethystBlock.randomTick
(BlockState p_220898_, ServerLevel p_220899_, BlockPos p_220900_, RandomSource p_220901_) protected void
CactusBlock.randomTick
(BlockState p_220913_, ServerLevel p_220914_, BlockPos p_220915_, RandomSource p_220916_) protected void
ChorusFlowerBlock.randomTick
(BlockState p_220980_, ServerLevel p_220981_, BlockPos p_220982_, RandomSource p_220983_) protected void
CocoaBlock.randomTick
(BlockState p_221000_, ServerLevel p_221001_, BlockPos p_221002_, RandomSource p_221003_) protected void
CropBlock.randomTick
(BlockState p_221050_, ServerLevel p_221051_, BlockPos p_221052_, RandomSource p_221053_) protected void
FarmBlock.randomTick
(BlockState p_221139_, ServerLevel p_221140_, BlockPos p_221141_, RandomSource p_221142_) protected void
GrowingPlantHeadBlock.randomTick
(BlockState p_221350_, ServerLevel p_221351_, BlockPos p_221352_, RandomSource p_221353_) protected void
IceBlock.randomTick
(BlockState p_221355_, ServerLevel p_221356_, BlockPos p_221357_, RandomSource p_221358_) protected void
LeavesBlock.randomTick
(BlockState p_221379_, ServerLevel p_221380_, BlockPos p_221381_, RandomSource p_221382_) protected void
LiquidBlock.randomTick
(BlockState p_221410_, ServerLevel p_221411_, BlockPos p_221412_, RandomSource p_221413_) protected void
MangrovePropaguleBlock.randomTick
(BlockState p_221488_, ServerLevel p_221489_, BlockPos p_221490_, RandomSource p_221491_) protected void
MushroomBlock.randomTick
(BlockState p_221784_, ServerLevel p_221785_, BlockPos p_221786_, RandomSource p_221787_) protected void
NetherPortalBlock.randomTick
(BlockState p_221799_, ServerLevel p_221800_, BlockPos p_221801_, RandomSource p_221802_) protected void
NetherWartBlock.randomTick
(BlockState p_221806_, ServerLevel p_221807_, BlockPos p_221808_, RandomSource p_221809_) protected void
NyliumBlock.randomTick
(BlockState p_221835_, ServerLevel p_221836_, BlockPos p_221837_, RandomSource p_221838_) void
PitcherCropBlock.randomTick
(BlockState p_277950_, ServerLevel p_277589_, BlockPos p_277937_, RandomSource p_277887_) protected void
PointedDripstoneBlock.randomTick
(BlockState p_221883_, ServerLevel p_221884_, BlockPos p_221885_, RandomSource p_221886_) protected void
RedStoneOreBlock.randomTick
(BlockState p_221918_, ServerLevel p_221919_, BlockPos p_221920_, RandomSource p_221921_) protected void
SaplingBlock.randomTick
(BlockState p_222011_, ServerLevel p_222012_, BlockPos p_222013_, RandomSource p_222014_) protected void
SnowLayerBlock.randomTick
(BlockState p_222448_, ServerLevel p_222449_, BlockPos p_222450_, RandomSource p_222451_) protected void
SpreadingSnowyDirtBlock.randomTick
(BlockState p_222508_, ServerLevel p_222509_, BlockPos p_222510_, RandomSource p_222511_) protected void
StemBlock.randomTick
(BlockState p_222538_, ServerLevel p_222539_, BlockPos p_222540_, RandomSource p_222541_) protected void
SugarCaneBlock.randomTick
(BlockState p_222548_, ServerLevel p_222549_, BlockPos p_222550_, RandomSource p_222551_) protected void
SweetBerryBushBlock.randomTick
(BlockState p_222563_, ServerLevel p_222564_, BlockPos p_222565_, RandomSource p_222566_) void
TorchflowerCropBlock.randomTick
(BlockState p_273361_, ServerLevel p_273515_, BlockPos p_273546_, RandomSource p_273261_) protected void
TurtleEggBlock.randomTick
(BlockState p_222644_, ServerLevel p_222645_, BlockPos p_222646_, RandomSource p_222647_) protected void
VineBlock.randomTick
(BlockState p_222655_, ServerLevel p_222656_, BlockPos p_222657_, RandomSource p_222658_) protected void
WeatheringCopperBulbBlock.randomTick
(BlockState p_309163_, ServerLevel p_309177_, BlockPos p_309033_, RandomSource p_308946_) protected void
WeatheringCopperDoorBlock.randomTick
(BlockState p_308942_, ServerLevel p_309109_, BlockPos p_309034_, RandomSource p_309156_) protected void
WeatheringCopperFullBlock.randomTick
(BlockState p_222665_, ServerLevel p_222666_, BlockPos p_222667_, RandomSource p_222668_) protected void
WeatheringCopperGrateBlock.randomTick
(BlockState p_309111_, ServerLevel p_309121_, BlockPos p_309090_, RandomSource p_308865_) protected void
WeatheringCopperSlabBlock.randomTick
(BlockState p_222670_, ServerLevel p_222671_, BlockPos p_222672_, RandomSource p_222673_) protected void
WeatheringCopperStairBlock.randomTick
(BlockState p_222675_, ServerLevel p_222676_, BlockPos p_222677_, RandomSource p_222678_) protected void
WeatheringCopperTrapDoorBlock.randomTick
(BlockState p_309138_, ServerLevel p_309005_, BlockPos p_309123_, RandomSource p_309094_) protected void
DropExperienceBlock.spawnAfterBreak
(BlockState p_221086_, ServerLevel p_221087_, BlockPos p_221088_, ItemStack p_221089_, boolean p_221090_) protected void
InfestedBlock.spawnAfterBreak
(BlockState p_221360_, ServerLevel p_221361_, BlockPos p_221362_, ItemStack p_221363_, boolean p_221364_) protected void
RedStoneOreBlock.spawnAfterBreak
(BlockState p_221907_, ServerLevel p_221908_, BlockPos p_221909_, ItemStack p_221910_, boolean p_221911_) protected void
SculkCatalystBlock.spawnAfterBreak
(BlockState p_222109_, ServerLevel p_222110_, BlockPos p_222111_, ItemStack p_222112_, boolean p_222113_) protected void
SculkSensorBlock.spawnAfterBreak
(BlockState p_222142_, ServerLevel p_222143_, BlockPos p_222144_, ItemStack p_222145_, boolean p_222146_) protected void
SculkShriekerBlock.spawnAfterBreak
(BlockState p_222192_, ServerLevel p_222193_, BlockPos p_222194_, ItemStack p_222195_, boolean p_222196_) protected void
SpawnerBlock.spawnAfterBreak
(BlockState p_222477_, ServerLevel p_222478_, BlockPos p_222479_, ItemStack p_222480_, boolean p_222481_) private static void
PointedDripstoneBlock.spawnFallingStalactite
(BlockState p_154098_, ServerLevel p_154099_, BlockPos p_154100_) private void
InfestedBlock.spawnInfestation
(ServerLevel p_54181_, BlockPos p_54182_) private void
FrogspawnBlock.spawnTadpoles
(ServerLevel p_221221_, BlockPos p_221222_, RandomSource p_221223_) protected void
AbstractCauldronBlock.tick
(BlockState p_220702_, ServerLevel p_220703_, BlockPos p_220704_, RandomSource p_220705_) protected void
BambooStalkBlock.tick
(BlockState p_261612_, ServerLevel p_261527_, BlockPos p_261846_, RandomSource p_261638_) protected void
BarrelBlock.tick
(BlockState p_220758_, ServerLevel p_220759_, BlockPos p_220760_, RandomSource p_220761_) protected void
BasePressurePlateBlock.tick
(BlockState p_220768_, ServerLevel p_220769_, BlockPos p_220770_, RandomSource p_220771_) protected void
BigDripleafBlock.tick
(BlockState p_220798_, ServerLevel p_220799_, BlockPos p_220800_, RandomSource p_220801_) protected void
BigDripleafStemBlock.tick
(BlockState p_220813_, ServerLevel p_220814_, BlockPos p_220815_, RandomSource p_220816_) void
BrushableBlock.tick
(BlockState p_277544_, ServerLevel p_277779_, BlockPos p_278019_, RandomSource p_277471_) protected void
BubbleColumnBlock.tick
(BlockState p_220888_, ServerLevel p_220889_, BlockPos p_220890_, RandomSource p_220891_) protected void
ButtonBlock.tick
(BlockState p_220903_, ServerLevel p_220904_, BlockPos p_220905_, RandomSource p_220906_) protected void
CactusBlock.tick
(BlockState p_220908_, ServerLevel p_220909_, BlockPos p_220910_, RandomSource p_220911_) protected void
ChestBlock.tick
(BlockState p_220958_, ServerLevel p_220959_, BlockPos p_220960_, RandomSource p_220961_) protected void
ChorusFlowerBlock.tick
(BlockState p_220975_, ServerLevel p_220976_, BlockPos p_220977_, RandomSource p_220978_) protected void
ChorusPlantBlock.tick
(BlockState p_220985_, ServerLevel p_220986_, BlockPos p_220987_, RandomSource p_220988_) protected void
CommandBlock.tick
(BlockState p_221005_, ServerLevel p_221006_, BlockPos p_221007_, RandomSource p_221008_) protected void
ComparatorBlock.tick
(BlockState p_221010_, ServerLevel p_221011_, BlockPos p_221012_, RandomSource p_221013_) protected void
ComposterBlock.tick
(BlockState p_221015_, ServerLevel p_221016_, BlockPos p_221017_, RandomSource p_221018_) protected void
CoralBlock.tick
(BlockState p_221020_, ServerLevel p_221021_, BlockPos p_221022_, RandomSource p_221023_) protected void
CoralFanBlock.tick
(BlockState p_221025_, ServerLevel p_221026_, BlockPos p_221027_, RandomSource p_221028_) protected void
CoralPlantBlock.tick
(BlockState p_221030_, ServerLevel p_221031_, BlockPos p_221032_, RandomSource p_221033_) protected void
CoralWallFanBlock.tick
(BlockState p_221035_, ServerLevel p_221036_, BlockPos p_221037_, RandomSource p_221038_) protected void
CrafterBlock.tick
(BlockState p_307471_, ServerLevel p_307641_, BlockPos p_307339_, RandomSource p_307565_) protected void
DetectorRailBlock.tick
(BlockState p_221060_, ServerLevel p_221061_, BlockPos p_221062_, RandomSource p_221063_) protected void
DiodeBlock.tick
(BlockState p_221065_, ServerLevel p_221066_, BlockPos p_221067_, RandomSource p_221068_) protected void
DirtPathBlock.tick
(BlockState p_221070_, ServerLevel p_221071_, BlockPos p_221072_, RandomSource p_221073_) protected void
DispenserBlock.tick
(BlockState p_221075_, ServerLevel p_221076_, BlockPos p_221077_, RandomSource p_221078_) protected void
EnderChestBlock.tick
(BlockState p_221112_, ServerLevel p_221113_, BlockPos p_221114_, RandomSource p_221115_) protected void
FallingBlock.tick
(BlockState p_221124_, ServerLevel p_221125_, BlockPos p_221126_, RandomSource p_221127_) protected void
FarmBlock.tick
(BlockState p_221134_, ServerLevel p_221135_, BlockPos p_221136_, RandomSource p_221137_) protected void
FireBlock.tick
(BlockState p_221160_, ServerLevel p_221161_, BlockPos p_221162_, RandomSource p_221163_) protected void
FrogspawnBlock.tick
(BlockState p_221194_, ServerLevel p_221195_, BlockPos p_221196_, RandomSource p_221197_) protected void
FrostedIceBlock.tick
(BlockState p_221233_, ServerLevel p_221234_, BlockPos p_221235_, RandomSource p_221236_) protected void
GrowingPlantBlock.tick
(BlockState p_221280_, ServerLevel p_221281_, BlockPos p_221282_, RandomSource p_221283_) protected void
LeavesBlock.tick
(BlockState p_221369_, ServerLevel p_221370_, BlockPos p_221371_, RandomSource p_221372_) protected void
LecternBlock.tick
(BlockState p_221388_, ServerLevel p_221389_, BlockPos p_221390_, RandomSource p_221391_) protected void
LightningRodBlock.tick
(BlockState p_221400_, ServerLevel p_221401_, BlockPos p_221402_, RandomSource p_221403_) protected void
MagmaBlock.tick
(BlockState p_221415_, ServerLevel p_221416_, BlockPos p_221417_, RandomSource p_221418_) protected void
ObserverBlock.tick
(BlockState p_221840_, ServerLevel p_221841_, BlockPos p_221842_, RandomSource p_221843_) protected void
PointedDripstoneBlock.tick
(BlockState p_221865_, ServerLevel p_221866_, BlockPos p_221867_, RandomSource p_221868_) protected void
RedstoneLampBlock.tick
(BlockState p_221937_, ServerLevel p_221938_, BlockPos p_221939_, RandomSource p_221940_) protected void
RedstoneTorchBlock.tick
(BlockState p_221949_, ServerLevel p_221950_, BlockPos p_221951_, RandomSource p_221952_) protected void
ScaffoldingBlock.tick
(BlockState p_222019_, ServerLevel p_222020_, BlockPos p_222021_, RandomSource p_222022_) protected void
SculkCatalystBlock.tick
(BlockState p_222104_, ServerLevel p_222105_, BlockPos p_222106_, RandomSource p_222107_) protected void
SculkSensorBlock.tick
(BlockState p_222137_, ServerLevel p_222138_, BlockPos p_222139_, RandomSource p_222140_) protected void
SculkShriekerBlock.tick
(BlockState p_222187_, ServerLevel p_222188_, BlockPos p_222189_, RandomSource p_222190_) void
SnifferEggBlock.tick
(BlockState p_277841_, ServerLevel p_277739_, BlockPos p_277692_, RandomSource p_277973_) protected void
SoulSandBlock.tick
(BlockState p_222457_, ServerLevel p_222458_, BlockPos p_222459_, RandomSource p_222460_) protected void
SugarCaneBlock.tick
(BlockState p_222543_, ServerLevel p_222544_, BlockPos p_222545_, RandomSource p_222546_) protected void
TargetBlock.tick
(BlockState p_222588_, ServerLevel p_222589_, BlockPos p_222590_, RandomSource p_222591_) protected void
TripWireBlock.tick
(BlockState p_222598_, ServerLevel p_222599_, BlockPos p_222600_, RandomSource p_222601_) protected void
TripWireHookBlock.tick
(BlockState p_222610_, ServerLevel p_222611_, BlockPos p_222612_, RandomSource p_222613_) private void
StructureBlock.trigger
(ServerLevel p_57115_, StructureBlockEntity p_57116_) protected void
Block.tryDropExperience
(ServerLevel p_220823_, BlockPos p_220824_, ItemStack p_220825_, IntProvider p_220826_) -
Uses of ServerLevel in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescriptionprivate void
SculkCatalystBlockEntity.CatalystListener.bloom
(ServerLevel p_281501_, BlockPos p_281448_, BlockState p_281966_, RandomSource p_283606_) boolean
CalibratedSculkSensorBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel p_282061_, BlockPos p_282550_, Holder<GameEvent> p_316545_, GameEvent.Context p_281456_) boolean
SculkSensorBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel p_282127_, BlockPos p_283268_, Holder<GameEvent> p_316115_, GameEvent.Context p_282856_) boolean
SculkShriekerBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel p_281256_, BlockPos p_281528_, Holder<GameEvent> p_316788_, GameEvent.Context p_282914_) private boolean
SculkShriekerBlockEntity.canRespond
(ServerLevel p_222873_) private static void
AbstractFurnaceBlockEntity.createExperience
(ServerLevel p_154999_, Vec3 p_155000_, int p_155001_, float p_155002_) private static Vec3
TheEndGatewayBlockEntity.findExitPortalXZPosTentative
(ServerLevel p_155842_, BlockPos p_155843_) private static BlockPos
TheEndGatewayBlockEntity.findOrCreateValidTeleportPos
(ServerLevel p_155819_, BlockPos p_155820_) void
JigsawBlockEntity.generate
(ServerLevel p_59421_, int p_59422_, boolean p_59423_) TheEndGatewayBlockEntity.getPortalPosition
(ServerLevel p_350561_, BlockPos p_350271_) List
<RecipeHolder<?>> AbstractFurnaceBlockEntity.getRecipesToAwardAndPopExperience
(ServerLevel p_154996_, Vec3 p_154997_) private StructureTemplate
StructureBlockEntity.getStructureTemplate
(ServerLevel p_309601_) boolean
SculkCatalystBlockEntity.CatalystListener.handleGameEvent
(ServerLevel p_283470_, Holder<GameEvent> p_316661_, GameEvent.Context p_283014_, Vec3 p_282350_) private static boolean
TheEndGatewayBlockEntity.isChunkEmpty
(ServerLevel p_155816_, Vec3 p_155817_) boolean
StructureBlockEntity.loadStructureInfo
(ServerLevel p_309683_) void
SculkSensorBlockEntity.VibrationUser.onReceiveVibration
(ServerLevel p_282851_, BlockPos p_281608_, Holder<GameEvent> p_316423_, Entity p_282123_, Entity p_283090_, float p_283130_) void
SculkShriekerBlockEntity.VibrationUser.onReceiveVibration
(ServerLevel p_283372_, BlockPos p_281679_, Holder<GameEvent> p_316155_, Entity p_282286_, Entity p_281384_, float p_283119_) void
StructureBlockEntity.placeStructure
(ServerLevel p_309543_) private void
StructureBlockEntity.placeStructure
(ServerLevel p_309691_, StructureTemplate p_309550_) boolean
StructureBlockEntity.placeStructureIfSameSize
(ServerLevel p_309647_) private void
SculkShriekerBlockEntity.shriek
(ServerLevel p_222845_, Entity p_222846_) private static void
TheEndGatewayBlockEntity.spawnGatewayPortal
(ServerLevel p_155822_, BlockPos p_155823_, EndGatewayConfiguration p_155824_) void
SculkShriekerBlockEntity.tryRespond
(ServerLevel p_222840_) void
SculkShriekerBlockEntity.tryShriek
(ServerLevel p_222842_, ServerPlayer p_222843_) private boolean
SculkShriekerBlockEntity.trySummonWarden
(ServerLevel p_222881_) private boolean
SculkShriekerBlockEntity.tryToWarn
(ServerLevel p_222875_, ServerPlayer p_222876_) -
Uses of ServerLevel in net.minecraft.world.level.block.entity.trialspawner
Modifier and TypeMethodDescriptionvoid
TrialSpawner.applyOminous
(ServerLevel p_338315_, BlockPos p_338416_) TrialSpawnerState.calculatePositionAbove
(Entity p_338791_, ServerLevel p_338807_) TrialSpawnerState.calculatePositionToSpawnSpawner
(ServerLevel p_338436_, BlockPos p_338583_, TrialSpawner p_338226_, TrialSpawnerData p_338461_) PlayerDetector.detect
(ServerLevel p_312124_, PlayerDetector.EntitySelector p_323893_, BlockPos p_312149_, double p_324310_, boolean p_338443_) void
TrialSpawner.ejectReward
(ServerLevel p_312892_, BlockPos p_312668_, ResourceKey<LootTable> p_335942_) TrialSpawnerData.findPlayerWithOminousEffect
(ServerLevel p_350655_, List<UUID> p_350735_) (package private) SimpleWeightedRandomList
<ItemStack> TrialSpawnerData.getDispensingItems
(ServerLevel p_338857_, TrialSpawnerConfig p_338213_, BlockPos p_338577_) PlayerDetector.EntitySelector.getEntities
(ServerLevel p_324233_, EntityTypeTest<Entity, T> p_324216_, AABB p_324151_, Predicate<? super T> p_323700_) PlayerDetector.EntitySelector.getPlayers
(ServerLevel p_323807_, Predicate<? super Player> p_324034_) boolean
TrialSpawnerData.isCooldownFinished
(ServerLevel p_312743_) boolean
TrialSpawnerData.isReadyToEjectItems
(ServerLevel p_312692_, float p_312374_, int p_338651_) boolean
TrialSpawnerData.isReadyToOpenShutter
(ServerLevel p_312291_, float p_312417_, int p_338634_) boolean
TrialSpawnerData.isReadyToSpawnNextMob
(ServerLevel p_311818_, TrialSpawnerConfig p_312100_, int p_312550_) private static long
TrialSpawnerData.lowResolutionPosition
(ServerLevel p_338878_, BlockPos p_338542_) void
TrialSpawner.removeOminous
(ServerLevel p_338672_, BlockPos p_338318_) void
TrialSpawnerData.resetAfterBecomingOminous
(TrialSpawner p_338478_, ServerLevel p_338185_) private static Entity
TrialSpawnerState.selectEntityToSpawnItemAbove
(List<Player> p_338467_, Set<UUID> p_338224_, TrialSpawner p_338687_, BlockPos p_338268_, ServerLevel p_338524_) private static boolean
TrialSpawner.shouldMobBeUntracked
(ServerLevel p_312908_, BlockPos p_312807_, UUID p_311952_) TrialSpawner.spawnMob
(ServerLevel p_312582_, BlockPos p_312518_) private void
TrialSpawnerState.spawnOminousOminousItemSpawner
(ServerLevel p_338483_, BlockPos p_338824_, TrialSpawner p_338767_) (package private) TrialSpawnerState
TrialSpawnerState.tickAndGetNext
(BlockPos p_312221_, TrialSpawner p_311912_, ServerLevel p_311974_) void
TrialSpawner.tickServer
(ServerLevel p_312132_, BlockPos p_312062_, boolean p_338207_) private boolean
TrialSpawnerState.timeToSpawnItemSpawner
(ServerLevel p_338741_, TrialSpawnerData p_338296_) void
TrialSpawnerData.tryDetectPlayers
(ServerLevel p_311852_, BlockPos p_312503_, TrialSpawner p_338452_) -
Uses of ServerLevel in net.minecraft.world.level.block.entity.vault
Modifier and TypeMethodDescription(package private) static void
VaultBlockEntity.Server.cycleDisplayItemFromLootTable
(ServerLevel p_323551_, VaultState p_324221_, VaultConfig p_324332_, VaultSharedData p_323644_, BlockPos p_323602_) private void
VaultState.ejectResultItem
(ServerLevel p_324066_, BlockPos p_324594_, ItemStack p_324065_, float p_324283_) private static ItemStack
VaultBlockEntity.Server.getRandomDisplayItemFromLootTable
(ServerLevel p_323781_, BlockPos p_324109_, ResourceKey<LootTable> p_336119_) protected void
VaultState.onEnter
(ServerLevel p_323591_, BlockPos p_324053_, VaultConfig p_324561_, VaultSharedData p_323516_, boolean p_338369_) protected void
VaultState.onExit
(ServerLevel p_324093_, BlockPos p_324256_, VaultConfig p_324614_, VaultSharedData p_324591_) void
VaultState.onTransition
(ServerLevel p_323698_, BlockPos p_324545_, VaultState p_324339_, VaultConfig p_324218_, VaultSharedData p_323812_, boolean p_338417_) private static void
VaultBlockEntity.Server.playInsertFailSound
(ServerLevel p_324555_, VaultServerData p_324017_, BlockPos p_324186_, SoundEvent p_350407_) VaultBlockEntity.Server.resolveItemsToEject
(ServerLevel p_323877_, VaultConfig p_324041_, BlockPos p_324255_, Player p_324347_) (package private) static void
VaultBlockEntity.Server.setVaultState
(ServerLevel p_324091_, BlockPos p_324620_, BlockState p_323759_, BlockState p_324027_, VaultConfig p_324140_, VaultSharedData p_323624_) static void
VaultBlockEntity.Server.tick
(ServerLevel p_323841_, BlockPos p_324265_, BlockState p_324343_, VaultConfig p_324129_, VaultServerData p_324579_, VaultSharedData p_324317_) VaultState.tickAndGetNext
(ServerLevel p_324582_, BlockPos p_323837_, VaultConfig p_323770_, VaultServerData p_324291_, VaultSharedData p_324388_) static void
VaultBlockEntity.Server.tryInsertKey
(ServerLevel p_323533_, BlockPos p_323777_, BlockState p_324589_, VaultConfig p_323660_, VaultServerData p_323829_, VaultSharedData p_324341_, Player p_324373_, ItemStack p_324551_) private static void
VaultBlockEntity.Server.unlock
(ServerLevel p_323501_, BlockState p_323758_, BlockPos p_323773_, VaultConfig p_324195_, VaultServerData p_324600_, VaultSharedData p_324277_, List<ItemStack> p_324574_) (package private) void
VaultSharedData.updateConnectedPlayersWithinRange
(ServerLevel p_324193_, BlockPos p_324358_, VaultServerData p_324348_, VaultConfig p_324058_, double p_324450_) private static VaultState
VaultState.updateStateForConnectedPlayers
(ServerLevel p_324451_, BlockPos p_324085_, VaultConfig p_323780_, VaultServerData p_323896_, VaultSharedData p_323954_, double p_324489_) -
Uses of ServerLevel in net.minecraft.world.level.block.grower
Modifier and TypeMethodDescriptionboolean
TreeGrower.growTree
(ServerLevel p_304396_, ChunkGenerator p_304672_, BlockPos p_304643_, BlockState p_304439_, RandomSource p_304893_) -
Uses of ServerLevel in net.minecraft.world.level.block.state
Modifier and TypeMethodDescriptionvoid
BlockBehaviour.BlockStateBase.randomTick
(ServerLevel p_222973_, BlockPos p_222974_, RandomSource p_222975_) protected void
BlockBehaviour.randomTick
(BlockState p_222954_, ServerLevel p_222955_, BlockPos p_222956_, RandomSource p_222957_) void
BlockBehaviour.BlockStateBase.spawnAfterBreak
(ServerLevel p_222968_, BlockPos p_222969_, ItemStack p_222970_, boolean p_222971_) protected void
BlockBehaviour.spawnAfterBreak
(BlockState p_222949_, ServerLevel p_222950_, BlockPos p_222951_, ItemStack p_222952_, boolean p_222953_) void
BlockBehaviour.BlockStateBase.tick
(ServerLevel p_222964_, BlockPos p_222965_, RandomSource p_222966_) protected void
BlockBehaviour.tick
(BlockState p_222945_, ServerLevel p_222946_, BlockPos p_222947_, RandomSource p_222948_) -
Uses of ServerLevel in net.minecraft.world.level.chunk
Modifier and TypeMethodDescriptionprivate <T extends BlockEntity>
voidLevelChunk.addGameEventListener
(T p_223416_, ServerLevel p_223417_) ChunkGenerator.findNearestMapStructure
(ServerLevel p_223038_, HolderSet<Structure> p_223039_, BlockPos p_223040_, int p_223041_, boolean p_223042_) ChunkGenerator.getNearestGeneratedStructure
(Set<Holder<Structure>> p_223182_, ServerLevel p_223183_, StructureManager p_223184_, BlockPos p_223185_, boolean p_223186_, ConcentricRingsStructurePlacement p_223187_) void
LevelChunk.registerTickContainerInLevel
(ServerLevel p_187959_) private <T extends BlockEntity>
voidLevelChunk.removeGameEventListener
(T p_223413_, ServerLevel p_223414_) void
LevelChunk.unregisterTickContainerFromLevel
(ServerLevel p_187980_) ModifierConstructorDescriptionLevelChunk
(ServerLevel p_196850_, ProtoChunk p_196851_, LevelChunk.PostLoadProcessor p_196852_) -
Uses of ServerLevel in net.minecraft.world.level.chunk.status
Modifier and TypeFieldDescriptionprivate final ServerLevel
WorldGenContext.level
The field for thelevel
record component.Modifier and TypeMethodDescriptionWorldGenContext.level()
Returns the value of thelevel
record component.Modifier and TypeMethodDescriptionprivate static void
ChunkStatusTasks.postLoadProtoChunk
(ServerLevel p_347492_, List<CompoundTag> p_347609_) ModifierConstructorDescriptionWorldGenContext
(ServerLevel level, ChunkGenerator generator, StructureTemplateManager structureManager, ThreadedLevelLightEngine lightEngine, ProcessorHandle<ChunkTaskPriorityQueueSorter.Message<Runnable>> mainThreadMailBox) Creates an instance of aWorldGenContext
record class. -
Uses of ServerLevel in net.minecraft.world.level.chunk.storage
Modifier and TypeMethodDescriptionprivate static LevelChunk.PostLoadProcessor
ChunkSerializer.postLoadChunk
(ServerLevel p_196891_, CompoundTag p_196892_) static ProtoChunk
ChunkSerializer.read
(ServerLevel p_188231_, PoiManager p_188232_, RegionStorageInfo p_352213_, ChunkPos p_188233_, CompoundTag p_188234_) private static void
ChunkSerializer.saveTicks
(ServerLevel p_188236_, CompoundTag p_188237_, ChunkAccess.TicksToSave p_188238_) static CompoundTag
ChunkSerializer.write
(ServerLevel p_63455_, ChunkAccess p_63456_) ModifierConstructorDescriptionEntityStorage
(SimpleRegionStorage p_321748_, ServerLevel p_196924_, Executor p_196928_) -
Uses of ServerLevel in net.minecraft.world.level.dimension.end
Modifier and TypeMethodDescriptionabstract void
DragonRespawnAnimation.tick
(ServerLevel p_64005_, EndDragonFight p_64006_, List<EndCrystal> p_64007_, int p_64008_, BlockPos p_64009_) ModifierConstructorDescriptionEndDragonFight
(ServerLevel p_289759_, long p_289805_, EndDragonFight.Data p_289800_) EndDragonFight
(ServerLevel p_289771_, long p_289793_, EndDragonFight.Data p_289768_, BlockPos p_289794_) -
Uses of ServerLevel in net.minecraft.world.level.gameevent
Modifier and TypeFieldDescriptionprivate final ServerLevel
EuclideanGameEventListenerRegistry.level
private final ServerLevel
GameEventDispatcher.level
Modifier and TypeMethodDescriptionvoid
DynamicGameEventListener.add
(ServerLevel p_223618_) EuclideanGameEventListenerRegistry.getPostableListenerPosition
(ServerLevel p_249585_, Vec3 p_251333_, GameEventListener p_251051_) boolean
GameEventListener.handleGameEvent
(ServerLevel p_223757_, Holder<GameEvent> p_316739_, GameEvent.Context p_249681_, Vec3 p_251048_) void
DynamicGameEventListener.move
(ServerLevel p_223642_) void
DynamicGameEventListener.remove
(ServerLevel p_223635_) ModifierConstructorDescriptionEuclideanGameEventListenerRegistry
(ServerLevel p_281505_, int p_283450_, EuclideanGameEventListenerRegistry.OnEmptyAction p_282325_) GameEventDispatcher
(ServerLevel p_251921_) -
Uses of ServerLevel in net.minecraft.world.level.gameevent.vibrations
Modifier and TypeMethodDescriptionboolean
VibrationSystem.User.canReceiveVibration
(ServerLevel p_282960_, BlockPos p_282488_, Holder<GameEvent> p_316319_, GameEvent.Context p_283577_) void
VibrationSystem.Listener.forceScheduleVibration
(ServerLevel p_282808_, Holder<GameEvent> p_316321_, GameEvent.Context p_281652_, Vec3 p_281530_) VibrationInfo.getEntity
(ServerLevel p_249184_) VibrationInfo.getProjectileOwner
(ServerLevel p_249217_) boolean
VibrationSystem.Listener.handleGameEvent
(ServerLevel p_282254_, Holder<GameEvent> p_316513_, GameEvent.Context p_283664_, Vec3 p_282426_) void
VibrationSystem.User.onReceiveVibration
(ServerLevel p_282148_, BlockPos p_282090_, Holder<GameEvent> p_316773_, Entity p_281578_, Entity p_281308_, float p_281707_) private static boolean
VibrationSystem.Ticker.receiveVibration
(ServerLevel p_282967_, VibrationSystem.Data p_283447_, VibrationSystem.User p_282301_, VibrationInfo p_281498_) private void
VibrationSystem.Listener.scheduleVibration
(ServerLevel p_282037_, VibrationSystem.Data p_283229_, Holder<GameEvent> p_316858_, GameEvent.Context p_283344_, Vec3 p_281758_, Vec3 p_282990_) private static void
VibrationSystem.Ticker.tryReloadVibrationParticle
(ServerLevel p_282010_, VibrationSystem.Data p_282354_, VibrationSystem.User p_282958_) private static void
VibrationSystem.Ticker.trySelectAndScheduleVibration
(ServerLevel p_282775_, VibrationSystem.Data p_282792_, VibrationSystem.User p_281845_) -
Uses of ServerLevel in net.minecraft.world.level.levelgen
Modifier and TypeMethodDescriptionprivate boolean
PatrolSpawner.spawnPatrolMember
(ServerLevel p_224533_, BlockPos p_224534_, RandomSource p_224535_, boolean p_224536_) int
PatrolSpawner.tick
(ServerLevel p_64570_, boolean p_64571_, boolean p_64572_) int
PhantomSpawner.tick
(ServerLevel p_64576_, boolean p_64577_, boolean p_64578_) -
Uses of ServerLevel in net.minecraft.world.level.levelgen.feature
Modifier and TypeFieldDescriptionprivate static final com.google.common.cache.LoadingCache
<ServerLevel, FeatureCountTracker.LevelData> FeatureCountTracker.data
Modifier and TypeMethodDescriptionstatic void
FeatureCountTracker.chunkDecorated
(ServerLevel p_190882_) static void
FeatureCountTracker.featurePlaced
(ServerLevel p_190884_, ConfiguredFeature<?, ?> p_190885_, Optional<PlacedFeature> p_190886_) -
Uses of ServerLevel in net.minecraft.world.level.levelgen.structure.pieces
Modifier and TypeMethodDescriptionStructurePieceSerializationContext.fromLevel
(ServerLevel p_192771_) -
Uses of ServerLevel in net.minecraft.world.level.levelgen.structure.pools
Modifier and TypeMethodDescriptionstatic boolean
JigsawPlacement.generateJigsaw
(ServerLevel p_227204_, Holder<StructureTemplatePool> p_227205_, ResourceLocation p_227206_, int p_227207_, BlockPos p_227208_, boolean p_227209_) -
Uses of ServerLevel in net.minecraft.world.level.portal
Modifier and TypeFieldDescriptionprotected final ServerLevel
PortalForcer.level
private final ServerLevel
DimensionTransition.newLevel
The field for thenewLevel
record component.Modifier and TypeMethodDescriptionDimensionTransition.newLevel()
Returns the value of thenewLevel
record component.Modifier and TypeMethodDescriptionprivate static Vec3
DimensionTransition.findAdjustedSharedSpawnPos
(ServerLevel p_352080_, Entity p_352400_) static Vec3
PortalShape.findCollisionFreePosition
(Vec3 p_260315_, ServerLevel p_259704_, Entity p_259626_, EntityDimensions p_259816_) static DimensionTransition
DimensionTransition.missingRespawnBlock
(ServerLevel p_348517_, Entity p_352420_, DimensionTransition.PostDimensionTransition p_352305_) ModifierConstructorDescriptionDimensionTransition
(ServerLevel p_348609_, Entity p_352432_, DimensionTransition.PostDimensionTransition p_352373_) DimensionTransition
(ServerLevel newLevel, Vec3 pos, Vec3 speed, float yRot, float xRot, boolean missingRespawnBlock, DimensionTransition.PostDimensionTransition postDimensionTransition) Creates an instance of aDimensionTransition
record class.DimensionTransition
(ServerLevel p_348637_, Vec3 p_348645_, Vec3 p_348472_, float p_348548_, float p_348664_, DimensionTransition.PostDimensionTransition p_352139_) PortalForcer
(ServerLevel p_77650_) -
Uses of ServerLevel in net.minecraft.world.level.storage.loot
Modifier and TypeFieldDescriptionprivate final ServerLevel
LootParams.Builder.level
private final ServerLevel
LootParams.level
Modifier and TypeMethodDescriptionLootContext.Builder.getLevel()
LootContext.getLevel()
LootParams.Builder.getLevel()
LootParams.getLevel()
Modifier and TypeMethodDescriptionLootTable.createStackSplitter
(ServerLevel p_287765_, Consumer<ItemStack> p_251308_) ModifierConstructorDescriptionBuilder
(ServerLevel p_287594_) LootParams
(ServerLevel p_287766_, Map<LootContextParam<?>, Object> p_287705_, Map<ResourceLocation, LootParams.DynamicDrop> p_287642_, float p_287671_) -
Uses of ServerLevel in net.neoforged.neoforge.attachment
-
Uses of ServerLevel in net.neoforged.neoforge.capabilities
Modifier and TypeMethodDescriptionstatic <T,
C> BlockCapabilityCache <T, C> BlockCapabilityCache.create
(BlockCapability<T, C> capability, ServerLevel level, BlockPos pos, C context) Creates a new cache instance and registers it to the level.static <T,
C> BlockCapabilityCache <T, C> BlockCapabilityCache.create
(BlockCapability<T, C> capability, ServerLevel level, BlockPos pos, C context, BooleanSupplier isValid, Runnable invalidationListener) Creates a new cache instance with an invalidation listener, and registers it to the level.ModifierConstructorDescriptionprivate
BlockCapabilityCache
(BlockCapability<T, C> capability, ServerLevel level, BlockPos pos, C context, BooleanSupplier isValid, Runnable invalidationListener) -
Uses of ServerLevel in net.neoforged.neoforge.client
-
Uses of ServerLevel in net.neoforged.neoforge.common
Modifier and TypeMethodDescriptionstatic void
CommonHooks.handleBlockDrops
(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Fires theBlockDropsEvent
when block drops (items and experience) are determined. -
Uses of ServerLevel in net.neoforged.neoforge.common.advancements.critereon
Modifier and TypeMethodDescriptionboolean
PiglinNeutralArmorEntityPredicate.matches
(Entity entity, ServerLevel level, @Nullable Vec3 position) -
Uses of ServerLevel in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault boolean
IBlockExtension.addLandingEffects
(BlockState state1, ServerLevel level, BlockPos pos, BlockState state2, LivingEntity entity, int numberOfParticles) Allows a block to override the standard EntityLivingBase.updateFallState particles, this is a server side method that spawns particles with WorldServer.spawnParticle.default boolean
IBlockStateExtension.addLandingEffects
(ServerLevel level, BlockPos pos, BlockState state2, LivingEntity entity, int numberOfParticles) Allows a block to override the standard EntityLivingBase.updateFallState particles, this is a server side method that spawns particles with WorldServer.spawnParticle. -
Uses of ServerLevel in net.neoforged.neoforge.common.util
Modifier and TypeFieldDescriptionprivate final ServerLevel
FakePlayerFactory.FakePlayerKey.level
The field for thelevel
record component.Modifier and TypeMethodDescriptionFakePlayerFactory.FakePlayerKey.level()
Returns the value of thelevel
record component.Modifier and TypeMethodDescriptionstatic FakePlayer
FakePlayerFactory.get
(ServerLevel level, com.mojang.authlib.GameProfile username) Get a fake player with a given username, Mods should either hold weak references to the return value, or listen for a WorldEvent.Unload and kill all references to prevent worlds staying in memory, or call this function every time and let Forge take care of the cleanup.static FakePlayer
FakePlayerFactory.getMinecraft
(ServerLevel level) static void
FakePlayerFactory.unloadLevel
(ServerLevel level) ModifierConstructorDescriptionFakePlayer
(ServerLevel level, com.mojang.authlib.GameProfile name) private
FakePlayerKey
(ServerLevel level, com.mojang.authlib.GameProfile username) Creates an instance of aFakePlayerKey
record class. -
Uses of ServerLevel in net.neoforged.neoforge.common.world.chunk
Modifier and TypeMethodDescription(package private) static <T extends Comparable<? super T>>
booleanForcedChunkManager.forceChunk
(ServerLevel level, ResourceLocation id, T owner, int chunkX, int chunkZ, boolean add, boolean ticking, TicketType<ForcedChunkManager.TicketOwner<T>> type, Function<ForcedChunksSavedData, ForcedChunkManager.TicketTracker<T>> ticketGetter) Forces a chunk to be loaded for the given mod with the given "owner".private static <T extends Comparable<? super T>>
voidForcedChunkManager.forceChunk
(ServerLevel level, ChunkPos pos, TicketType<ForcedChunkManager.TicketOwner<T>> type, ForcedChunkManager.TicketOwner<T> owner, boolean add, boolean ticking) Adds/Removes a ticket from the level's chunk provider with the proper levels to match the forced chunks.boolean
TicketController.forceChunk
(ServerLevel level, UUID owner, int chunkX, int chunkZ, boolean add, boolean ticking) Forces a chunk to be loaded with the "owner" of the ticket being a given UUID.boolean
TicketController.forceChunk
(ServerLevel level, BlockPos owner, int chunkX, int chunkZ, boolean add, boolean ticking) Forces a chunk to be loaded with the "owner" of the ticket being a given block position.boolean
TicketController.forceChunk
(ServerLevel level, Entity owner, int chunkX, int chunkZ, boolean add, boolean ticking) Forces a chunk to be loaded with the "owner" of the ticket being the UUID of the given entity.static boolean
ForcedChunkManager.hasForcedChunks
(ServerLevel level) Checks if a level has any forced chunks.private static <T extends Comparable<? super T>>
voidForcedChunkManager.reinstatePersistentChunks
(ServerLevel level, TicketType<ForcedChunkManager.TicketOwner<T>> type, Map<ForcedChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> tickets, boolean ticking) Adds back any persistent forced chunks to the level's chunk provider.static void
ForcedChunkManager.reinstatePersistentChunks
(ServerLevel level, ForcedChunksSavedData saveData) Reinstates NeoForge's forced chunks when vanilla initially loads a level and reinstates their forced chunks.void
LoadingValidationCallback.validateTickets
(ServerLevel level, TicketHelper ticketHelper) Called back when tickets are about to be loaded and reinstated to allow mods to invalidate and remove specific tickets that may no longer be valid. -
Uses of ServerLevel in net.neoforged.neoforge.debug.block
Modifier and TypeMethodDescriptionprotected void
BlockTests.CustomBubbleColumnSustainingBlock.tick
(BlockState blockState, ServerLevel serverLevel, BlockPos blockPos, RandomSource randomSource) -
Uses of ServerLevel in net.neoforged.neoforge.debug.chat
ModifierConstructorDescriptionErrorCatchingStack
(CommandSource p_81302_, Vec3 p_81303_, Vec2 p_81304_, ServerLevel p_81305_, int p_81306_, String p_81307_, Component p_81308_, MinecraftServer p_81309_, @Nullable Entity p_81310_) -
Uses of ServerLevel in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionstatic void
EventHooks.fireChunkSent
(ServerPlayer entity, LevelChunk chunk, ServerLevel level) static void
EventHooks.fireChunkTicketLevelUpdated
(ServerLevel level, long chunkPos, int oldTicketLevel, int newTicketLevel, @Nullable ChunkHolder chunkHolder) static void
EventHooks.fireChunkUnWatch
(ServerPlayer entity, ChunkPos chunkpos, ServerLevel level) static void
EventHooks.fireChunkWatch
(ServerPlayer entity, LevelChunk chunk, ServerLevel level) static PlayerSpawnPhantomsEvent
EventHooks.firePlayerSpawnPhantoms
(ServerPlayer player, ServerLevel level, BlockPos pos) Called fromPhantomSpawner.tick(net.minecraft.server.level.ServerLevel, boolean, boolean)
just before the spawn conditions for phantoms are evaluated.static long
EventHooks.onSleepFinished
(ServerLevel level, long newTime, long minTime) -
Uses of ServerLevel in net.neoforged.neoforge.event.entity.player
Modifier and TypeMethodDescriptionboolean
PlayerSpawnPhantomsEvent.shouldSpawnPhantoms
(ServerLevel level, BlockPos pos) Checks if a spawn attempt should be made by checking the current result and evaluating the vanilla conditions if necessary. -
Uses of ServerLevel in net.neoforged.neoforge.event.level
Modifier and TypeFieldDescriptionprivate final ServerLevel
ChunkTicketLevelUpdatedEvent.level
private final ServerLevel
ChunkWatchEvent.level
Modifier and TypeMethodDescriptionBlockDropsEvent.getLevel()
ChunkTicketLevelUpdatedEvent.getLevel()
Returns the server level containing the chunk.ChunkWatchEvent.getLevel()
Returns the server level containing the chunk.ModifierConstructorDescriptionBlockDropsEvent
(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Constructs a new BlockDropsEventChunkTicketLevelUpdatedEvent
(ServerLevel level, long chunkPos, int oldTicketLevel, int newTicketLevel, @Nullable ChunkHolder chunkHolder) ChunkWatchEvent
(ServerPlayer player, ChunkPos pos, ServerLevel level) Sent
(ServerPlayer player, LevelChunk chunk, ServerLevel level) SleepFinishedTimeEvent
(ServerLevel level, long newTime, long minTime) UnWatch
(ServerPlayer player, ChunkPos pos, ServerLevel level) Watch
(ServerPlayer player, LevelChunk chunk, ServerLevel level) -
Uses of ServerLevel in net.neoforged.neoforge.network
Modifier and TypeMethodDescriptionstatic void
PacketDistributor.sendToPlayersInDimension
(ServerLevel level, CustomPacketPayload payload, CustomPacketPayload... payloads) Send the given payload(s) to all players in the given dimensionstatic void
PacketDistributor.sendToPlayersNear
(ServerLevel level, @Nullable ServerPlayer excluded, double x, double y, double z, double radius, CustomPacketPayload payload, CustomPacketPayload... payloads) Send the given payload(s) to all players in the area covered by the given radius around the given coordinates in the given dimension, except the given excluded player if presentstatic void
PacketDistributor.sendToPlayersTrackingChunk
(ServerLevel level, ChunkPos chunkPos, CustomPacketPayload payload, CustomPacketPayload... payloads) Send the given payload(s) to all players tracking the chunk at the given position in the given level -
Uses of ServerLevel in net.neoforged.neoforge.server.command
Modifier and TypeMethodDescriptionprivate static int
TPSCommand.sendTime
(CommandSourceStack cs, ServerLevel dim) -
Uses of ServerLevel in net.neoforged.neoforge.server.command.generation
-
Uses of ServerLevel in net.neoforged.testframework.gametest
ModifierConstructorDescriptionGameTestPlayer
(MinecraftServer server, ServerLevel level, com.mojang.authlib.GameProfile profile, ClientInformation information, GameTestHelper helper)