Uses of Class
net.minecraft.server.world.ServerWorld
Package
Description
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
-
Uses of ServerWorld in net.minecraft.advancement.criterion
Modifier and TypeMethodDescriptionboolean
PlacedBlockCriterion.Conditions.matches
(BlockState state, BlockPos pos, ServerWorld world, ItemStack stack) boolean
TravelCriterion.Conditions.matches
(ServerWorld world, Vec3d startPos, Vec3d endPos) boolean
ItemCriterion.Conditions.test
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack) -
Uses of ServerWorld in net.minecraft.block
Modifier and TypeMethodDescriptionstatic void
SculkCatalystBlock.bloom
(ServerWorld world, BlockPos pos, BlockState state, Random random) private static boolean
PointedDripstoneBlock.canGrow
(BlockState state, ServerWorld world, BlockPos pos) static BlockState
ComposterBlock.compost
(BlockState state, ServerWorld world, ItemStack stack, BlockPos pos) protected void
DispenserBlock.dispense
(ServerWorld world, BlockPos pos) protected void
DropperBlock.dispense
(ServerWorld world, BlockPos pos) private void
StructureBlock.doAction
(ServerWorld world, StructureBlockBlockEntity blockEntity) static void
PointedDripstoneBlock.dripTick
(BlockState state, ServerWorld world, BlockPos pos, float dripChance) protected void
Block.dropExperience
(ServerWorld world, BlockPos pos, int size) Drops experience orbs.protected void
Block.dropExperienceWhenMined
(ServerWorld world, BlockPos pos, ItemStack tool, IntProvider experience) Drops experience orbs.void
SaplingBlock.generate
(ServerWorld world, BlockPos pos, BlockState state, Random random) static Fluid
PointedDripstoneBlock.getDripFluid
(ServerWorld world, BlockPos pos) Block.getDroppedStacks
(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity) Block.getDroppedStacks
(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack stack) default <T extends BlockEntity>
@Nullable GameEventListenerBlockEntityProvider.getGameEventListener
(ServerWorld world, T blockEntity) Returns the game event listener for the block's block entity, ornull
if the block entity does not listen to game events.<T extends BlockEntity>
@Nullable GameEventListenerSculkCatalystBlock.getGameEventListener
(ServerWorld world, T blockEntity) Returns the game event listener for the block's block entity, ornull
if the block entity does not listen to game events.<T extends BlockEntity>
@Nullable GameEventListenerSculkSensorBlock.getGameEventListener
(ServerWorld world, T blockEntity) Returns the game event listener for the block's block entity, ornull
if the block entity does not listen to game events.<T extends BlockEntity>
@Nullable GameEventListenerSculkShriekerBlock.getGameEventListener
(ServerWorld world, T blockEntity) Returns the game event listener for the block's block entity, ornull
if the block entity does not listen to game events.void
AbstractPlantBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
AbstractPlantStemBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
AzaleaBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
BambooBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
BambooSaplingBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
BigDripleafBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
BigDripleafStemBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
CaveVinesBodyBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
CaveVinesHeadBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
CocoaBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
CropBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
FernBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
Fertilizable.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
FungusBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
GlowLichenBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
GrassBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
MangroveLeavesBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
MossBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
MushroomPlantBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
NetherrackBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
NyliumBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
PropaguleBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
RootedDirtBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SaplingBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SeagrassBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SeaPickleBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SmallDripleafBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
StemBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SweetBerryBushBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
TallFlowerBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) private void
FrogspawnBlock.hatch
(ServerWorld world, BlockPos pos, Random random) void
AbstractBlock.AbstractBlockState.onStacksDropped
(ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) void
AbstractBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Deprecated.void
InfestedBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
OreBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
RedstoneOreBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
SculkCatalystBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
SculkSensorBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
SculkShriekerBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
SpawnerBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
AbstractBlock.AbstractBlockState.randomTick
(ServerWorld world, BlockPos pos, Random random) void
AbstractBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) void
AbstractPlantStemBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
BambooBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
BambooSaplingBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
BeetrootsBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
BuddingAmethystBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
CactusBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
ChorusFlowerBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
CocoaBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
CropBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
FarmlandBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
FluidBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
FrostedIceBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
IceBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
LeavesBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
MagmaBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
MushroomPlantBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
NetherPortalBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
NetherWartBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
NyliumBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
OxidizableBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
OxidizableSlabBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
OxidizableStairsBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
PointedDripstoneBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
PropaguleBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
RedstoneOreBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SaplingBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SnowBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SpreadableBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
StairsBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
StemBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SugarCaneBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SweetBerryBushBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
TurtleEggBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
VineBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
AbstractBlock.AbstractBlockState.scheduledTick
(ServerWorld world, BlockPos pos, Random random) void
AbstractBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) void
AbstractButtonBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
AbstractCauldronBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
AbstractPlantPartBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
AbstractPressurePlateBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
AbstractRedstoneGateBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BambooBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BarrelBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BigDripleafBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BigDripleafStemBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BubbleColumnBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CactusBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ChestBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ChorusFlowerBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ChorusPlantBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CommandBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ComparatorBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ComposterBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CoralBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CoralBlockBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CoralFanBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CoralWallFanBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
DetectorRailBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
DirtPathBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
DispenserBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
EnderChestBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FallingBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FarmlandBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FireBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FrogspawnBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FrostedIceBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
LeavesBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
LecternBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
LightningRodBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
MagmaBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ObserverBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
PointedDripstoneBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
RedstoneLampBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
RedstoneTorchBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ScaffoldingBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SculkCatalystBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SculkSensorBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SculkShriekerBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SoulSandBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
StairsBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SugarCaneBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
TargetBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
TripwireBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
TripwireHookBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.private static void
PointedDripstoneBlock.spawnFallingBlock
(BlockState state, ServerWorld world, BlockPos pos) private void
InfestedBlock.spawnSilverfish
(ServerWorld world, BlockPos pos) private void
FrogspawnBlock.spawnTadpoles
(ServerWorld world, BlockPos pos, Random random) default void
Degradable.tickDegradation
(BlockState state, ServerWorld world, BlockPos pos, Random random) default void
Degradable.tryDegrade
(BlockState state, ServerWorld world, BlockPos pos, Random random) static void
PointedDripstoneBlock.tryGrow
(BlockState state, ServerWorld world, BlockPos pos, Random random) private static void
PointedDripstoneBlock.tryGrow
(ServerWorld world, BlockPos pos, Direction direction) private static void
PointedDripstoneBlock.tryGrowStalagmite
(ServerWorld world, BlockPos pos) boolean
MushroomPlantBlock.trySpawningBigMushroom
(ServerWorld world, BlockPos pos, BlockState state, Random random) -
Uses of ServerWorld in net.minecraft.block.dispenser
Modifier and TypeMethodDescriptionprivate static boolean
ShearsDispenserBehavior.tryShearBlock
(ServerWorld world, BlockPos pos) private static boolean
ShearsDispenserBehavior.tryShearEntity
(ServerWorld world, BlockPos pos) -
Uses of ServerWorld in net.minecraft.block.entity
Modifier and TypeMethodDescriptionvoid
SculkSensorBlockEntity.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.void
SculkShriekerBlockEntity.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.boolean
SculkSensorBlockEntity.accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
SculkShriekerBlockEntity.accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.private static boolean
SculkShriekerWarningManager.canIncreaseWarningLevel
(ServerWorld serverWorld, BlockPos blockPos) private boolean
SculkShriekerBlockEntity.canWarn
(ServerWorld world) private static void
EndGatewayBlockEntity.createPortal
(ServerWorld world, BlockPos pos, EndGatewayFeatureConfig config) private static void
AbstractFurnaceBlockEntity.dropExperience
(ServerWorld world, Vec3d pos, int multiplier, float experience) private static Vec3d
EndGatewayBlockEntity.findTeleportLocation
(ServerWorld world, BlockPos pos) void
JigsawBlockEntity.generate
(ServerWorld world, int maxDepth, boolean keepJigsaws) private static List<ServerPlayerEntity>
SculkShriekerWarningManager.getPlayersInRange
(ServerWorld world, BlockPos pos) AbstractFurnaceBlockEntity.getRecipesUsedAndDropExperience
(ServerWorld world, Vec3d pos) private static boolean
EndGatewayBlockEntity.isChunkEmpty
(ServerWorld world, Vec3d pos) boolean
SculkCatalystBlockEntity.listen
(ServerWorld world, GameEvent.Message event) Listens to an incoming game event.boolean
StructureBlockBlockEntity.loadStructure
(ServerWorld world) boolean
StructureBlockBlockEntity.loadStructure
(ServerWorld world, boolean bool) boolean
StructureBlockBlockEntity.place
(ServerWorld world, boolean bool, StructureTemplate template) private static BlockPos
EndGatewayBlockEntity.setupExitPortalLocation
(ServerWorld world, BlockPos pos) Finds teleport location and creates an island to teleport to (if there is none).private void
SculkShriekerBlockEntity.shriek
(ServerWorld world, @Nullable Entity entity) void
SculkShriekerBlockEntity.shriek
(ServerWorld world, @Nullable ServerPlayerEntity player) private boolean
SculkShriekerBlockEntity.trySpawnWarden
(ServerWorld world) private boolean
SculkShriekerBlockEntity.trySyncWarningLevel
(ServerWorld world, ServerPlayerEntity player) void
SculkShriekerBlockEntity.warn
(ServerWorld world) static OptionalInt
SculkShriekerWarningManager.warnNearbyPlayers
(ServerWorld serverWorld, BlockPos blockPos, ServerPlayerEntity serverPlayerEntity) -
Uses of ServerWorld in net.minecraft.block.sapling
Modifier and TypeMethodDescriptionboolean
LargeTreeSaplingGenerator.generate
(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random) boolean
SaplingGenerator.generate
(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random) boolean
LargeTreeSaplingGenerator.generateLargeTree
(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random, int x, int z) -
Uses of ServerWorld in net.minecraft.client.gui.hud
-
Uses of ServerWorld in net.minecraft.client.render.debug
Modifier and TypeMethodDescriptionboolean
GameEventDebugRenderer.Listener.listen
(ServerWorld world, GameEvent.Message event) Listens to an incoming game event. -
Uses of ServerWorld in net.minecraft.command
Modifier and TypeMethodDescriptionprivate void
EntitySelector.appendEntitiesFromWorld
(List<Entity> result, ServerWorld world, Vec3d pos, Predicate<Entity> predicate) -
Uses of ServerWorld in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic ServerWorld
DimensionArgumentType.getDimensionArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) Modifier and TypeMethodDescriptionboolean
BlockStateArgument.setBlockState
(ServerWorld world, BlockPos pos, int flags) boolean
BlockStateArgument.test
(ServerWorld world, BlockPos pos) -
Uses of ServerWorld in net.minecraft.entity
Modifier and TypeMethodDescriptionboolean
LargeEntitySpawnHelper.Requirements.canSpawnOn
(ServerWorld world, BlockPos pos, BlockState state, BlockPos abovePos, BlockState aboveState) EntityType.create
(ServerWorld world, @Nullable NbtCompound itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) private static boolean
LargeEntitySpawnHelper.findSpawnPos
(ServerWorld world, int verticalRange, BlockPos.Mutable pos, LargeEntitySpawnHelper.Requirements requirements) protected Optional<BlockLocating.Rectangle>
Entity.getPortalRect
(ServerWorld destWorld, BlockPos destPos, boolean destIsNether, WorldBorder worldBorder) Returns the portal rect atdestPos
.protected @Nullable TeleportTarget
Entity.getTeleportTarget
(ServerWorld destination) Returns aTeleportTarget
for the entity based on its current and destination worlds, plus any nether portals that may be present.Entity.moveToWorld
(ServerWorld destination) Moves this entity to another world.ItemEntity.moveToWorld
(ServerWorld destination) Moves this entity to another world.boolean
Entity.onKilledOther
(ServerWorld world, LivingEntity other) Called when this entity killsother
.void
Entity.onStruckByLightning
(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.EntityType.spawn
(ServerWorld world, @Nullable NbtCompound itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) static void
ExperienceOrbEntity.spawn
(ServerWorld world, Vec3d pos, int amount) EntityType.spawnFromItemStack
(ServerWorld world, @Nullable ItemStack stack, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) LargeEntitySpawnHelper.trySpawnAt
(EntityType<T> entityType, SpawnReason reason, ServerWorld world, BlockPos pos, int tries, int horizontalRange, int verticalRange, LargeEntitySpawnHelper.Requirements requirements) private static boolean
ExperienceOrbEntity.wasMergedIntoExistingOrb
(ServerWorld world, Vec3d pos, int amount) Modifier and TypeMethodDescriptionvoid
Entity.updateEventHandler
(BiConsumer<EntityGameEventHandler<?>, ServerWorld> callback) Called when the entity is loaded to register game event handlers. -
Uses of ServerWorld in net.minecraft.entity.ai
Modifier and TypeMethodDescriptionvoid
WardenAngerManager.tick
(ServerWorld world, Predicate<Entity> suspectPredicate) private void
WardenAngerManager.updateSuspectsMap
(ServerWorld world) -
Uses of ServerWorld in net.minecraft.entity.ai.brain
Modifier and TypeMethodDescriptionprivate void
Brain.startTasks
(ServerWorld world, E entity) void
Brain.stopAllTasks
(ServerWorld world, E entity) void
Brain.tick
(ServerWorld world, E entity) private void
Brain.tickSensors
(ServerWorld world, E entity) private void
Brain.updateTasks
(ServerWorld world, E entity) -
Uses of ServerWorld in net.minecraft.entity.ai.brain.sensor
Modifier and TypeMethodDescriptionHoglinSpecificSensor.findNearestWarpedFungus
(ServerWorld world, HoglinEntity hoglin) PiglinSpecificSensor.findPiglinRepellent
(ServerWorld world, LivingEntity entity) private static boolean
PiglinSpecificSensor.isPiglinRepellent
(ServerWorld world, BlockPos pos) protected void
DummySensor.sense
(ServerWorld world, LivingEntity entity) protected void
GolemLastSeenSensor.sense
(ServerWorld world, LivingEntity entity) protected void
HoglinSpecificSensor.sense
(ServerWorld serverWorld, HoglinEntity hoglinEntity) protected void
HurtBySensor.sense
(ServerWorld world, LivingEntity entity) protected void
IsInWaterSensor.sense
(ServerWorld world, LivingEntity entity) protected void
NearestBedSensor.sense
(ServerWorld serverWorld, MobEntity mobEntity) protected void
NearestItemsSensor.sense
(ServerWorld serverWorld, MobEntity mobEntity) protected void
NearestLivingEntitiesSensor.sense
(ServerWorld world, T entity) protected void
NearestPlayersSensor.sense
(ServerWorld world, LivingEntity entity) protected void
NearestVisibleAdultSensor.sense
(ServerWorld serverWorld, PassiveEntity passiveEntity) protected void
NearestVisibleLivingEntitySensor.sense
(ServerWorld world, LivingEntity entity) protected void
PiglinBruteSpecificSensor.sense
(ServerWorld world, LivingEntity entity) protected void
PiglinSpecificSensor.sense
(ServerWorld world, LivingEntity entity) protected void
SecondaryPointsOfInterestSensor.sense
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected abstract void
Sensor.sense
(ServerWorld world, E entity) protected void
TemptationsSensor.sense
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) protected void
VillagerBabiesSensor.sense
(ServerWorld world, LivingEntity entity) protected void
WardenAttackablesSensor.sense
(ServerWorld serverWorld, WardenEntity wardenEntity) final void
Sensor.tick
(ServerWorld world, E entity) -
Uses of ServerWorld in net.minecraft.entity.ai.brain.task
Modifier and TypeMethodDescriptionprivate boolean
BoneMealTask.canBoneMeal
(BlockPos pos, ServerWorld world) protected boolean
BiasedLongJumpTask.canJumpTo
(ServerWorld world, E entity, BlockPos pos) protected boolean
LongJumpTask.canJumpTo
(ServerWorld world, E entity, BlockPos pos) private static boolean
OpenDoorsTask.cannotReachDoor
(ServerWorld world, LivingEntity entity, GlobalPos doorPos) FarmerVillagerTask.chooseRandomTarget
(ServerWorld world) private void
TakeJobSiteTask.claimSite
(ServerWorld world, VillagerEntity previousOwner, VillagerEntity newOwner, BlockPos pos, boolean jobSitePresent) private void
FarmerWorkTask.compostSeeds
(ServerWorld world, VillagerEntity entity, GlobalPos pos, BlockState composterState) private Optional<VillagerEntity>
VillagerBreedTask.createChild
(ServerWorld world, VillagerEntity parent, VillagerEntity partner) private boolean
VillagerWalkTowardsTask.dimensionMismatches
(ServerWorld world, GlobalPos pos) private void
FrogEatEntityTask.eat
(ServerWorld world, FrogEntity frog) BoneMealTask.findBoneMealPos
(ServerWorld world, VillagerEntity entity) SeekSkyTask.findNearbySky
(ServerWorld world, LivingEntity entity) WalkTask.findTarget
(PathAwareEntity entity, ServerWorld world) protected void
RamImpactTask.finishRam
(ServerWorld world, GoatEntity goat) protected void
BoneMealTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
BreedTask.finishRunning
(ServerWorld serverWorld, AnimalEntity animalEntity, long long2) protected void
CelebrateRaidWinTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
CompositeTask.finishRunning
(ServerWorld world, E entity, long time) protected void
ConditionalTask.finishRunning
(ServerWorld world, E entity, long time) protected void
CroakTask.finishRunning
(ServerWorld serverWorld, FrogEntity frogEntity, long long2) protected void
CrossbowAttackTask.finishRunning
(ServerWorld serverWorld, E e, long long2) protected void
DigTask.finishRunning
(ServerWorld serverWorld, E e, long long2) protected void
EmergeTask.finishRunning
(ServerWorld serverWorld, E e, long long2) protected void
FarmerVillagerTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
FollowCustomerTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
FrogEatEntityTask.finishRunning
(ServerWorld serverWorld, FrogEntity frogEntity, long long2) protected void
GatherItemsVillagerTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GiveGiftsToHeroTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) void
HoldTradeOffersTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
JumpInBedTask.finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
LeapingChargeTask.finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
LookAroundTask.finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
PrepareRamTask.finishRunning
(ServerWorld serverWorld, E e, long long2) protected void
RoarTask.finishRunning
(ServerWorld serverWorld, WardenEntity wardenEntity, long long2) protected void
SeekWaterTask.finishRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
SleepTask.finishRunning
(ServerWorld world, LivingEntity entity, long time) protected void
SniffTask.finishRunning
(ServerWorld serverWorld, E e, long long2) protected void
SonicBoomTask.finishRunning
(ServerWorld serverWorld, WardenEntity wardenEntity, long long2) protected void
Task.finishRunning
(ServerWorld world, E entity, long time) protected void
TemptationCooldownTask.finishRunning
(ServerWorld world, LivingEntity entity, long time) protected void
TemptTask.finishRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
TimeLimitedTask.finishRunning
(ServerWorld world, E entity, long time) protected void
VillagerBreedTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
WalkTask.finishRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
WalkTowardJobSiteTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
WalkTowardsLandTask.finishRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
WalkTowardsWaterTask.finishRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
WanderAroundTask.finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) private static int
GiveGiftsToHeroTask.getNextGiftDelay
(ServerWorld world) static ChunkSectionPos
LookTargetUtil.getPosClosestToOccupiedPointOfInterest
(ServerWorld world, ChunkSectionPos center, int radius) VillagerBreedTask.getReachableHome
(ServerWorld world, VillagerEntity villager) protected Optional<LongJumpTask.Target>
BiasedLongJumpTask.getTarget
(ServerWorld world) protected Optional<LongJumpTask.Target>
LongJumpTask.getTarget
(ServerWorld world) private void
VillagerBreedTask.goHome
(ServerWorld world, VillagerEntity first, VillagerEntity second) private boolean
ForgetCompletedPointOfInterestTask.hasCompletedPointOfInterest
(ServerWorld world, BlockPos pos) private static boolean
OpenDoorsTask.hasOtherMobReachedDoor
(ServerWorld world, LivingEntity entity, BlockPos pos) private static boolean
OpenDoorsTask.hasReached
(ServerWorld world, LivingEntity entity, BlockPos pos) private boolean
JumpInBedTask.isAboveBed
(ServerWorld world, MobEntity mob) private boolean
JumpInBedTask.isBedAt
(ServerWorld world, BlockPos pos) private boolean
JumpInBedTask.isBedGoneTooLong
(ServerWorld world, MobEntity mob) private boolean
ForgetCompletedPointOfInterestTask.isBedOccupiedByOthers
(ServerWorld world, BlockPos pos, LivingEntity entity) private boolean
JumpInBedTask.isDoneJumping
(ServerWorld world, MobEntity mob) private boolean
BiasedLongJumpTask.isFluidStateAndBelowEmpty
(ServerWorld world, BlockPos pos) private boolean
JumpInBedTask.isOnBed
(ServerWorld world, MobEntity mob) static boolean
SeekSkyTask.isSkyVisible
(ServerWorld world, LivingEntity entity, BlockPos pos) private boolean
FarmerVillagerTask.isSuitableTarget
(BlockPos pos, ServerWorld world) protected void
BoneMealTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
BreedTask.keepRunning
(ServerWorld serverWorld, AnimalEntity animalEntity, long long2) protected void
CelebrateRaidWinTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
CompositeTask.keepRunning
(ServerWorld world, E entity, long time) protected void
ConditionalTask.keepRunning
(ServerWorld world, E entity, long time) protected void
CroakTask.keepRunning
(ServerWorld serverWorld, FrogEntity frogEntity, long long2) protected void
CrossbowAttackTask.keepRunning
(ServerWorld serverWorld, E e, long long2) protected void
FarmerVillagerTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
FollowCustomerTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
FrogEatEntityTask.keepRunning
(ServerWorld serverWorld, FrogEntity frogEntity, long long2) protected void
GatherItemsVillagerTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GiveGiftsToHeroTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GiveInventoryToLookTargetTask.keepRunning
(ServerWorld world, E entity, long time) void
HoldTradeOffersTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
JumpInBedTask.keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
LongJumpTask.keepRunning
(ServerWorld serverWorld, E e, long long2) protected void
LookAroundTask.keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
PanicTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
PrepareRamTask.keepRunning
(ServerWorld serverWorld, E e, long long2) protected void
RamImpactTask.keepRunning
(ServerWorld serverWorld, GoatEntity goatEntity, long long2) protected void
RoarTask.keepRunning
(ServerWorld serverWorld, WardenEntity wardenEntity, long long2) protected void
SonicBoomTask.keepRunning
(ServerWorld serverWorld, WardenEntity wardenEntity, long long2) protected void
StayAboveWaterTask.keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
Task.keepRunning
(ServerWorld world, E entity, long time) protected void
TemptationCooldownTask.keepRunning
(ServerWorld world, LivingEntity entity, long time) protected void
TemptTask.keepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
TimeLimitedTask.keepRunning
(ServerWorld world, E entity, long time) protected void
VillagerBreedTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
WalkTask.keepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
WalkTowardJobSiteTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
WanderAroundTask.keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
LongJumpTask.method_41342
(ServerWorld serverWorld, E e, long long2) static void
OpenDoorsTask.pathToDoor
(ServerWorld world, LivingEntity entity, @Nullable PathNode lastNode, @Nullable PathNode currentNode) protected void
FarmerWorkTask.performAdditionalWork
(ServerWorld world, VillagerEntity entity) protected void
VillagerWorkTask.performAdditionalWork
(ServerWorld world, VillagerEntity entity) private boolean
VillagerWalkTowardsTask.reachedDestination
(ServerWorld world, VillagerEntity villager, GlobalPos pos) private void
OpenDoorsTask.rememberToCloseDoor
(ServerWorld world, LivingEntity entity, BlockPos pos) private void
TimeLimitedTask.resetTimeLeft
(ServerWorld world) protected void
AdmireItemTask.run
(ServerWorld serverWorld, E e, long long2) protected void
AdmireItemTimeLimitTask.run
(ServerWorld serverWorld, E e, long long2) protected void
AttackTask.run
(ServerWorld serverWorld, E e, long long2) protected void
BiasedLongJumpTask.run
(ServerWorld serverWorld, E e, long long2) protected void
BoneMealTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
BreedTask.run
(ServerWorld serverWorld, AnimalEntity animalEntity, long long2) protected void
CompositeTask.run
(ServerWorld world, E entity, long time) abstract <E extends LivingEntity>
voidCompositeTask.RunMode.run
(Stream<Task<? super E>> tasks, ServerWorld world, E entity, long time) protected void
ConditionalTask.run
(ServerWorld world, E entity, long time) protected void
CroakTask.run
(ServerWorld serverWorld, FrogEntity frogEntity, long long2) protected void
DefeatTargetTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
DigTask.run
(ServerWorld serverWorld, E e, long long2) protected void
DismountVehicleTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
EmergeTask.run
(ServerWorld serverWorld, E e, long long2) protected void
EndRaidTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
FarmerVillagerTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
FindEntityTask.run
(ServerWorld world, E entity, long time) void
FindInteractionTargetTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
FindPointOfInterestTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
FindRoarTargetTask.run
(ServerWorld serverWorld, E e, long long2) protected void
FindWalkTargetTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
FollowCustomerTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
FollowMobTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
ForgetAngryAtTargetTask.run
(ServerWorld serverWorld, E e, long long2) protected void
ForgetAttackTargetTask.run
(ServerWorld serverWorld, E e, long long2) protected void
ForgetBellRingTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
ForgetCompletedPointOfInterestTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
ForgetTask.run
(ServerWorld world, E entity, long time) protected void
FrogEatEntityTask.run
(ServerWorld serverWorld, FrogEntity frogEntity, long long2) protected void
GatherItemsVillagerTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GiveGiftsToHeroTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GiveInventoryToLookTargetTask.run
(ServerWorld world, E entity, long time) protected void
GoToCelebrateTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
GoToIfNearbyTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
GoToNearbyPositionTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
GoToPointOfInterestTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GoToRememberedPositionTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
GoToSecondaryPositionTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GoTowardsLookTarget.run
(ServerWorld world, LivingEntity entity, long time) protected void
GoToWorkTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
HideInHomeTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
HideWhenBellRingsTask.run
(ServerWorld world, LivingEntity entity, long time) void
HoldTradeOffersTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
HuntFinishTask.run
(ServerWorld serverWorld, E e, long long2) protected void
HuntHoglinTask.run
(ServerWorld serverWorld, E e, long long2) protected void
JumpInBedTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
LayFrogSpawnTask.run
(ServerWorld serverWorld, FrogEntity frogEntity, long long2) protected void
LeapingChargeTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
LongJumpTask.run
(ServerWorld serverWorld, E e, long long2) protected void
LookAtDisturbanceTask.run
(ServerWorld serverWorld, WardenEntity wardenEntity, long long2) protected void
LoseJobOnSiteLossTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
MeetVillagerTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
MeleeAttackTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
MemoryTransferTask.run
(ServerWorld serverWorld, E e, long long2) protected void
OpenDoorsTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
PacifyTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
PanicTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
PlayDeadTask.run
(ServerWorld serverWorld, AxolotlEntity axolotlEntity, long long2) protected void
PlayDeadTimerTask.run
(ServerWorld serverWorld, AxolotlEntity axolotlEntity, long long2) protected void
PlayWithVillagerBabiesTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
PrepareRamTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
RamImpactTask.run
(ServerWorld serverWorld, GoatEntity goatEntity, long long2) protected void
RangedApproachTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
RemoveOffHandItemTask.run
(ServerWorld serverWorld, E e, long long2) protected void
RidingTask.run
(ServerWorld world, E entity, long time) protected void
RingBellTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
RoarTask.run
(ServerWorld serverWorld, WardenEntity wardenEntity, long long2) protected void
ScheduleActivityTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
SeekSkyTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
SeekWaterTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
SleepTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
SniffTask.run
(ServerWorld serverWorld, E e, long long2) protected void
SonicBoomTask.run
(ServerWorld serverWorld, WardenEntity wardenEntity, long long2) protected void
StartRaidTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
StartRidingTask.run
(ServerWorld world, E entity, long time) protected void
StartSniffingTask.run
(ServerWorld serverWorld, WardenEntity wardenEntity, long long2) protected void
StopPanickingTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
StrollTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
TakeJobSiteTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
Task.run
(ServerWorld world, E entity, long time) protected void
TemptTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
TimeLimitedTask.run
(ServerWorld world, E entity, long time) protected void
UpdateAttackTargetTask.run
(ServerWorld serverWorld, E e, long long2) protected void
VillagerBreedTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
VillagerWalkTowardsTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
VillagerWorkTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
WakeUpTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
WalkHomeTask.run
(ServerWorld world, LivingEntity entity, long time) protected void
WalkTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
WalkToNearestVisibleWantedItemTask.run
(ServerWorld world, E entity, long time) protected void
WalkTowardClosestAdultTask.run
(ServerWorld serverWorld, E e, long long2) protected void
WalkTowardsLandTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
WalkTowardsLookTargetTask.run
(ServerWorld world, E entity, long time) protected void
WalkTowardsWaterTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
WanderAroundTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
WanderIndoorsTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
WantNewItemTask.run
(ServerWorld serverWorld, E e, long long2) protected void
WorkStationCompetitionTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) private void
VillagerBreedTask.setChildHome
(ServerWorld world, VillagerEntity child, BlockPos pos) private void
PlayWithVillagerBabiesTask.setGroundTarget
(ServerWorld world, PathAwareEntity entity, LivingEntity unusedBaby) private boolean
VillagerWalkTowardsTask.shouldGiveUp
(ServerWorld world, VillagerEntity villager) protected boolean
BoneMealTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
BreedTask.shouldKeepRunning
(ServerWorld serverWorld, AnimalEntity animalEntity, long long2) protected boolean
CelebrateRaidWinTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
CompositeTask.shouldKeepRunning
(ServerWorld world, E entity, long time) protected boolean
ConditionalTask.shouldKeepRunning
(ServerWorld world, E entity, long time) protected boolean
CroakTask.shouldKeepRunning
(ServerWorld serverWorld, FrogEntity frogEntity, long long2) protected boolean
CrossbowAttackTask.shouldKeepRunning
(ServerWorld serverWorld, E e, long long2) protected boolean
DigTask.shouldKeepRunning
(ServerWorld serverWorld, E e, long long2) protected boolean
EmergeTask.shouldKeepRunning
(ServerWorld serverWorld, E e, long long2) protected boolean
FarmerVillagerTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
FollowCustomerTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
FrogEatEntityTask.shouldKeepRunning
(ServerWorld serverWorld, FrogEntity frogEntity, long long2) protected boolean
GatherItemsVillagerTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
GiveGiftsToHeroTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
GiveInventoryToLookTargetTask.shouldKeepRunning
(ServerWorld world, E entity, long time) boolean
HoldTradeOffersTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
JumpInBedTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
LeapingChargeTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
LongJumpTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
LookAroundTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
PanicTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
PlayDeadTask.shouldKeepRunning
(ServerWorld serverWorld, AxolotlEntity axolotlEntity, long long2) protected boolean
PrepareRamTask.shouldKeepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected boolean
RamImpactTask.shouldKeepRunning
(ServerWorld serverWorld, GoatEntity goatEntity, long long2) protected boolean
RoarTask.shouldKeepRunning
(ServerWorld serverWorld, WardenEntity wardenEntity, long long2) protected boolean
SleepTask.shouldKeepRunning
(ServerWorld world, LivingEntity entity, long time) protected boolean
SniffTask.shouldKeepRunning
(ServerWorld serverWorld, E e, long long2) protected boolean
SonicBoomTask.shouldKeepRunning
(ServerWorld serverWorld, WardenEntity wardenEntity, long long2) protected boolean
StayAboveWaterTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
Task.shouldKeepRunning
(ServerWorld world, E entity, long time) protected boolean
TemptationCooldownTask.shouldKeepRunning
(ServerWorld world, LivingEntity entity, long time) protected boolean
TemptTask.shouldKeepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected boolean
TimeLimitedTask.shouldKeepRunning
(ServerWorld world, E entity, long time) protected boolean
VillagerBreedTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
VillagerWorkTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
WaitTask.shouldKeepRunning
(ServerWorld world, LivingEntity entity, long time) protected boolean
WalkTask.shouldKeepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected boolean
WalkTowardJobSiteTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
WanderAroundTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
AdmireItemTask.shouldRun
(ServerWorld serverWorld, E e) protected boolean
AdmireItemTimeLimitTask.shouldRun
(ServerWorld serverWorld, E e) protected boolean
AquaticStrollTask.shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) protected boolean
AttackTask.shouldRun
(ServerWorld serverWorld, E e) protected boolean
BoneMealTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
BreedTask.shouldRun
(ServerWorld serverWorld, AnimalEntity animalEntity) protected boolean
CelebrateRaidWinTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
ConditionalTask.shouldRun
(ServerWorld world, E entity) protected boolean
CroakTask.shouldRun
(ServerWorld serverWorld, FrogEntity frogEntity) protected boolean
CrossbowAttackTask.shouldRun
(ServerWorld serverWorld, E e) protected boolean
DefeatTargetTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
DigTask.shouldRun
(ServerWorld serverWorld, E e) protected boolean
DismountVehicleTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
EndRaidTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
FarmerVillagerTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
FindEntityTask.shouldRun
(ServerWorld world, E entity) boolean
FindInteractionTargetTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
FindPointOfInterestTask.shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) protected boolean
FindRoarTargetTask.shouldRun
(ServerWorld serverWorld, E e) protected boolean
FollowCustomerTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
FollowMobTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
ForgetCompletedPointOfInterestTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
ForgetTask.shouldRun
(ServerWorld world, E entity) protected boolean
FrogEatEntityTask.shouldRun
(ServerWorld serverWorld, FrogEntity frogEntity) protected boolean
GatherItemsVillagerTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
GiveGiftsToHeroTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
GiveInventoryToLookTargetTask.shouldRun
(ServerWorld world, E entity) protected boolean
GoToIfNearbyTask.shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) protected boolean
GoToNearbyPositionTask.shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) protected boolean
GoToPointOfInterestTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
GoToRememberedPositionTask.shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) protected boolean
GoToSecondaryPositionTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
GoTowardsLookTarget.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
GoToWorkTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
HideInHomeDuringRaidTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
HideInHomeTask.shouldRun
(ServerWorld world, LivingEntity entity) boolean
HoldTradeOffersTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
HuntHoglinTask.shouldRun
(ServerWorld serverWorld, PiglinEntity piglinEntity) protected boolean
JumpInBedTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) protected boolean
LayFrogSpawnTask.shouldRun
(ServerWorld serverWorld, FrogEntity frogEntity) protected boolean
LongJumpTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) protected boolean
LookAtDisturbanceTask.shouldRun
(ServerWorld serverWorld, WardenEntity wardenEntity) protected boolean
LoseJobOnSiteLossTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
MeetVillagerTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
MeleeAttackTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) protected boolean
MemoryTransferTask.shouldRun
(ServerWorld serverWorld, E e) protected boolean
OpenDoorsTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
PlayDeadTask.shouldRun
(ServerWorld serverWorld, AxolotlEntity axolotlEntity) protected boolean
PlayWithVillagerBabiesTask.shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) protected boolean
RamImpactTask.shouldRun
(ServerWorld serverWorld, GoatEntity goatEntity) protected boolean
RemoveOffHandItemTask.shouldRun
(ServerWorld serverWorld, E e) protected boolean
RidingTask.shouldRun
(ServerWorld world, E entity) protected boolean
RingBellTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
RunAroundAfterRaidTask.shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) protected boolean
SeekSkyAfterRaidWinTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
SeekSkyTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
SeekWaterTask.shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) protected boolean
SleepTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
SonicBoomTask.shouldRun
(ServerWorld serverWorld, WardenEntity wardenEntity) protected boolean
StartRaidTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
StartRidingTask.shouldRun
(ServerWorld world, E entity) protected boolean
StayAboveWaterTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) protected boolean
StrollTask.shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) protected boolean
TakeJobSiteTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
Task.shouldRun
(ServerWorld world, E entity) protected boolean
TimeLimitedTask.shouldRun
(ServerWorld world, E entity) protected boolean
UpdateAttackTargetTask.shouldRun
(ServerWorld serverWorld, E e) protected boolean
VillagerBreedTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
VillagerWorkTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
WakeUpTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
WalkHomeTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
WalkToNearestVisibleWantedItemTask.shouldRun
(ServerWorld world, E entity) protected boolean
WalkTowardClosestAdultTask.shouldRun
(ServerWorld serverWorld, E e) protected boolean
WalkTowardJobSiteTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
WalkTowardsLandTask.shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) protected boolean
WalkTowardsLookTargetTask.shouldRun
(ServerWorld world, E entity) protected boolean
WalkTowardsWaterTask.shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) protected boolean
WanderAroundTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) protected boolean
WanderIndoorsTask.shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) protected boolean
WantNewItemTask.shouldRun
(ServerWorld serverWorld, E e) private boolean
RamImpactTask.shouldSnapHorn
(ServerWorld world, GoatEntity goat) private boolean
JumpInBedTask.shouldStartJumping
(ServerWorld world, MobEntity mob) final void
Task.stop
(ServerWorld world, E entity, long time) private void
FarmerWorkTask.syncComposterEvent
(ServerWorld world, BlockState oldState, BlockPos pos, BlockState newState) final void
Task.tick
(ServerWorld world, E entity, long time) final boolean
Task.tryStarting
(ServerWorld world, E entity, long time) -
Uses of ServerWorld in net.minecraft.entity.boss.dragon
Modifier and TypeMethodDescriptionabstract void
EnderDragonSpawnState.run
(ServerWorld world, EnderDragonFight fight, List<EndCrystalEntity> crystals, int tick, BlockPos pos) ModifierConstructorDescriptionEnderDragonFight
(ServerWorld world, long gatewaysSeed, NbtCompound nbt) -
Uses of ServerWorld in net.minecraft.entity.decoration
Modifier and TypeMethodDescriptionvoid
AbstractDecorationEntity.onStruckByLightning
(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.void
ArmorStandEntity.onStruckByLightning
(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning. -
Uses of ServerWorld in net.minecraft.entity.effect
Modifier and TypeMethodDescriptionstatic List<ServerPlayerEntity>
StatusEffectUtil.addEffectToPlayersWithinDistance
(ServerWorld world, @Nullable Entity entity, Vec3d origin, double range, StatusEffectInstance statusEffectInstance, int duration) -
Uses of ServerWorld in net.minecraft.entity.mob
Modifier and TypeMethodDescriptionvoid
WardenEntity.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.boolean
WardenEntity.accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.static void
WardenEntity.addDarknessToClosePlayers
(ServerWorld world, Vec3d pos, @Nullable Entity entity, int range) HoglinEntity.createChild
(ServerWorld world, PassiveEntity entity) SkeletonHorseEntity.createChild
(ServerWorld world, PassiveEntity entity) ZombieHorseEntity.createChild
(ServerWorld world, PassiveEntity entity) private void
ZombieVillagerEntity.finishConversion
(ServerWorld world) boolean
ZombieEntity.onKilledOther
(ServerWorld world, LivingEntity other) Called when this entity killsother
.void
CreeperEntity.onStruckByLightning
(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.default void
Angerable.tickAngerLogic
(ServerWorld world, boolean angerPersistent) protected void
AbstractPiglinEntity.zombify
(ServerWorld world) private void
HoglinEntity.zombify
(ServerWorld word) protected void
PiglinEntity.zombify
(ServerWorld world) Modifier and TypeMethodDescriptionvoid
WardenEntity.updateEventHandler
(BiConsumer<EntityGameEventHandler<?>, ServerWorld> callback) Called when the entity is loaded to register game event handlers. -
Uses of ServerWorld in net.minecraft.entity.passive
Modifier and TypeMethodDescriptionvoid
AllayEntity.VibrationListenerCallback.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, Entity entity, Entity sourceEntity, float distance) Accepts a game event after delay.boolean
AllayEntity.VibrationListenerCallback.accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.void
AnimalEntity.breed
(ServerWorld world, AnimalEntity other) void
FrogEntity.breed
(ServerWorld world, AnimalEntity other) AbstractHorseEntity.createChild
(ServerWorld world, PassiveEntity entity) AxolotlEntity.createChild
(ServerWorld world, PassiveEntity entity) BeeEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) CatEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) ChickenEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) CowEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) DonkeyEntity.createChild
(ServerWorld world, PassiveEntity entity) FoxEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) FrogEntity.createChild
(ServerWorld world, PassiveEntity entity) GoatEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) HorseEntity.createChild
(ServerWorld world, PassiveEntity entity) LlamaEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) MooshroomEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) MuleEntity.createChild
(ServerWorld world, PassiveEntity entity) OcelotEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) PandaEntity.createChild
(ServerWorld world, PassiveEntity entity) ParrotEntity.createChild
(ServerWorld world, PassiveEntity entity) abstract @Nullable PassiveEntity
PassiveEntity.createChild
(ServerWorld world, PassiveEntity entity) PigEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) PolarBearEntity.createChild
(ServerWorld world, PassiveEntity entity) RabbitEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) SheepEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) StriderEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) TurtleEntity.createChild
(ServerWorld world, PassiveEntity entity) VillagerEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) WanderingTraderEntity.createChild
(ServerWorld world, PassiveEntity entity) WolfEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) boolean
AllayEntity.JukeboxEventListener.listen
(ServerWorld world, GameEvent.Message event) Listens to an incoming game event.MerchantEntity.moveToWorld
(ServerWorld destination) Moves this entity to another world.void
MooshroomEntity.onStruckByLightning
(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.void
PigEntity.onStruckByLightning
(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.void
TurtleEntity.onStruckByLightning
(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.void
VillagerEntity.onStruckByLightning
(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.void
VillagerEntity.reinitializeBrain
(ServerWorld world) void
VillagerEntity.summonGolem
(ServerWorld world, long time, int requiredCount) void
VillagerEntity.talkWithVillager
(ServerWorld world, VillagerEntity villager, long time) Modifier and TypeMethodDescriptionvoid
AllayEntity.updateEventHandler
(BiConsumer<EntityGameEventHandler<?>, ServerWorld> callback) Called when the entity is loaded to register game event handlers. -
Uses of ServerWorld in net.minecraft.entity.player
Modifier and TypeMethodDescriptionPlayerEntity.findRespawnPosition
(ServerWorld world, BlockPos pos, float angle, boolean forced, boolean alive) Finds the precise respawn position from aBlockPos
in a world.boolean
PlayerEntity.onKilledOther
(ServerWorld world, LivingEntity other) Called when this entity killsother
. -
Uses of ServerWorld in net.minecraft.entity.projectile.thrown
Modifier and TypeMethodDescriptionEnderPearlEntity.moveToWorld
(ServerWorld destination) Moves this entity to another world. -
Uses of ServerWorld in net.minecraft.entity.vehicle
-
Uses of ServerWorld in net.minecraft.item
Modifier and TypeMethodDescriptionstatic void
FilledMapItem.fillExplorationMap
(ServerWorld world, ItemStack map) SpawnEggItem.spawnBaby
(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack) private void
EntityBucketItem.spawnEntity
(ServerWorld world, ItemStack stack, BlockPos pos) -
Uses of ServerWorld in net.minecraft.loot.context
Modifier and TypeFieldDescriptionprivate final ServerWorld
LootContext.Builder.world
private final ServerWorld
LootContext.world
ModifierConstructorDescriptionBuilder
(ServerWorld world) (package private)
LootContext
(Random random, float luck, ServerWorld world, Function<Identifier, LootTable> tableGetter, Function<Identifier, LootCondition> conditionGetter, Map<LootContextParameter<?>, Object> parameters, Map<Identifier, LootContext.Dropper> drops) -
Uses of ServerWorld in net.minecraft.network
Modifier and TypeMethodDescriptionstatic <T extends PacketListener>
voidNetworkThreadUtils.forceMainThread
(Packet<T> packet, T listener, ServerWorld world) -
Uses of ServerWorld in net.minecraft.network.packet.c2s.play
Modifier and TypeMethodDescriptionPlayerInteractEntityC2SPacket.getEntity
(ServerWorld world) SpectatorTeleportC2SPacket.getTarget
(ServerWorld world) -
Uses of ServerWorld in net.minecraft.predicate
Modifier and TypeMethodDescriptionboolean
BlockPredicate.test
(ServerWorld world, BlockPos pos) boolean
FluidPredicate.test
(ServerWorld world, BlockPos pos) boolean
LightPredicate.test
(ServerWorld world, BlockPos pos) -
Uses of ServerWorld in net.minecraft.predicate.entity
Modifier and TypeMethodDescriptionboolean
DamageSourcePredicate.test
(ServerWorld world, Vec3d pos, DamageSource damageSource) boolean
boolean
FishingHookPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
LightningBoltPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
LocationPredicate.test
(ServerWorld world, double x, double y, double z) boolean
PlayerPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
SlimePredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
TypeSpecificPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) -
Uses of ServerWorld in net.minecraft.server
Modifier and TypeFieldDescriptionprivate final Map<RegistryKey<World>,
ServerWorld> MinecraftServer.worlds
Modifier and TypeMethodDescriptionfinal ServerWorld
MinecraftServer.getOverworld()
MinecraftServer.getWorld
(RegistryKey<World> key) Modifier and TypeMethodDescriptionint
MinecraftServer.getSpawnRadius
(@Nullable ServerWorld world) boolean
MinecraftServer.isSpawnProtected
(ServerWorld world, BlockPos pos, PlayerEntity player) void
PlayerManager.sendWorldInfo
(ServerPlayerEntity player, ServerWorld world) void
PlayerManager.setMainWorld
(ServerWorld world) private static void
MinecraftServer.setupSpawn
(ServerWorld world, ServerWorldProperties worldProperties, boolean bonusChest, boolean debugWorld) -
Uses of ServerWorld in net.minecraft.server.command
Modifier and TypeFieldDescriptionprivate final ServerWorld
ServerCommandSource.world
private final ServerWorld
TestCommand.Listener.world
Modifier and TypeMethodDescriptionprivate static void
TestCommand.beforeBatch
(TestFunction testFunction, ServerWorld world) private static int
TeleportCommand.execute
(ServerCommandSource source, Collection<? extends Entity> targets, ServerWorld world, PosArgument location, @Nullable PosArgument rotation, @Nullable TeleportCommand.LookTarget facingLocation) SetBlockCommand.Filter.filter
(BlockBox box, BlockPos pos, BlockStateArgument block, ServerWorld world) private static int
TimeCommand.getDayTime
(ServerWorld world) private static double
SpreadPlayersCommand.getMinDistance
(Collection<? extends Entity> entities, ServerWorld world, SpreadPlayersCommand.Pile[] piles, int maxY, boolean respectTeams) (package private) static void
TestCommand.onCompletion
(ServerWorld world, TestSet tests) private static void
TestCommand.run
(ServerWorld world, BlockPos pos, @Nullable TestSet tests) private static void
TestCommand.sendMessage
(ServerWorld world, String message, Formatting formatting) private static void
SpreadPlayersCommand.spread
(Vec2f center, double spreadDistance, ServerWorld world, Random random, double minX, double minZ, double maxX, double maxZ, int maxY, SpreadPlayersCommand.Pile[] piles, boolean respectTeams) private static void
TeleportCommand.teleport
(ServerCommandSource source, Entity target, ServerWorld world, double x, double y, double z, Set<PlayerPositionLookS2CPacket.Flag> movementFlags, float yaw, float pitch, @Nullable TeleportCommand.LookTarget facingLocation) private static OptionalInt
ExecuteCommand.testBlocksCondition
(ServerWorld world, BlockPos start, BlockPos end, BlockPos destination, boolean masked) private static void
PlaceCommand.throwOnUnloadedPos
(ServerWorld world, ChunkPos pos1, ChunkPos pos2) ServerCommandSource.withWorld
(ServerWorld world) ModifierConstructorDescriptionListener
(ServerWorld world, TestSet tests) ServerCommandSource
(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable Entity entity) protected
ServerCommandSource
(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable Entity entity, boolean silent, @Nullable com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, EntityAnchorArgumentType.EntityAnchor entityAnchor, SignedCommandArguments signedArguments, FutureQueue messageChainTaskQueue) -
Uses of ServerWorld in net.minecraft.server.dedicated
Modifier and TypeMethodDescriptionboolean
MinecraftDedicatedServer.isSpawnProtected
(ServerWorld world, BlockPos pos, PlayerEntity player) -
Uses of ServerWorld in net.minecraft.server.network
Modifier and TypeFieldDescriptionprivate final ServerWorld
EntityTrackerEntry.world
protected ServerWorld
ServerPlayerInteractionManager.world
Modifier and TypeMethodDescriptionstatic void
DebugInfoSender.addGameTestMarker
(ServerWorld world, BlockPos pos, String message, int color, int duration) static void
DebugInfoSender.clearGameTestMarkers
(ServerWorld world) private void
ServerPlayerEntity.createEndSpawnPlatform
(ServerWorld world, BlockPos centerPos) SpawnLocating.findOverworldSpawn
(ServerWorld world, int x, int z) SpawnLocating.findServerSpawnPoint
(ServerWorld world, ChunkPos chunkPos) private static String
DebugInfoSender.format
(ServerWorld world, @Nullable Object object) protected Optional<BlockLocating.Rectangle>
ServerPlayerEntity.getPortalRect
(ServerWorld destWorld, BlockPos destPos, boolean destIsNether, WorldBorder worldBorder) Returns the portal rect atdestPos
.protected @Nullable TeleportTarget
ServerPlayerEntity.getTeleportTarget
(ServerWorld destination) Returns aTeleportTarget
for the entity based on its current and destination worlds, plus any nether portals that may be present.private void
ServerPlayerEntity.moveToSpawn
(ServerWorld world) ServerPlayerEntity.moveToWorld
(ServerWorld destination) Moves this entity to another world.static void
DebugInfoSender.sendChunkWatchingChange
(ServerWorld world, ChunkPos pos) private static void
DebugInfoSender.sendPoi
(ServerWorld world, BlockPos pos) static void
DebugInfoSender.sendPoiAddition
(ServerWorld world, BlockPos pos) static void
DebugInfoSender.sendPointOfInterest
(ServerWorld world, BlockPos pos) static void
DebugInfoSender.sendPoiRemoval
(ServerWorld world, BlockPos pos) static void
DebugInfoSender.sendRaids
(ServerWorld server, Collection<Raid> raids) private static void
DebugInfoSender.sendToAll
(ServerWorld world, PacketByteBuf buf, Identifier channel) void
ServerPlayerEntity.setWorld
(ServerWorld world) void
ServerPlayerInteractionManager.setWorld
(ServerWorld world) void
ServerPlayerEntity.teleport
(ServerWorld targetWorld, double x, double y, double z, float yaw, float pitch) private void
ServerPlayerEntity.worldChanged
(ServerWorld origin) ModifierConstructorDescriptionEntityTrackerEntry
(ServerWorld world, Entity entity, int tickInterval, boolean alwaysUpdateVelocity, Consumer<Packet<?>> receiver) ServerPlayerEntity
(MinecraftServer server, ServerWorld world, com.mojang.authlib.GameProfile profile, @Nullable PlayerPublicKey publicKey) -
Uses of ServerWorld in net.minecraft.server.world
Modifier and TypeFieldDescription(package private) final ServerWorld
ServerChunkManager.world
(package private) final ServerWorld
ThreadedAnvilChunkStorage.world
Modifier and TypeMethodDescriptionprivate static void
ThreadedAnvilChunkStorage.addEntitiesFromNbt
(ServerWorld world, List<NbtCompound> nbt) static void
ServerWorld.createEndSpawnPlatform
(ServerWorld world) ModifierConstructorDescriptionServerChunkManager
(ServerWorld world, LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer, StructureTemplateManager structureTemplateManager, Executor workerExecutor, ChunkGenerator chunkGenerator, int viewDistance, int simulationDistance, boolean dsync, WorldGenerationProgressListener worldGenerationProgressListener, ChunkStatusChangeListener chunkStatusChangeListener, Supplier<PersistentStateManager> persistentStateManagerFactory) ThreadedAnvilChunkStorage
(ServerWorld world, LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer, StructureTemplateManager structureTemplateManager, Executor executor, ThreadExecutor<Runnable> mainThreadExecutor, ChunkProvider chunkProvider, ChunkGenerator chunkGenerator, WorldGenerationProgressListener worldGenerationProgressListener, ChunkStatusChangeListener chunkStatusChangeListener, Supplier<PersistentStateManager> persistentStateManagerFactory, int viewDistance, boolean dsync) -
Uses of ServerWorld in net.minecraft.structure
Modifier and TypeMethodDescriptionstatic StructureContext
StructureContext.from
(ServerWorld world) -
Uses of ServerWorld in net.minecraft.structure.pool
Modifier and TypeMethodDescriptionstatic boolean
StructurePoolBasedGenerator.generate
(ServerWorld world, RegistryEntry<StructurePool> structurePool, Identifier id, int int2, BlockPos pos, boolean keepJigsaws) -
Uses of ServerWorld in net.minecraft.test
Modifier and TypeFieldDescriptionprivate final ServerWorld
GameTestState.world
(package private) final ServerWorld
TestRunner.world
Modifier and TypeFieldDescriptionprivate static final Map<String,
Consumer<ServerWorld>> TestFunctions.AFTER_BATCH_CONSUMERS
private final @Nullable Consumer<ServerWorld>
GameTestBatch.afterBatchConsumer
private static final Map<String,
Consumer<ServerWorld>> TestFunctions.BEFORE_BATCH_CONSUMERS
private final @Nullable Consumer<ServerWorld>
GameTestBatch.beforeBatchConsumer
Modifier and TypeMethodDescriptionstatic @Nullable Consumer<ServerWorld>
TestFunctions.getAfterBatchConsumer
(String batchId) static @Nullable Consumer<ServerWorld>
TestFunctions.getBeforeBatchConsumer
(String batchId) Modifier and TypeMethodDescriptionprivate static void
StructureTestListener.addGameTestMarker
(ServerWorld world, BlockPos pos, String message) static void
StructureTestUtil.clearArea
(BlockBox area, int altitude, ServerWorld world) static void
TestUtil.clearDebugMarkers
(ServerWorld world) static void
TestUtil.clearTests
(ServerWorld world, BlockPos pos, TestManager testManager, int radius) private static StructureTemplate
StructureTestUtil.createStructureTemplate
(String templateId, ServerWorld world) static StructureBlockBlockEntity
StructureTestUtil.createStructureTemplate
(String templateName, BlockPos pos, BlockRotation rotation, int int2, ServerWorld world, boolean bool) static void
StructureTestUtil.createTestArea
(String testName, BlockPos pos, Vec3i relativePos, BlockRotation rotation, ServerWorld world) StructureTestUtil.findContainingStructureBlock
(BlockPos pos, int radius, ServerWorld world) StructureTestUtil.findNearestStructureBlock
(BlockPos pos, int radius, ServerWorld world) static Collection<BlockPos>
StructureTestUtil.findStructureBlocks
(BlockPos pos, int radius, ServerWorld world) void
GameTestBatch.finishBatch
(ServerWorld world) private static void
StructureTestUtil.forceLoadNearbyChunks
(BlockPos pos, ServerWorld world) private static boolean
StructureTestUtil.isInStructureBounds
(BlockPos structureBlockPos, BlockPos pos, ServerWorld world) static void
StructureTestUtil.placeStartButton
(BlockPos pos, BlockPos relativePos, BlockRotation rotation, ServerWorld world) private static StructureBlockBlockEntity
StructureTestUtil.placeStructureTemplate
(String name, BlockPos pos, BlockRotation rotation, ServerWorld world, boolean bool) private static void
StructureTestUtil.resetBlock
(int altitude, BlockPos pos, ServerWorld world) private void
TestServer.runTestBatches
(ServerWorld world) static Collection<GameTestState>
TestUtil.runTestBatches
(Collection<GameTestBatch> batches, BlockPos pos, BlockRotation rotation, ServerWorld world, TestManager testManager, int sizeZ) static Collection<GameTestState>
TestUtil.runTestFunctions
(Collection<TestFunction> testFunctions, BlockPos pos, BlockRotation rotation, ServerWorld world, TestManager testManager, int sizeZ) protected static void
StructureTestListener.sendMessageToAllPlayers
(ServerWorld world, Formatting formatting, String message) void
GameTestBatch.startBatch
(ServerWorld world) Modifier and TypeMethodDescriptionprivate static <T extends Annotation>
voidTestFunctions.registerBatchConsumers
(Method method, Class<T> clazz, Function<T, String> batchIdFunction, Map<String, Consumer<ServerWorld>> batchConsumerMap) ModifierConstructorDescriptionGameTestState
(TestFunction testFunction, BlockRotation rotation, ServerWorld world) TestRunner
(Collection<GameTestBatch> batches, BlockPos pos, BlockRotation rotation, ServerWorld world, TestManager testManager, int sizeZ) ModifierConstructorDescriptionGameTestBatch
(String id, Collection<TestFunction> testFunctions, @Nullable Consumer<ServerWorld> beforeBatchConsumer, @Nullable Consumer<ServerWorld> afterBatchConsumer) -
Uses of ServerWorld in net.minecraft.util.math
-
Uses of ServerWorld in net.minecraft.village
Modifier and TypeMethodDescriptionZombieSiegeManager.getSpawnVector
(ServerWorld world, BlockPos pos) private boolean
ZombieSiegeManager.spawn
(ServerWorld world) int
ZombieSiegeManager.spawn
(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals) Spawns entities into a world.private void
ZombieSiegeManager.trySpawnZombie
(ServerWorld world) -
Uses of ServerWorld in net.minecraft.village.raid
Modifier and TypeFieldDescriptionprivate final ServerWorld
Raid.world
private final ServerWorld
RaidManager.world
Modifier and TypeMethodDescriptionstatic RaidManager
RaidManager.fromNbt
(ServerWorld world, NbtCompound nbt) private Raid
RaidManager.getOrCreateRaid
(ServerWorld world, BlockPos pos) ModifierConstructorDescriptionRaid
(int id, ServerWorld world, BlockPos pos) Raid
(ServerWorld world, NbtCompound nbt) RaidManager
(ServerWorld world) -
Uses of ServerWorld in net.minecraft.world
Modifier and TypeFieldDescriptionprivate final ServerWorld
ChunkRegion.world
private final ServerWorld
PortalForcer.world
Modifier and TypeMethodDescriptionabstract ServerWorld
CommandBlockExecutor.getWorld()
ChunkRegion.toServerWorld()
Deprecated.ServerWorldAccess.toServerWorld()
Modifier and TypeMethodDescriptionprivate static boolean
SpawnHelper.canSpawn
(ServerWorld world, SpawnGroup group, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnSettings.SpawnEntry spawnEntry, BlockPos.Mutable pos, double squaredDistance) private static boolean
SpawnHelper.containsSpawnEntry
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, SpawnSettings.SpawnEntry spawnEntry, BlockPos pos) SpawnHelper.createMob
(ServerWorld world, EntityType<?> type) static ProtoChunk
ChunkSerializer.deserialize
(ServerWorld world, PointOfInterestStorage poiStorage, ChunkPos chunkPos, NbtCompound nbt) private static WorldChunk.EntityLoader
ChunkSerializer.getEntityLoadingCallback
(ServerWorld world, NbtCompound nbt) private static Pool<SpawnSettings.SpawnEntry>
SpawnHelper.getSpawnEntries
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, BlockPos pos, @Nullable RegistryEntry<Biome> biomeEntry) private static boolean
SpawnHelper.isAcceptableSpawnPosition
(ServerWorld world, Chunk chunk, BlockPos.Mutable pos, double squaredDistance) private static boolean
SpawnHelper.isValidSpawn
(ServerWorld world, MobEntity entity, double squaredDistance) private static Optional<SpawnSettings.SpawnEntry>
SpawnHelper.pickRandomSpawnEntry
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, Random random, BlockPos pos) static NbtCompound
ChunkSerializer.serialize
(ServerWorld world, Chunk chunk) private static void
ChunkSerializer.serializeTicks
(ServerWorld world, NbtCompound nbt, Chunk.TickSchedulers tickSchedulers) void
MobSpawnerLogic.serverTick
(ServerWorld world, BlockPos pos) static boolean
SpawnHelper.shouldUseNetherFortressSpawns
(BlockPos pos, ServerWorld world, SpawnGroup spawnGroup, StructureAccessor structureAccessor) static void
SpawnHelper.spawn
(ServerWorld world, WorldChunk chunk, SpawnHelper.Info info, boolean spawnAnimals, boolean spawnMonsters, boolean rareSpawn) int
WanderingTraderManager.spawn
(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals) Spawns entities into a world.static void
SpawnHelper.spawnEntitiesInChunk
(SpawnGroup group, ServerWorld world, BlockPos pos) static void
SpawnHelper.spawnEntitiesInChunk
(SpawnGroup group, ServerWorld world, Chunk chunk, BlockPos pos, SpawnHelper.Checker checker, SpawnHelper.Runner runner) static void
SpawnHelper.spawnEntitiesInChunk
(SpawnGroup group, ServerWorld world, WorldChunk chunk, SpawnHelper.Checker checker, SpawnHelper.Runner runner) private void
WanderingTraderManager.spawnLlama
(ServerWorld world, WanderingTraderEntity wanderingTrader, int range) private boolean
WanderingTraderManager.trySpawn
(ServerWorld world) ModifierConstructorDescriptionChunkRegion
(ServerWorld world, List<Chunk> chunks, ChunkStatus status, int placementRadius) PortalForcer
(ServerWorld world) -
Uses of ServerWorld in net.minecraft.world.chunk
Modifier and TypeMethodDescriptionvoid
WorldChunk.addChunkTickSchedulers
(ServerWorld world) CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.Unloaded>> ChunkStatus.GenerationTask.doWork
(ChunkStatus targetStatus, Executor executor, ServerWorld world, ChunkGenerator generator, StructureTemplateManager structureTemplateManager, ServerLightingProvider lightingProvider, Function<Chunk, CompletableFuture<com.mojang.datafixers.util.Either<Chunk, ChunkHolder.Unloaded>>> fullChunkConverter, List<Chunk> chunks, Chunk chunk, boolean regenerate) CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.Unloaded>> ChunkStatus.LoadTask.doWork
(ChunkStatus targetStatus, ServerWorld world, StructureTemplateManager structureTemplateManager, ServerLightingProvider lightingProvider, Function<Chunk, CompletableFuture<com.mojang.datafixers.util.Either<Chunk, ChunkHolder.Unloaded>>> fullChunkConverter, Chunk chunk) default CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.Unloaded>> ChunkStatus.SimpleGenerationTask.doWork
(ChunkStatus targetStatus, Executor executor, ServerWorld world, ChunkGenerator generator, StructureTemplateManager structureTemplateManager, ServerLightingProvider lightingProvider, Function<Chunk, CompletableFuture<com.mojang.datafixers.util.Either<Chunk, ChunkHolder.Unloaded>>> fullChunkConverter, List<Chunk> chunks, Chunk chunk, boolean regenerate) void
ChunkStatus.SimpleGenerationTask.doWork
(ChunkStatus targetStatus, ServerWorld world, ChunkGenerator chunkGenerator, List<Chunk> chunks, Chunk chunk) void
WorldChunk.removeChunkTickSchedulers
(ServerWorld world) private <T extends BlockEntity>
voidWorldChunk.removeGameEventListener
(T blockEntity, ServerWorld serverWorld) CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.Unloaded>> ChunkStatus.runGenerationTask
(Executor executor, ServerWorld world, ChunkGenerator generator, StructureTemplateManager structureTemplateManager, ServerLightingProvider lightingProvider, Function<Chunk, CompletableFuture<com.mojang.datafixers.util.Either<Chunk, ChunkHolder.Unloaded>>> fullChunkConverter, List<Chunk> chunks, boolean regenerate) CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.Unloaded>> ChunkStatus.runLoadTask
(ServerWorld world, StructureTemplateManager structureTemplateManager, ServerLightingProvider lightingProvider, Function<Chunk, CompletableFuture<com.mojang.datafixers.util.Either<Chunk, ChunkHolder.Unloaded>>> fullChunkConverter, Chunk chunk) private <T extends BlockEntity>
voidWorldChunk.updateGameEventListener
(T blockEntity, ServerWorld serverWorld) ModifierConstructorDescriptionWorldChunk
(ServerWorld world, ProtoChunk protoChunk, @Nullable WorldChunk.EntityLoader entityLoader) -
Uses of ServerWorld in net.minecraft.world.dimension
Modifier and TypeMethodDescriptionstatic TeleportTarget
AreaHelper.getNetherTeleportTarget
(ServerWorld destination, BlockLocating.Rectangle portalRect, Direction.Axis portalAxis, Vec3d offset, EntityDimensions dimensions, Vec3d velocity, float yaw, float pitch) Determines aTeleportTarget
based on a specific portal. -
Uses of ServerWorld in net.minecraft.world.event.listener
Modifier and TypeMethodDescriptionvoid
VibrationListener.Callback.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.boolean
VibrationListener.Callback.accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.SimpleGameEventDispatcher.dispatchTo
(ServerWorld world, Vec3d listenerPos, GameEventListener listener) VibrationListener.Vibration.getEntity
(ServerWorld world) VibrationListener.Vibration.getOwner
(ServerWorld world) boolean
GameEventListener.listen
(ServerWorld world, GameEvent.Message event) Listens to an incoming game event.boolean
VibrationListener.listen
(ServerWorld world, GameEvent.Message event) Listens to an incoming game event.private void
VibrationListener.listen
(ServerWorld world, GameEvent gameEvent, GameEvent.Emitter emitter, Vec3d start, Vec3d end) void
EntityGameEventHandler.onEntityRemoval
(ServerWorld world) void
EntityGameEventHandler.onEntitySetPos
(ServerWorld world) void
EntityGameEventHandler.onEntitySetPosCallback
(ServerWorld world) -
Uses of ServerWorld in net.minecraft.world.gen.chunk
Modifier and TypeMethodDescriptionprivate @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Structure>> ChunkGenerator.locateConcentricRingsStructure
(Set<RegistryEntry<Structure>> structures, ServerWorld world, StructureAccessor structureAccessor, BlockPos center, boolean skipReferencedStructures, ConcentricRingsStructurePlacement placement) @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Structure>> ChunkGenerator.locateStructure
(ServerWorld world, RegistryEntryList<Structure> structures, BlockPos center, int radius, boolean skipReferencedStructures) Tries to find the closest structure of a given type near a given block. -
Uses of ServerWorld in net.minecraft.world.gen.feature.util
Modifier and TypeFieldDescriptionprivate static final LoadingCache<ServerWorld,
FeatureDebugLogger.Features> FeatureDebugLogger.FEATURES
Modifier and TypeMethodDescriptionstatic void
FeatureDebugLogger.incrementFeatureCount
(ServerWorld world, ConfiguredFeature<?, ?> configuredFeature, Optional<PlacedFeature> placedFeature) static void
FeatureDebugLogger.incrementTotalChunksCount
(ServerWorld world) -
Uses of ServerWorld in net.minecraft.world.spawner
Modifier and TypeMethodDescriptionint
CatSpawner.spawn
(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals) Spawns entities into a world.private int
CatSpawner.spawn
(BlockPos pos, ServerWorld world) Spawns a cat.int
PatrolSpawner.spawn
(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals) Spawns entities into a world.int
PhantomSpawner.spawn
(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals) Spawns entities into a world.int
Spawner.spawn
(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals) Spawns entities into a world.private int
CatSpawner.spawnInHouse
(ServerWorld world, BlockPos pos) Tries to spawn cats in villages.private int
CatSpawner.spawnInSwampHut
(ServerWorld world, BlockPos pos) Tries to spawn cats in swamp huts.private boolean
PatrolSpawner.spawnPillager
(ServerWorld world, BlockPos pos, Random random, boolean captain) -
Uses of ServerWorld in net.minecraft.world.storage
ModifierConstructorDescriptionEntityChunkDataAccess
(ServerWorld world, Path path, com.mojang.datafixers.DataFixer dataFixer, boolean dsync, Executor executor)
AbstractBlock.AbstractBlockState.onStacksDropped(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.item.ItemStack, boolean)
instead.