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
FishingHookPredicate.matches
(Entity p_219716_, ServerLevel p_219717_, Vec3 p_219718_) boolean
FluidPredicate.matches
(ServerLevel p_41105_, BlockPos p_41106_) boolean
ItemInteractWithBlockTrigger.TriggerInstance.matches
(BlockState p_220071_, ServerLevel p_220072_, BlockPos p_220073_, ItemStack p_220074_) boolean
LighthingBoltPredicate.matches
(Entity p_153247_, ServerLevel p_153248_, Vec3 p_153249_) 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
PlacedBlockTrigger.TriggerInstance.matches
(BlockState p_59508_, BlockPos p_59509_, ServerLevel p_59510_, ItemStack p_59511_) boolean
PlayerPredicate.matches
(Entity p_222484_, ServerLevel p_222485_, Vec3 p_222486_) 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_, GameEvent p_249278_, 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_242362_, Vec3 p_242272_, Vec2 p_242166_, ServerLevel p_242273_, int p_242279_, String p_242187_, Component p_242467_, MinecraftServer p_242416_, Entity p_242300_, boolean p_242243_, com.mojang.brigadier.ResultConsumer<CommandSourceStack> p_242375_, EntityAnchorArgument.Anchor p_242201_, CommandSigningContext p_242188_, TaskChainer p_242249_) -
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.selector
Modifier and TypeMethodDescriptionprivate void
EntitySelector.addEntities
(List<Entity> p_121155_, ServerLevel p_121156_, Vec3 p_121157_, Predicate<Entity> p_121158_) -
Uses of ServerLevel in net.minecraft.core
-
Uses of ServerLevel in net.minecraft.core.dispenser
Modifier and TypeMethodDescriptionprivate static boolean
ShearsDispenseItemBehavior.tryShearBeehive
(ServerLevel p_123577_, BlockPos p_123578_) private static boolean
ShearsDispenseItemBehavior.tryShearLivingEntity
(ServerLevel p_123583_, BlockPos p_123584_) -
Uses of ServerLevel in net.minecraft.gametest.framework
Modifier and TypeFieldDescription(package private) final ServerLevel
GameTestBatchRunner.level
private final ServerLevel
GameTestInfo.level
private final ServerLevel
TestCommand.TestSummaryDisplayer.level
Modifier and TypeFieldDescriptionprivate static final Map<String,
Consumer<ServerLevel>> GameTestRegistry.AFTER_BATCH_FUNCTIONS
private final Consumer<ServerLevel>
GameTestBatch.afterBatchFunction
private static final Map<String,
Consumer<ServerLevel>> GameTestRegistry.BEFORE_BATCH_FUNCTIONS
private final Consumer<ServerLevel>
GameTestBatch.beforeBatchFunction
Modifier and TypeMethodDescriptionstatic 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_) static void
GameTestRunner.clearAllTests
(ServerLevel p_127695_, BlockPos p_127696_, GameTestTicker p_127697_, int p_127698_) 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_, int p_127851_, ServerLevel p_127852_) static void
StructureUtils.createNewEmptyStructureBlock
(String p_177765_, BlockPos p_177766_, Vec3i p_177767_, Rotation p_177768_, ServerLevel p_177769_) private static StructureBlockEntity
StructureUtils.createStructureBlock
(String p_127891_, BlockPos p_127892_, Rotation p_127893_, ServerLevel p_127894_, boolean p_127895_) private static boolean
StructureUtils.doesStructureContain
(BlockPos p_127868_, BlockPos p_127869_, ServerLevel p_127870_) static BlockPos
StructureUtils.findNearestStructureBlock
(BlockPos p_127907_, int p_127908_, ServerLevel p_127909_) StructureUtils.findStructureBlockContainingPos
(BlockPos p_127854_, int p_127855_, ServerLevel p_127856_) static Collection<BlockPos>
StructureUtils.findStructureBlocks
(BlockPos p_127911_, int p_127912_, ServerLevel p_127913_) private static void
StructureUtils.forceLoadChunks
(BlockPos p_127858_, ServerLevel p_127859_) private static StructureTemplate
StructureUtils.getStructureTemplate
(String p_127881_, ServerLevel p_127882_) void
GameTestBatch.runAfterBatchFunction
(ServerLevel p_177064_) void
GameTestBatch.runBeforeBatchFunction
(ServerLevel p_127548_) private static void
TestCommand.runTest
(ServerLevel p_127930_, BlockPos p_127931_, MultipleTestTracker p_127932_) static Collection<GameTestInfo>
GameTestRunner.runTestBatches
(Collection<GameTestBatch> p_127727_, BlockPos p_127728_, Rotation p_127729_, ServerLevel p_127730_, GameTestTicker p_127731_, int p_127732_) private static void
TestCommand.runTestPreparation
(TestFunction p_127994_, ServerLevel p_127995_) static Collection<GameTestInfo>
GameTestRunner.runTests
(Collection<TestFunction> p_127753_, BlockPos p_127754_, Rotation p_127755_, ServerLevel p_127756_, GameTestTicker p_127757_, int p_127758_) protected static void
ReportGameListener.say
(ServerLevel p_177701_, ChatFormatting p_177702_, String p_177703_) 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_) (package private) static void
TestCommand.showTestSummaryIfAllDone
(ServerLevel p_127997_, MultipleTestTracker p_127998_) static StructureBlockEntity
StructureUtils.spawnStructure
(String p_127884_, BlockPos p_127885_, Rotation p_127886_, int p_127887_, ServerLevel p_127888_, boolean p_127889_) private void
GameTestServer.startTests
(ServerLevel p_177625_) 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_) ModifierConstructorDescriptionGameTestBatchRunner
(Collection<GameTestBatch> p_127563_, BlockPos p_127564_, Rotation p_127565_, ServerLevel p_127566_, GameTestTicker p_127567_, int p_127568_) GameTestInfo
(TestFunction p_127613_, Rotation p_127614_, ServerLevel p_127615_) TestSummaryDisplayer
(ServerLevel p_128061_, MultipleTestTracker p_128062_) ModifierConstructorDescriptionGameTestBatch
(String p_177059_, Collection<TestFunction> p_177060_, Consumer<ServerLevel> p_177061_, Consumer<ServerLevel> p_177062_) -
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_, FriendlyByteBuf p_133693_, ResourceLocation p_133694_) 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_) -
Uses of ServerLevel in net.minecraft.server.commands
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_) 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 void
TeleportCommand.performTeleport
(CommandSourceStack p_139015_, Entity p_139016_, ServerLevel p_139017_, double p_139018_, double p_139019_, double p_139020_, Set<ClientboundPlayerPositionPacket.RelativeArgument> 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_) -
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()
ServerPlayer.getLevel()
WorldGenRegion.getLevel()
Deprecated.Modifier and TypeMethodDescriptionServerPlayer.changeDimension
(ServerLevel p_9180_, ITeleporter teleporter) private void
ServerPlayer.createEndPlatform
(ServerLevel p_9007_, BlockPos p_9008_) protected PortalInfo
ServerPlayer.findDimensionEntryPoint
(ServerLevel p_8998_) private void
ServerPlayer.fudgeSpawnLocation
(ServerLevel p_9202_) protected Optional<BlockUtil.FoundRectangle>
ServerPlayer.getExitPortal
(ServerLevel p_184131_, BlockPos p_184132_, boolean p_184133_, WorldBorder p_184134_) protected static BlockPos
PlayerRespawnLogic.getOverworldRespawnPos
(ServerLevel p_183929_, int p_183930_, int p_183931_) static BlockPos
PlayerRespawnLogic.getSpawnPosInChunk
(ServerLevel p_183933_, ChunkPos p_183934_) static void
ServerLevel.makeObsidianPlatform
(ServerLevel p_8618_) private static void
ChunkMap.postLoadProtoChunk
(ServerLevel p_143065_, List<CompoundTag> p_143066_) void
ServerPlayer.setLevel
(ServerLevel p_143426_) void
ServerPlayerGameMode.setLevel
(ServerLevel p_9261_) void
ServerPlayer.teleportTo
(ServerLevel p_9000_, double p_9001_, double p_9002_, double p_9003_, float p_9004_, float p_9005_) 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_) WorldGenRegion
(ServerLevel p_143484_, List<ChunkAccess> p_143485_, ChunkStatus p_143486_, int p_143487_) -
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 TypeMethodDescriptionEntityType.appendCustomEntityStackConfig
(Consumer<T> p_263579_, ServerLevel p_263571_, ItemStack p_263582_, Player p_263574_) static void
ExperienceOrb.award
(ServerLevel p_147083_, Vec3 p_147084_, int p_147085_) Entity.changeDimension
(ServerLevel p_20118_) Entity.changeDimension
(ServerLevel p_20118_, ITeleporter teleporter) EntityType.create
(ServerLevel p_262637_, CompoundTag p_262687_, 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_) protected PortalInfo
Entity.findDimensionEntryPoint
(ServerLevel p_19923_) abstract AgeableMob
AgeableMob.getBreedOffspring
(ServerLevel p_146743_, AgeableMob p_146744_) protected Optional<BlockUtil.FoundRectangle>
Entity.getExitPortal
(ServerLevel p_185935_, BlockPos p_185936_, boolean p_185937_, WorldBorder p_185938_) EntityType.spawn
(ServerLevel p_262634_, BlockPos p_262707_, MobSpawnType p_262597_) EntityType.spawn
(ServerLevel p_262704_, CompoundTag p_262603_, Consumer<T> p_262621_, BlockPos p_262672_, MobSpawnType p_262644_, boolean p_262690_, boolean p_262590_) EntityType.spawn
(ServerLevel p_20593_, ItemStack p_20594_, Player p_20595_, BlockPos p_20596_, MobSpawnType p_20597_, boolean p_20598_, boolean p_20599_) 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_) boolean
Entity.wasKilled
(ServerLevel p_216988_, LivingEntity p_216989_) 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_, PathfinderMob 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
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
(PathfinderMob 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_, PathfinderMob 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_, PathfinderMob 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_, PathfinderMob 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
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
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 TypeMethodDescriptionBee.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.JukeboxListener.handleGameEvent
(ServerLevel p_250009_, GameEvent p_251513_, GameEvent.Context p_249478_, Vec3 p_250852_) void
Allay.AllayVibrationListenerConfig.onSignalReceive
(ServerLevel p_239108_, GameEventListener p_239109_, BlockPos p_239110_, GameEvent p_239111_, @Nullable Entity p_239112_, @Nullable Entity p_239113_, float p_239114_) boolean
Allay.AllayVibrationListenerConfig.shouldListen
(ServerLevel p_239787_, GameEventListener p_239788_, BlockPos p_239789_, GameEvent p_239790_, GameEvent.Context p_239791_) Modifier and TypeMethodDescriptionvoid
Allay.updateDynamicGameEventListener
(BiConsumer<DynamicGameEventListener<?>, ServerLevel> p_218348_) -
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_249530_, PathfinderMob p_248643_, long p_251124_) 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.decoration
Modifier and TypeMethodDescriptionvoid
ArmorStand.thunderHit
(ServerLevel p_31576_, LightningBolt p_31577_) void
HangingEntity.thunderHit
(ServerLevel p_31712_, LightningBolt p_31713_) -
Uses of ServerLevel in net.minecraft.world.entity.item
Modifier and TypeMethodDescriptionItemEntity.changeDimension
(ServerLevel p_32042_, ITeleporter teleporter) -
Uses of ServerLevel in net.minecraft.world.entity.monster
Modifier and TypeMethodDescriptionprivate void
ZombieVillager.finishConversion
(ServerLevel p_34399_) Strider.getBreedOffspring
(ServerLevel p_149861_, AgeableMob p_149862_) void
Creeper.thunderHit
(ServerLevel p_32286_, LightningBolt p_32287_) boolean
Zombie.wasKilled
(ServerLevel p_219160_, LivingEntity p_219161_) -
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
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_) 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.onSignalReceive
(ServerLevel p_219362_, GameEventListener p_219363_, BlockPos p_219364_, GameEvent p_219365_, Entity p_219366_, Entity p_219367_, float p_219368_) boolean
Warden.shouldListen
(ServerLevel p_219370_, GameEventListener p_219371_, BlockPos p_219372_, GameEvent p_219373_, GameEvent.Context p_219374_) 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 TypeMethodDescriptionAbstractVillager.changeDimension
(ServerLevel p_35295_, ITeleporter teleporter) Villager.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 TypeMethodDescriptionPlayer.findRespawnPositionAndUseSpawnBlock
(ServerLevel p_36131_, BlockPos p_36132_, float p_36133_, boolean p_36134_, boolean p_36135_) boolean
Player.wasKilled
(ServerLevel p_219735_, LivingEntity p_219736_) -
Uses of ServerLevel in net.minecraft.world.entity.projectile
Modifier and TypeMethodDescriptionThrownEnderpearl.changeDimension
(ServerLevel p_37506_, ITeleporter teleporter) -
Uses of ServerLevel in net.minecraft.world.entity.raid
Modifier and TypeFieldDescriptionprivate final ServerLevel
Raid.level
private final ServerLevel
Raids.level
Modifier and TypeMethodDescriptionprivate 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
-
Uses of ServerLevel in net.minecraft.world.item
Modifier and TypeMethodDescriptionstatic void
MapItem.renderBiomePreviewMap
(ServerLevel p_42851_, ItemStack p_42852_) 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.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_) 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_) default void
ChangeOverTimeBlock.applyChangeOverTime
(BlockState p_220953_, ServerLevel p_220954_, BlockPos p_220955_, RandomSource p_220956_) static void
SculkCatalystBlock.bloom
(ServerLevel p_222095_, BlockPos p_222096_, BlockState p_222097_, RandomSource p_222098_) private static boolean
PointedDripstoneBlock.canTipGrow
(BlockState p_154195_, ServerLevel p_154196_, BlockPos p_154197_) protected void
DispenserBlock.dispenseFrom
(ServerLevel p_52665_, BlockPos p_52666_) protected void
DropperBlock.dispenseFrom
(ServerLevel p_52944_, BlockPos p_52945_) static Fluid
PointedDripstoneBlock.getCauldronFillFluidType
(ServerLevel p_221850_, BlockPos p_221851_) 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_) default <T extends BlockEntity>
GameEventListenerEntityBlock.getListener
(ServerLevel p_221121_, T p_221122_) <T extends BlockEntity>
GameEventListenerSculkCatalystBlock.getListener
(ServerLevel p_222092_, T p_222093_) <T extends BlockEntity>
GameEventListenerSculkSensorBlock.getListener
(ServerLevel p_222123_, T p_222124_) <T extends BlockEntity>
GameEventListenerSculkShriekerBlock.getListener
(ServerLevel p_222165_, T p_222166_) 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
(BlockState p_51930_, ServerLevel p_51931_, ItemStack p_51932_, BlockPos p_51933_) static void
PointedDripstoneBlock.maybeTransferFluid
(BlockState p_221860_, ServerLevel p_221861_, BlockPos p_221862_, float p_221863_) default void
ChangeOverTimeBlock.onRandomTick
(BlockState p_220948_, ServerLevel p_220949_, BlockPos p_220950_, RandomSource p_220951_) 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
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_) void
BambooSaplingBlock.randomTick
(BlockState p_220753_, ServerLevel p_220754_, BlockPos p_220755_, RandomSource p_220756_) void
BambooStalkBlock.randomTick
(BlockState p_261931_, ServerLevel p_261751_, BlockPos p_261616_, RandomSource p_261766_) void
BeetrootBlock.randomTick
(BlockState p_220778_, ServerLevel p_220779_, BlockPos p_220780_, RandomSource p_220781_) void
BuddingAmethystBlock.randomTick
(BlockState p_220898_, ServerLevel p_220899_, BlockPos p_220900_, RandomSource p_220901_) void
CactusBlock.randomTick
(BlockState p_220913_, ServerLevel p_220914_, BlockPos p_220915_, RandomSource p_220916_) void
ChorusFlowerBlock.randomTick
(BlockState p_220980_, ServerLevel p_220981_, BlockPos p_220982_, RandomSource p_220983_) void
CocoaBlock.randomTick
(BlockState p_221000_, ServerLevel p_221001_, BlockPos p_221002_, RandomSource p_221003_) void
CropBlock.randomTick
(BlockState p_221050_, ServerLevel p_221051_, BlockPos p_221052_, RandomSource p_221053_) void
FarmBlock.randomTick
(BlockState p_221139_, ServerLevel p_221140_, BlockPos p_221141_, RandomSource p_221142_) void
FrostedIceBlock.randomTick
(BlockState p_221238_, ServerLevel p_221239_, BlockPos p_221240_, RandomSource p_221241_) void
GrowingPlantHeadBlock.randomTick
(BlockState p_221350_, ServerLevel p_221351_, BlockPos p_221352_, RandomSource p_221353_) void
IceBlock.randomTick
(BlockState p_221355_, ServerLevel p_221356_, BlockPos p_221357_, RandomSource p_221358_) void
LeavesBlock.randomTick
(BlockState p_221379_, ServerLevel p_221380_, BlockPos p_221381_, RandomSource p_221382_) void
LiquidBlock.randomTick
(BlockState p_221410_, ServerLevel p_221411_, BlockPos p_221412_, RandomSource p_221413_) void
MagmaBlock.randomTick
(BlockState p_221420_, ServerLevel p_221421_, BlockPos p_221422_, RandomSource p_221423_) void
MangrovePropaguleBlock.randomTick
(BlockState p_221488_, ServerLevel p_221489_, BlockPos p_221490_, RandomSource p_221491_) void
MushroomBlock.randomTick
(BlockState p_221784_, ServerLevel p_221785_, BlockPos p_221786_, RandomSource p_221787_) void
NetherPortalBlock.randomTick
(BlockState p_221799_, ServerLevel p_221800_, BlockPos p_221801_, RandomSource p_221802_) void
NetherWartBlock.randomTick
(BlockState p_221806_, ServerLevel p_221807_, BlockPos p_221808_, RandomSource p_221809_) void
NyliumBlock.randomTick
(BlockState p_221835_, ServerLevel p_221836_, BlockPos p_221837_, RandomSource p_221838_) void
PointedDripstoneBlock.randomTick
(BlockState p_221883_, ServerLevel p_221884_, BlockPos p_221885_, RandomSource p_221886_) void
RedStoneOreBlock.randomTick
(BlockState p_221918_, ServerLevel p_221919_, BlockPos p_221920_, RandomSource p_221921_) void
SaplingBlock.randomTick
(BlockState p_222011_, ServerLevel p_222012_, BlockPos p_222013_, RandomSource p_222014_) void
SnowLayerBlock.randomTick
(BlockState p_222448_, ServerLevel p_222449_, BlockPos p_222450_, RandomSource p_222451_) void
SpreadingSnowyDirtBlock.randomTick
(BlockState p_222508_, ServerLevel p_222509_, BlockPos p_222510_, RandomSource p_222511_) void
StairBlock.randomTick
(BlockState p_222523_, ServerLevel p_222524_, BlockPos p_222525_, RandomSource p_222526_) void
StemBlock.randomTick
(BlockState p_222538_, ServerLevel p_222539_, BlockPos p_222540_, RandomSource p_222541_) void
SugarCaneBlock.randomTick
(BlockState p_222548_, ServerLevel p_222549_, BlockPos p_222550_, RandomSource p_222551_) void
SweetBerryBushBlock.randomTick
(BlockState p_222563_, ServerLevel p_222564_, BlockPos p_222565_, RandomSource p_222566_) void
TurtleEggBlock.randomTick
(BlockState p_222644_, ServerLevel p_222645_, BlockPos p_222646_, RandomSource p_222647_) void
VineBlock.randomTick
(BlockState p_222655_, ServerLevel p_222656_, BlockPos p_222657_, RandomSource p_222658_) void
WeatheringCopperFullBlock.randomTick
(BlockState p_222665_, ServerLevel p_222666_, BlockPos p_222667_, RandomSource p_222668_) void
WeatheringCopperSlabBlock.randomTick
(BlockState p_222670_, ServerLevel p_222671_, BlockPos p_222672_, RandomSource p_222673_) void
WeatheringCopperStairBlock.randomTick
(BlockState p_222675_, ServerLevel p_222676_, BlockPos p_222677_, RandomSource p_222678_) void
DropExperienceBlock.spawnAfterBreak
(BlockState p_221086_, ServerLevel p_221087_, BlockPos p_221088_, ItemStack p_221089_, boolean p_221090_) void
InfestedBlock.spawnAfterBreak
(BlockState p_221360_, ServerLevel p_221361_, BlockPos p_221362_, ItemStack p_221363_, boolean p_221364_) void
RedStoneOreBlock.spawnAfterBreak
(BlockState p_221907_, ServerLevel p_221908_, BlockPos p_221909_, ItemStack p_221910_, boolean p_221911_) void
SculkCatalystBlock.spawnAfterBreak
(BlockState p_222109_, ServerLevel p_222110_, BlockPos p_222111_, ItemStack p_222112_, boolean p_222113_) void
SculkSensorBlock.spawnAfterBreak
(BlockState p_222142_, ServerLevel p_222143_, BlockPos p_222144_, ItemStack p_222145_, boolean p_222146_) void
SculkShriekerBlock.spawnAfterBreak
(BlockState p_222192_, ServerLevel p_222193_, BlockPos p_222194_, ItemStack p_222195_, boolean p_222196_) 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_) void
AbstractCauldronBlock.tick
(BlockState p_220702_, ServerLevel p_220703_, BlockPos p_220704_, RandomSource p_220705_) void
BambooStalkBlock.tick
(BlockState p_261612_, ServerLevel p_261527_, BlockPos p_261846_, RandomSource p_261638_) void
BarrelBlock.tick
(BlockState p_220758_, ServerLevel p_220759_, BlockPos p_220760_, RandomSource p_220761_) void
BasePressurePlateBlock.tick
(BlockState p_220768_, ServerLevel p_220769_, BlockPos p_220770_, RandomSource p_220771_) void
BigDripleafBlock.tick
(BlockState p_220798_, ServerLevel p_220799_, BlockPos p_220800_, RandomSource p_220801_) void
BigDripleafStemBlock.tick
(BlockState p_220813_, ServerLevel p_220814_, BlockPos p_220815_, RandomSource p_220816_) void
BubbleColumnBlock.tick
(BlockState p_220888_, ServerLevel p_220889_, BlockPos p_220890_, RandomSource p_220891_) void
ButtonBlock.tick
(BlockState p_220903_, ServerLevel p_220904_, BlockPos p_220905_, RandomSource p_220906_) void
CactusBlock.tick
(BlockState p_220908_, ServerLevel p_220909_, BlockPos p_220910_, RandomSource p_220911_) void
ChestBlock.tick
(BlockState p_220958_, ServerLevel p_220959_, BlockPos p_220960_, RandomSource p_220961_) void
ChorusFlowerBlock.tick
(BlockState p_220975_, ServerLevel p_220976_, BlockPos p_220977_, RandomSource p_220978_) void
ChorusPlantBlock.tick
(BlockState p_220985_, ServerLevel p_220986_, BlockPos p_220987_, RandomSource p_220988_) void
CommandBlock.tick
(BlockState p_221005_, ServerLevel p_221006_, BlockPos p_221007_, RandomSource p_221008_) void
ComparatorBlock.tick
(BlockState p_221010_, ServerLevel p_221011_, BlockPos p_221012_, RandomSource p_221013_) void
ComposterBlock.tick
(BlockState p_221015_, ServerLevel p_221016_, BlockPos p_221017_, RandomSource p_221018_) void
CoralBlock.tick
(BlockState p_221020_, ServerLevel p_221021_, BlockPos p_221022_, RandomSource p_221023_) void
CoralFanBlock.tick
(BlockState p_221025_, ServerLevel p_221026_, BlockPos p_221027_, RandomSource p_221028_) void
CoralPlantBlock.tick
(BlockState p_221030_, ServerLevel p_221031_, BlockPos p_221032_, RandomSource p_221033_) void
CoralWallFanBlock.tick
(BlockState p_221035_, ServerLevel p_221036_, BlockPos p_221037_, RandomSource p_221038_) void
DetectorRailBlock.tick
(BlockState p_221060_, ServerLevel p_221061_, BlockPos p_221062_, RandomSource p_221063_) void
DiodeBlock.tick
(BlockState p_221065_, ServerLevel p_221066_, BlockPos p_221067_, RandomSource p_221068_) void
DirtPathBlock.tick
(BlockState p_221070_, ServerLevel p_221071_, BlockPos p_221072_, RandomSource p_221073_) void
DispenserBlock.tick
(BlockState p_221075_, ServerLevel p_221076_, BlockPos p_221077_, RandomSource p_221078_) void
EnderChestBlock.tick
(BlockState p_221112_, ServerLevel p_221113_, BlockPos p_221114_, RandomSource p_221115_) void
FallingBlock.tick
(BlockState p_221124_, ServerLevel p_221125_, BlockPos p_221126_, RandomSource p_221127_) void
FarmBlock.tick
(BlockState p_221134_, ServerLevel p_221135_, BlockPos p_221136_, RandomSource p_221137_) void
FireBlock.tick
(BlockState p_221160_, ServerLevel p_221161_, BlockPos p_221162_, RandomSource p_221163_) void
FrogspawnBlock.tick
(BlockState p_221194_, ServerLevel p_221195_, BlockPos p_221196_, RandomSource p_221197_) void
FrostedIceBlock.tick
(BlockState p_221233_, ServerLevel p_221234_, BlockPos p_221235_, RandomSource p_221236_) void
GrowingPlantBlock.tick
(BlockState p_221280_, ServerLevel p_221281_, BlockPos p_221282_, RandomSource p_221283_) void
LeavesBlock.tick
(BlockState p_221369_, ServerLevel p_221370_, BlockPos p_221371_, RandomSource p_221372_) void
LecternBlock.tick
(BlockState p_221388_, ServerLevel p_221389_, BlockPos p_221390_, RandomSource p_221391_) void
LightningRodBlock.tick
(BlockState p_221400_, ServerLevel p_221401_, BlockPos p_221402_, RandomSource p_221403_) void
MagmaBlock.tick
(BlockState p_221415_, ServerLevel p_221416_, BlockPos p_221417_, RandomSource p_221418_) void
ObserverBlock.tick
(BlockState p_221840_, ServerLevel p_221841_, BlockPos p_221842_, RandomSource p_221843_) void
PointedDripstoneBlock.tick
(BlockState p_221865_, ServerLevel p_221866_, BlockPos p_221867_, RandomSource p_221868_) void
RedstoneLampBlock.tick
(BlockState p_221937_, ServerLevel p_221938_, BlockPos p_221939_, RandomSource p_221940_) void
RedstoneTorchBlock.tick
(BlockState p_221949_, ServerLevel p_221950_, BlockPos p_221951_, RandomSource p_221952_) void
ScaffoldingBlock.tick
(BlockState p_222019_, ServerLevel p_222020_, BlockPos p_222021_, RandomSource p_222022_) void
SculkCatalystBlock.tick
(BlockState p_222104_, ServerLevel p_222105_, BlockPos p_222106_, RandomSource p_222107_) void
SculkSensorBlock.tick
(BlockState p_222137_, ServerLevel p_222138_, BlockPos p_222139_, RandomSource p_222140_) void
SculkShriekerBlock.tick
(BlockState p_222187_, ServerLevel p_222188_, BlockPos p_222189_, RandomSource p_222190_) void
SoulSandBlock.tick
(BlockState p_222457_, ServerLevel p_222458_, BlockPos p_222459_, RandomSource p_222460_) void
StairBlock.tick
(BlockState p_222513_, ServerLevel p_222514_, BlockPos p_222515_, RandomSource p_222516_) void
SugarCaneBlock.tick
(BlockState p_222543_, ServerLevel p_222544_, BlockPos p_222545_, RandomSource p_222546_) void
TargetBlock.tick
(BlockState p_222588_, ServerLevel p_222589_, BlockPos p_222590_, RandomSource p_222591_) void
TripWireBlock.tick
(BlockState p_222598_, ServerLevel p_222599_, BlockPos p_222600_, RandomSource p_222601_) 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 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_) AbstractFurnaceBlockEntity.getRecipesToAwardAndPopExperience
(ServerLevel p_154996_, Vec3 p_154997_) boolean
SculkCatalystBlockEntity.handleGameEvent
(ServerLevel p_249401_, GameEvent p_251680_, GameEvent.Context p_248816_, Vec3 p_248534_) private static boolean
TheEndGatewayBlockEntity.isChunkEmpty
(ServerLevel p_155816_, Vec3 p_155817_) boolean
StructureBlockEntity.loadStructure
(ServerLevel p_59843_) boolean
StructureBlockEntity.loadStructure
(ServerLevel p_59845_, boolean p_59846_) boolean
StructureBlockEntity.loadStructure
(ServerLevel p_59848_, boolean p_59849_, StructureTemplate p_59850_) void
SculkSensorBlockEntity.onSignalReceive
(ServerLevel p_222803_, GameEventListener p_222804_, BlockPos p_222805_, GameEvent p_222806_, Entity p_222807_, Entity p_222808_, float p_222809_) void
SculkShriekerBlockEntity.onSignalReceive
(ServerLevel p_222848_, GameEventListener p_222849_, BlockPos p_222850_, GameEvent p_222851_, Entity p_222852_, Entity p_222853_, float p_222854_) boolean
SculkSensorBlockEntity.shouldListen
(ServerLevel p_222811_, GameEventListener p_222812_, BlockPos p_222813_, GameEvent p_222814_, GameEvent.Context p_222815_) boolean
SculkShriekerBlockEntity.shouldListen
(ServerLevel p_222856_, GameEventListener p_222857_, BlockPos p_222858_, GameEvent p_222859_, GameEvent.Context p_222860_) 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.grower
Modifier and TypeMethodDescriptionboolean
AbstractMegaTreeGrower.growTree
(ServerLevel p_222891_, ChunkGenerator p_222892_, BlockPos p_222893_, BlockState p_222894_, RandomSource p_222895_) boolean
AbstractTreeGrower.growTree
(ServerLevel p_222905_, ChunkGenerator p_222906_, BlockPos p_222907_, BlockState p_222908_, RandomSource p_222909_) boolean
AbstractMegaTreeGrower.placeMega
(ServerLevel p_222897_, ChunkGenerator p_222898_, BlockPos p_222899_, BlockState p_222900_, RandomSource p_222901_, int p_222902_, int p_222903_) -
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_) void
BlockBehaviour.randomTick
(BlockState p_222954_, ServerLevel p_222955_, BlockPos p_222956_, RandomSource p_222957_) Deprecated.void
BlockBehaviour.BlockStateBase.spawnAfterBreak
(ServerLevel p_222968_, BlockPos p_222969_, ItemStack p_222970_, boolean p_222971_) void
BlockBehaviour.spawnAfterBreak
(BlockState p_222949_, ServerLevel p_222950_, BlockPos p_222951_, ItemStack p_222952_, boolean p_222953_) Deprecated.void
BlockBehaviour.BlockStateBase.tick
(ServerLevel p_222964_, BlockPos p_222965_, RandomSource p_222966_) void
BlockBehaviour.tick
(BlockState p_222945_, ServerLevel p_222946_, BlockPos p_222947_, RandomSource p_222948_) Deprecated. -
Uses of ServerLevel in net.minecraft.world.level.chunk
Modifier and TypeMethodDescriptionprivate <T extends BlockEntity>
voidLevelChunk.addGameEventListener
(T p_223416_, ServerLevel p_223417_) CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,
ChunkHolder.ChunkLoadingFailure>> ChunkStatus.GenerationTask.doWork
(ChunkStatus p_223371_, Executor p_223372_, ServerLevel p_223373_, ChunkGenerator p_223374_, StructureTemplateManager p_223375_, ThreadedLevelLightEngine p_223376_, Function<ChunkAccess, CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder.ChunkLoadingFailure>>> p_223377_, List<ChunkAccess> p_223378_, ChunkAccess p_223379_, boolean p_223380_) CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,
ChunkHolder.ChunkLoadingFailure>> ChunkStatus.LoadingTask.doWork
(ChunkStatus p_223382_, ServerLevel p_223383_, StructureTemplateManager p_223384_, ThreadedLevelLightEngine p_223385_, Function<ChunkAccess, CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder.ChunkLoadingFailure>>> p_223386_, ChunkAccess p_223387_) default CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,
ChunkHolder.ChunkLoadingFailure>> ChunkStatus.SimpleGenerationTask.doWork
(ChunkStatus p_223389_, Executor p_223390_, ServerLevel p_223391_, ChunkGenerator p_223392_, StructureTemplateManager p_223393_, ThreadedLevelLightEngine p_223394_, Function<ChunkAccess, CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder.ChunkLoadingFailure>>> p_223395_, List<ChunkAccess> p_223396_, ChunkAccess p_223397_, boolean p_223398_) void
ChunkStatus.SimpleGenerationTask.doWork
(ChunkStatus p_156323_, ServerLevel p_156324_, ChunkGenerator p_156325_, List<ChunkAccess> p_156326_, ChunkAccess p_156327_) ChunkGenerator.findNearestMapStructure
(ServerLevel p_223038_, HolderSet<Structure> p_223039_, BlockPos p_223040_, int p_223041_, boolean p_223042_) CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,
ChunkHolder.ChunkLoadingFailure>> ChunkStatus.generate
(Executor p_223280_, ServerLevel p_223281_, ChunkGenerator p_223282_, StructureTemplateManager p_223283_, ThreadedLevelLightEngine p_223284_, Function<ChunkAccess, CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder.ChunkLoadingFailure>>> p_223285_, List<ChunkAccess> p_223286_, boolean p_223287_) ChunkGenerator.getNearestGeneratedStructure
(Set<Holder<Structure>> p_223182_, ServerLevel p_223183_, StructureManager p_223184_, BlockPos p_223185_, boolean p_223186_, ConcentricRingsStructurePlacement p_223187_) CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,
ChunkHolder.ChunkLoadingFailure>> ChunkStatus.load
(ServerLevel p_223245_, StructureTemplateManager p_223246_, ThreadedLevelLightEngine p_223247_, Function<ChunkAccess, CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder.ChunkLoadingFailure>>> p_223248_, ChunkAccess p_223249_) 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.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_, 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
(ServerLevel p_196924_, Path p_196925_, com.mojang.datafixers.DataFixer p_196926_, boolean p_196927_, 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_64078_, long p_64079_, CompoundTag p_64080_) -
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_, GameEvent p_251491_, GameEvent.Context p_249681_, Vec3 p_251048_) void
DynamicGameEventListener.move
(ServerLevel p_223642_) void
DynamicGameEventListener.remove
(ServerLevel p_223635_) ModifierConstructorDescriptionEuclideanGameEventListenerRegistry
(ServerLevel p_251510_) GameEventDispatcher
(ServerLevel p_251921_) -
Uses of ServerLevel in net.minecraft.world.level.gameevent.vibrations
Modifier and TypeMethodDescriptionvoid
VibrationListener.forceGameEvent
(ServerLevel p_250726_, GameEvent p_251544_, GameEvent.Context p_250365_, Vec3 p_249607_) VibrationInfo.getEntity
(ServerLevel p_249184_) VibrationInfo.getProjectileOwner
(ServerLevel p_249217_) boolean
VibrationListener.handleGameEvent
(ServerLevel p_251930_, GameEvent p_250161_, GameEvent.Context p_251443_, Vec3 p_250045_) void
VibrationListener.VibrationListenerConfig.onSignalReceive
(ServerLevel p_223865_, GameEventListener p_223866_, BlockPos p_223867_, GameEvent p_223868_, Entity p_223869_, Entity p_223870_, float p_223871_) void
VibrationListener.scheduleVibration
(ServerLevel p_250210_, GameEvent p_251063_, GameEvent.Context p_249354_, Vec3 p_250310_, Vec3 p_249553_) boolean
VibrationListener.VibrationListenerConfig.shouldListen
(ServerLevel p_223872_, GameEventListener p_223873_, BlockPos p_223874_, GameEvent p_223875_, GameEvent.Context p_223876_) -
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 TypeMethodDescriptionstatic PortalInfo
PortalShape.createPortalInfo
(ServerLevel p_259301_, BlockUtil.FoundRectangle p_259931_, Direction.Axis p_259901_, Vec3 p_259630_, Entity p_259166_, Vec3 p_260043_, float p_259853_, float p_259667_) private static Vec3
PortalShape.findCollisionFreePosition
(Vec3 p_260315_, ServerLevel p_259704_, Entity p_259626_, EntityDimensions p_259816_) -
Uses of ServerLevel in net.minecraft.world.level.storage.loot
Modifier and TypeFieldDescriptionprivate final ServerLevel
LootContext.Builder.level
private final ServerLevel
LootContext.level
ModifierConstructorDescriptionBuilder
(ServerLevel p_78961_) (package private)
LootContext
(RandomSource p_230900_, float p_230901_, ServerLevel p_230902_, Function<ResourceLocation, LootTable> p_230903_, Function<ResourceLocation, LootItemCondition> p_230904_, Map<LootContextParam<?>, Object> p_230905_, Map<ResourceLocation, LootContext.DynamicDrop> p_230906_) private
LootContext
(RandomSource rand, float luckIn, ServerLevel worldIn, Function<ResourceLocation, LootTable> lootTableManagerIn, Function<ResourceLocation, LootItemCondition> p_i225885_5_, Map<LootContextParam<?>, Object> parametersIn, Map<ResourceLocation, LootContext.DynamicDrop> conditionsIn, ResourceLocation queriedLootTableId) -
Uses of ServerLevel in net.minecraftforge.client
-
Uses of ServerLevel in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault boolean
IForgeBlock.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
IForgeBlockState.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.minecraftforge.common.util
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.static FakePlayer
FakePlayerFactory.getMinecraft
(ServerLevel level) default @Nullable PortalInfo
ITeleporter.getPortalInfo
(Entity entity, ServerLevel destWorld, Function<ServerLevel, PortalInfo> defaultPortalInfo) Gets the PortalInfo.default Entity
ITeleporter.placeEntity
(Entity entity, ServerLevel currentWorld, ServerLevel destWorld, float yaw, Function<Boolean, Entity> repositionEntity) Called to handle placing the entity in the new world.default boolean
ITeleporter.playTeleportSound
(ServerPlayer player, ServerLevel sourceWorld, ServerLevel destWorld) Called when vanilla wants to play the portal sound after teleporting.static void
FakePlayerFactory.unloadLevel
(ServerLevel level) Modifier and TypeMethodDescriptiondefault @Nullable PortalInfo
ITeleporter.getPortalInfo
(Entity entity, ServerLevel destWorld, Function<ServerLevel, PortalInfo> defaultPortalInfo) Gets the PortalInfo. -
Uses of ServerLevel in net.minecraftforge.common.world
Modifier and TypeMethodDescriptionstatic boolean
ForgeChunkManager.forceChunk
(ServerLevel level, String modId, UUID owner, int chunkX, int chunkZ, boolean add, boolean ticking) Forces a chunk to be loaded for the given mod with the "owner" of the ticket being a given UUID.static boolean
ForgeChunkManager.forceChunk
(ServerLevel level, String modId, BlockPos owner, int chunkX, int chunkZ, boolean add, boolean ticking) Forces a chunk to be loaded for the given mod with the "owner" of the ticket being a given block position.static boolean
ForgeChunkManager.forceChunk
(ServerLevel level, String modId, Entity owner, int chunkX, int chunkZ, boolean add, boolean ticking) Forces a chunk to be loaded for the given mod with the "owner" of the ticket being the UUID of the given entity.private static <T extends Comparable<? super T>>
booleanForgeChunkManager.forceChunk
(ServerLevel level, String modId, T owner, int chunkX, int chunkZ, boolean add, boolean ticking, TicketType<ForgeChunkManager.TicketOwner<T>> type, Function<ForcedChunksSavedData, ForgeChunkManager.TicketTracker<T>> ticketGetter) Forces a chunk to be loaded for the given mod with the given "owner".private static <T extends Comparable<? super T>>
voidForgeChunkManager.forceChunk
(ServerLevel level, ChunkPos pos, TicketType<ForgeChunkManager.TicketOwner<T>> type, ForgeChunkManager.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.static boolean
ForgeChunkManager.hasForcedChunks
(ServerLevel level) Checks if a level has any forced chunks.private static <T extends Comparable<? super T>>
voidForgeChunkManager.reinstatePersistentChunks
(ServerLevel level, TicketType<ForgeChunkManager.TicketOwner<T>> type, Map<ForgeChunkManager.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
ForgeChunkManager.reinstatePersistentChunks
(ServerLevel level, ForcedChunksSavedData saveData) Reinstates forge's forced chunks when vanilla initially loads a level and reinstates their forced chunks.void
ForgeChunkManager.LoadingValidationCallback.validateTickets
(ServerLevel level, ForgeChunkManager.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.minecraftforge.event
Modifier and TypeMethodDescriptionstatic void
ForgeEventFactory.fireChunkTicketLevelUpdated
(ServerLevel level, long chunkPos, int oldTicketLevel, int newTicketLevel, @Nullable ChunkHolder chunkHolder) static void
ForgeEventFactory.fireChunkUnWatch
(ServerPlayer entity, ChunkPos chunkpos, ServerLevel level) static void
ForgeEventFactory.fireChunkWatch
(ServerPlayer entity, LevelChunk chunk, ServerLevel level) static long
ForgeEventFactory.onSleepFinished
(ServerLevel level, long newTime, long minTime) -
Uses of ServerLevel in net.minecraftforge.event.level
Modifier and TypeFieldDescriptionprivate final ServerLevel
ChunkTicketLevelUpdatedEvent.level
private final ServerLevel
ChunkWatchEvent.level
Modifier and TypeMethodDescriptionChunkTicketLevelUpdatedEvent.getLevel()
Returns the server level containing the chunk.ChunkWatchEvent.getLevel()
Returns the server level containing the chunk.ModifierConstructorDescriptionChunkTicketLevelUpdatedEvent
(ServerLevel level, long chunkPos, int oldTicketLevel, int newTicketLevel, @Nullable ChunkHolder chunkHolder) ChunkWatchEvent
(ServerPlayer player, ChunkPos pos, 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.minecraftforge.server.command
Modifier and TypeMethodDescriptionprivate static int
GenerateCommand.execute
(CommandSourceStack source, BlockPos pos, int count, ServerLevel dim, int interval) private static int
TPSCommand.sendTime
(CommandSourceStack cs, ServerLevel dim) ModifierConstructorDescriptionChunkGenWorker
(CommandSourceStack listener, BlockPos start, int total, ServerLevel dim, int interval)