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.
The basic AI system for Minecraft living entities.
-
Uses of ServerWorld in net.minecraft.advancement.criterion
Modifier and TypeMethodDescriptionboolean
FallAfterExplosionCriterion.Conditions.matches
(ServerWorld world, Vec3d startPosition, Vec3d endPosition, @Nullable LootContext cause) boolean
TravelCriterion.Conditions.matches
(ServerWorld world, Vec3d pos, Vec3d endPos) -
Uses of ServerWorld in net.minecraft.block
Modifier and TypeMethodDescriptionprivate boolean
TurtleEggBlock.breaksEgg
(ServerWorld world, Entity entity) private static boolean
PointedDripstoneBlock.canGrow
(BlockState state, ServerWorld world, BlockPos pos) static BlockState
ComposterBlock.compost
(Entity user, BlockState state, ServerWorld world, ItemStack stack, BlockPos pos) protected void
CrafterBlock.craft
(BlockState state, ServerWorld world, BlockPos pos) EndGatewayBlock.createTeleportTarget
(ServerWorld world, Entity entity, BlockPos pos) EndPortalBlock.createTeleportTarget
(ServerWorld world, Entity entity, BlockPos pos) NetherPortalBlock.createTeleportTarget
(ServerWorld world, Entity entity, BlockPos pos) Portal.createTeleportTarget
(ServerWorld world, Entity entity, BlockPos pos) protected void
DispenserBlock.dispense
(ServerWorld world, BlockState state, BlockPos pos) protected void
DropperBlock.dispense
(ServerWorld world, BlockState state, 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.private void
CommandBlock.execute
(BlockState state, ServerWorld world, BlockPos pos, CommandBlockExecutor executor, boolean hasCommand) private static void
CommandBlock.executeCommandChain
(ServerWorld world, BlockPos pos, Direction facing) private void
NyliumBlock.generate
(Registry<ConfiguredFeature<?, ?>> registry, RegistryKey<ConfiguredFeature<?, ?>> key, ServerWorld world, ChunkGenerator chunkGenerator, Random random, BlockPos pos) void
SaplingBlock.generate
(ServerWorld world, BlockPos pos, BlockState state, Random random) boolean
SaplingGenerator.generate
(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random) static Optional
<RecipeEntry<CraftingRecipe>> CrafterBlock.getCraftingRecipe
(ServerWorld world, CraftingRecipeInput input) 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) private static TeleportTarget
NetherPortalBlock.getExitPortalTarget
(Entity entity, BlockPos pos, BlockLocating.Rectangle exitPortalRectangle, ServerWorld world, TeleportTarget.PostDimensionTransition postDimensionTransition) private static TeleportTarget
NetherPortalBlock.getExitPortalTarget
(ServerWorld world, BlockLocating.Rectangle exitPortalRectangle, Direction.Axis axis, Vec3d positionInPortal, Entity entity, TeleportTarget.PostDimensionTransition postDimensionTransition) 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.private @Nullable TeleportTarget
NetherPortalBlock.getOrCreateExitPortalTarget
(ServerWorld world, Entity entity, BlockPos pos, BlockPos scaledPos, boolean inNether, WorldBorder worldBorder) int
NetherPortalBlock.getPortalDelay
(ServerWorld world, Entity entity) default int
Portal.getPortalDelay
(ServerWorld world, Entity entity) 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
BambooShootBlock.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
Fertilizable.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
FlowerbedBlock.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
HangingMossBlock.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
PaleMossCarpetBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
PitcherCropBlock.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
ShortPlantBlock.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
Block.onDestroyedByExplosion
(ServerWorld world, BlockPos pos, Explosion explosion) Called when this block is destroyed by an explosion.void
TntBlock.onDestroyedByExplosion
(ServerWorld world, BlockPos pos, Explosion explosion) Called when this block is destroyed by an explosion.void
AbstractBlock.AbstractBlockState.onExploded
(ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected void
AbstractBlock.onExploded
(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected void
AbstractCandleBlock.onExploded
(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected void
BeehiveBlock.onExploded
(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected void
BellBlock.onExploded
(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected void
ButtonBlock.onExploded
(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected void
DoorBlock.onExploded
(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected void
FenceGateBlock.onExploded
(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected void
LeverBlock.onExploded
(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected void
TrapdoorBlock.onExploded
(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) void
AbstractBlock.AbstractBlockState.onStacksDropped
(ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) protected void
AbstractBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.protected void
ExperienceDroppingBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.protected void
InfestedBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.protected void
RedstoneOreBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.protected void
SculkCatalystBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.protected void
SculkSensorBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.protected void
SculkShriekerBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.protected void
SpawnerBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
AbstractBlock.AbstractBlockState.randomTick
(ServerWorld world, BlockPos pos, Random random) protected void
AbstractBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
AbstractPlantStemBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
BambooBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
BambooShootBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
BeetrootsBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
BuddingAmethystBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
CactusBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
ChorusFlowerBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
CocoaBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
CropBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
FarmlandBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
FluidBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
IceBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
LeavesBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
MushroomPlantBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
NetherPortalBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
NetherWartBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
NyliumBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
OxidizableBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
OxidizableBulbBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
OxidizableDoorBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
OxidizableGrateBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
OxidizableSlabBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
OxidizableStairsBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
OxidizableTrapdoorBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
PitcherCropBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
PointedDripstoneBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
PropaguleBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
RedstoneOreBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
SaplingBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
SnowBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
SpreadableBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
StemBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
SugarCaneBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
SweetBerryBushBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
TorchflowerBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
TurtleEggBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected 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) protected void
AbstractBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
AbstractCauldronBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
AbstractPlantPartBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
AbstractPressurePlateBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
AbstractRedstoneGateBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
BambooBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
BarrelBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
BigDripleafBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
BigDripleafStemBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BrushableBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
BubbleColumnBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
ButtonBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
CactusBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
ChestBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
ChorusFlowerBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
ChorusPlantBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
CommandBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
ComparatorBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
ComposterBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
CoralBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
CoralBlockBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
CoralFanBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
CoralWallFanBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
CrafterBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
DetectorRailBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
DirtPathBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
DispenserBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
EnderChestBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
FallingBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
FarmlandBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
FireBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
FrogspawnBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
FrostedIceBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
HangingMossBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
LeavesBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
LecternBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
LightningRodBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
MagmaBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
ObserverBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
PointedDripstoneBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
RedstoneLampBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
RedstoneTorchBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
ScaffoldingBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
SculkCatalystBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
SculkSensorBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
SculkShriekerBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SnifferEggBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
SoulSandBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
SugarCaneBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
TargetBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected void
TripwireBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected 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) private void
CrafterBlock.transferOrSpawnStack
(ServerWorld world, BlockPos pos, CrafterBlockEntity blockEntity, ItemStack stack, BlockState state, RecipeEntry<?> recipe) default Optional
<BlockState> Degradable.tryDegrade
(BlockState state, ServerWorld world, BlockPos pos, Random random) private void
PitcherCropBlock.tryGrow
(ServerWorld world, BlockState state, BlockPos pos, int amount) 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) void
BulbBlock.update
(BlockState state, ServerWorld world, BlockPos pos) -
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, ItemStack shears) -
Uses of ServerWorld in net.minecraft.block.entity
Modifier and TypeMethodDescriptionvoid
SculkSensorBlockEntity.VibrationCallback.accept
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.void
SculkShriekerBlockEntity.VibrationCallback.accept
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.boolean
CalibratedSculkSensorBlockEntity.Callback.accepts
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
SculkSensorBlockEntity.VibrationCallback.accepts
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
SculkShriekerBlockEntity.VibrationCallback.accepts
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
CampfireBlockEntity.addItem
(ServerWorld world, @Nullable LivingEntity entity, ItemStack stack) private void
SculkCatalystBlockEntity.Listener.bloom
(ServerWorld world, BlockPos pos, BlockState state, Random random) boolean
BrushableBlockEntity.brush
(long worldTime, ServerWorld world, PlayerEntity player, Direction hitDirection, ItemStack brush) private boolean
SculkShriekerBlockEntity.canWarn
(ServerWorld world) (package private) static void
VaultBlockEntity.Server.changeVaultState
(ServerWorld world, BlockPos pos, BlockState oldState, BlockState newState, VaultConfig config, VaultSharedData sharedData) 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) private void
BrushableBlockEntity.finishBrushing
(ServerWorld world, PlayerEntity player, ItemStack brush) void
JigsawBlockEntity.generate
(ServerWorld world, int maxDepth, boolean keepJigsaws) private static ItemStack
VaultBlockEntity.Server.generateDisplayItem
(ServerWorld world, BlockPos pos, RegistryKey<LootTable> lootTable) private void
BrushableBlockEntity.generateItem
(ServerWorld world, PlayerEntity player, ItemStack brush) VaultBlockEntity.Server.generateLoot
(ServerWorld world, VaultConfig config, BlockPos pos, PlayerEntity player, ItemStack key) private ServerCommandSource
LecternBlockEntity.getCommandSource
(@Nullable PlayerEntity player, ServerWorld world) private static int
AbstractFurnaceBlockEntity.getCookTime
(ServerWorld world, AbstractFurnaceBlockEntity furnace) EndGatewayBlockEntity.getOrCreateExitPortalPos
(ServerWorld world, BlockPos pos) private static List
<ServerPlayerEntity> SculkShriekerWarningManager.getPlayersInRange
(ServerWorld world, BlockPos pos) List
<RecipeEntry<?>> AbstractFurnaceBlockEntity.getRecipesUsedAndDropExperience
(ServerWorld world, Vec3d pos) private @Nullable StructureTemplate
StructureBlockBlockEntity.getStructureTemplate
(ServerWorld world) private static boolean
EndGatewayBlockEntity.isChunkEmpty
(ServerWorld world, Vec3d pos) private static boolean
SculkShriekerWarningManager.isWardenNearby
(ServerWorld world, BlockPos pos) boolean
SculkCatalystBlockEntity.Listener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.static void
CampfireBlockEntity.litServerTick
(ServerWorld world, BlockPos pos, BlockState state, CampfireBlockEntity blockEntity, ServerRecipeManager.MatchGetter<SingleStackRecipeInput, CampfireCookingRecipe> recipeMatchGetter) void
StructureBlockBlockEntity.loadAndPlaceStructure
(ServerWorld world) private void
StructureBlockBlockEntity.loadAndPlaceStructure
(ServerWorld world, StructureTemplate template) boolean
StructureBlockBlockEntity.loadAndTryPlaceStructure
(ServerWorld world) boolean
StructureBlockBlockEntity.loadStructure
(ServerWorld world) private static void
VaultBlockEntity.Server.playFailedUnlockSound
(ServerWorld world, VaultServerData serverData, BlockPos pos, SoundEvent sound) void
BrushableBlockEntity.scheduledTick
(ServerWorld world) 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 static @Nullable TransientCreakingEntity
CreakingHeartBlockEntity.spawnCreakingPuppet
(ServerWorld world, CreakingHeartBlockEntity blockEntity) private void
BrushableBlockEntity.spawnItem
(ServerWorld world, PlayerEntity player, ItemStack brush) private void
CreakingHeartBlockEntity.spawnTrailParticles
(ServerWorld world, int count, boolean towardsPuppet) static void
AbstractFurnaceBlockEntity.tick
(ServerWorld world, BlockPos pos, BlockState state, AbstractFurnaceBlockEntity blockEntity) static void
VaultBlockEntity.Server.tick
(ServerWorld world, BlockPos pos, BlockState state, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData) private boolean
SculkShriekerBlockEntity.trySpawnWarden
(ServerWorld world) private boolean
SculkShriekerBlockEntity.trySyncWarningLevel
(ServerWorld world, ServerPlayerEntity player) static void
VaultBlockEntity.Server.tryUnlock
(ServerWorld world, BlockPos pos, BlockState state, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, PlayerEntity player, ItemStack stack) private static void
VaultBlockEntity.Server.unlock
(ServerWorld world, BlockState state, BlockPos pos, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, List<ItemStack> itemsToEject) (package private) static void
VaultBlockEntity.Server.updateDisplayItem
(ServerWorld world, VaultState state, VaultConfig config, VaultSharedData sharedData, BlockPos pos) void
SculkShriekerBlockEntity.warn
(ServerWorld world) static OptionalInt
SculkShriekerWarningManager.warnNearbyPlayers
(ServerWorld world, BlockPos pos, ServerPlayerEntity player) -
Uses of ServerWorld in net.minecraft.block.enums
Modifier and TypeMethodDescriptionprivate void
VaultState.ejectItem
(ServerWorld world, BlockPos pos, ItemStack stack, float pitchModifier) TrialSpawnerState.getPosAbove
(Entity entity, ServerWorld world) TrialSpawnerState.getPosToSpawnItemSpawner
(ServerWorld world, BlockPos pos, TrialSpawnerLogic logic, TrialSpawnerData data) TrialSpawnerState.getRandomEntity
(List<PlayerEntity> players, Set<UUID> entityUuids, TrialSpawnerLogic logic, BlockPos pos, ServerWorld world) protected void
VaultState.onChangedFrom
(ServerWorld world, BlockPos pos, VaultConfig config, VaultSharedData sharedData) protected void
VaultState.onChangedTo
(ServerWorld world, BlockPos pos, VaultConfig config, VaultSharedData sharedData, boolean ominous) void
VaultState.onStateChange
(ServerWorld world, BlockPos pos, VaultState newState, VaultConfig config, VaultSharedData sharedData, boolean ominous) private boolean
TrialSpawnerState.shouldCooldownEnd
(ServerWorld world, TrialSpawnerData data) private void
TrialSpawnerState.spawnOminousItemSpawner
(ServerWorld world, BlockPos pos, TrialSpawnerLogic logic) (package private) TrialSpawnerState
TrialSpawnerState.tick
(BlockPos pos, TrialSpawnerLogic logic, ServerWorld world) VaultState.update
(ServerWorld world, BlockPos pos, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData) private static VaultState
VaultState.updateActiveState
(ServerWorld world, BlockPos pos, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, double radius) -
Uses of ServerWorld in net.minecraft.block.spawner
Modifier and TypeMethodDescriptionboolean
TrialSpawnerLogic.canActivate
(ServerWorld world) boolean
MobSpawnerEntry.CustomSpawnRules.canSpawn
(BlockPos pos, ServerWorld world) boolean
TrialSpawnerData.canSpawnMore
(ServerWorld world, TrialSpawnerConfig config, int additionalPlayers) EntityDetector.detect
(ServerWorld world, EntityDetector.Selector selector, BlockPos center, double radius, boolean spawner) void
TrialSpawnerLogic.ejectLootTable
(ServerWorld world, BlockPos pos, RegistryKey<LootTable> lootTable) private static Optional
<com.mojang.datafixers.util.Pair<PlayerEntity, RegistryEntry<StatusEffect>>> TrialSpawnerData.findPlayerWithOmen
(ServerWorld world, List<UUID> players) EntityDetector.Selector.getEntities
(ServerWorld world, TypeFilter<Entity, T> typeFilter, Box box, Predicate<? super T> predicate) TrialSpawnerData.getItemsToDropWhenOminous
(ServerWorld world, TrialSpawnerConfig config, BlockPos pos) private static long
TrialSpawnerData.getLootSeed
(ServerWorld world, BlockPos pos) List
<? extends PlayerEntity> EntityDetector.Selector.getPlayers
(ServerWorld world, Predicate<? super PlayerEntity> predicate) boolean
TrialSpawnerData.isCooldownAtRepeating
(ServerWorld world, float float2, int int2) boolean
TrialSpawnerData.isCooldownOver
(ServerWorld world) boolean
TrialSpawnerData.isCooldownPast
(ServerWorld world, float float2, int int2) void
TrialSpawnerData.resetAndClearMobs
(TrialSpawnerLogic logic, ServerWorld world) void
MobSpawnerLogic.serverTick
(ServerWorld world, BlockPos pos) void
TrialSpawnerLogic.setNotOminous
(ServerWorld world, BlockPos pos) void
TrialSpawnerLogic.setOminous
(ServerWorld world, BlockPos pos) private static boolean
TrialSpawnerLogic.shouldRemoveMobFromData
(ServerWorld world, BlockPos pos, UUID uuid) void
TrialSpawnerLogic.tickServer
(ServerWorld world, BlockPos pos, boolean ominous) TrialSpawnerLogic.trySpawnMob
(ServerWorld world, BlockPos pos) void
TrialSpawnerData.updatePlayers
(ServerWorld world, BlockPos pos, TrialSpawnerLogic logic) -
Uses of ServerWorld in net.minecraft.block.vault
Modifier and TypeMethodDescription(package private) void
VaultSharedData.updateConnectedPlayers
(ServerWorld world, BlockPos pos, VaultServerData serverData, VaultConfig config, double radius) -
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, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event. -
Uses of ServerWorld in net.minecraft.command
Modifier and TypeMethodDescriptionprivate void
EntitySelector.appendEntitiesFromWorld
(List<Entity> entities, ServerWorld world, @Nullable Box box, 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 TypeMethodDescriptionstatic BlockPos
BlockPosArgumentType.getLoadedBlockPos
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, ServerWorld world, String name) boolean
BlockStateArgument.setBlockState
(ServerWorld world, BlockPos pos, int flags) boolean
BlockStateArgument.test
(ServerWorld world, BlockPos pos) -
Uses of ServerWorld in net.minecraft.component.type
-
Uses of ServerWorld in net.minecraft.enchantment
Modifier and TypeMethodDescriptionvoid
Enchantment.applyLocationBasedEffects
(ServerWorld world, int level, EnchantmentEffectContext context, LivingEntity user) static void
EnchantmentHelper.applyLocationBasedEffects
(ServerWorld world, LivingEntity user) static void
EnchantmentHelper.applyLocationBasedEffects
(ServerWorld world, ItemStack stack, LivingEntity user, EquipmentSlot slot) static void
Enchantment.applyTargetedEffect
(TargetedEnchantmentEffect<EnchantmentEntityEffect> effect, ServerWorld world, int level, EnchantmentEffectContext context, Entity user, DamageSource damageSource) static LootContext
Enchantment.createEnchantedDamageLootContext
(ServerWorld world, int level, Entity entity, DamageSource damageSource) private static LootContext
Enchantment.createEnchantedEntityLootContext
(ServerWorld world, int level, Entity entity, Vec3d pos) private static LootContext
Enchantment.createEnchantedItemLootContext
(ServerWorld world, int level, ItemStack stack) private static LootContext
Enchantment.createEnchantedLocationLootContext
(ServerWorld world, int level, Entity entity, boolean enchantmentActive) private static LootContext
Enchantment.createHitBlockLootContext
(ServerWorld world, int level, Entity entity, Vec3d pos, BlockState state) static int
EnchantmentHelper.getAmmoUse
(ServerWorld world, ItemStack rangedWeaponStack, ItemStack projectileStack, int baseAmmoUse) static float
EnchantmentHelper.getArmorEffectiveness
(ServerWorld world, ItemStack stack, Entity user, DamageSource damageSource, float baseArmorEffectiveness) static int
EnchantmentHelper.getBlockExperience
(ServerWorld world, ItemStack stack, int baseBlockExperience) static float
EnchantmentHelper.getDamage
(ServerWorld world, ItemStack stack, Entity target, DamageSource damageSource, float baseDamage) static float
EnchantmentHelper.getEquipmentDropChance
(ServerWorld world, LivingEntity attacker, DamageSource damageSource, float baseEquipmentDropChance) static int
EnchantmentHelper.getFishingLuckBonus
(ServerWorld world, ItemStack stack, Entity user) static float
EnchantmentHelper.getFishingTimeReduction
(ServerWorld world, ItemStack stack, Entity user) static int
EnchantmentHelper.getItemDamage
(ServerWorld world, ItemStack stack, int baseItemDamage) static int
EnchantmentHelper.getMobExperience
(ServerWorld world, @Nullable Entity attacker, Entity mob, int baseMobExperience) static int
EnchantmentHelper.getProjectileCount
(ServerWorld world, ItemStack stack, Entity user, int baseProjectileCount) static int
EnchantmentHelper.getProjectilePiercing
(ServerWorld world, ItemStack weaponStack, ItemStack projectileStack) static float
EnchantmentHelper.getProjectileSpread
(ServerWorld world, ItemStack stack, Entity user, float baseProjectileSpread) static float
EnchantmentHelper.getProtectionAmount
(ServerWorld world, LivingEntity user, DamageSource damageSource) static int
EnchantmentHelper.getRepairWithXp
(ServerWorld world, ItemStack stack, int baseRepairWithXp) static float
EnchantmentHelper.getSmashDamagePerFallenBlock
(ServerWorld world, ItemStack stack, Entity target, DamageSource damageSource, float baseSmashDamagePerFallenBlock) static int
EnchantmentHelper.getTridentReturnAcceleration
(ServerWorld world, ItemStack stack, Entity user) boolean
Enchantment.hasDamageImmunityTo
(ServerWorld world, int level, Entity user, DamageSource damageSource) static boolean
EnchantmentHelper.isInvulnerableTo
(ServerWorld world, LivingEntity user, DamageSource damageSource) void
Enchantment.modifyAmmoUse
(ServerWorld world, int level, ItemStack projectileStack, MutableFloat ammoUse) void
Enchantment.modifyArmorEffectiveness
(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat armorEffectiveness) void
Enchantment.modifyBlockExperience
(ServerWorld world, int level, ItemStack stack, MutableFloat blockExperience) void
Enchantment.modifyDamage
(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat damage) void
Enchantment.modifyDamageProtection
(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat damageProtection) void
Enchantment.modifyFishingLuckBonus
(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat fishingLuckBonus) void
Enchantment.modifyFishingTimeReduction
(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat fishingTimeReduction) void
Enchantment.modifyItemDamage
(ServerWorld world, int level, ItemStack stack, MutableFloat itemDamage) void
Enchantment.modifyKnockback
(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat knockback) static float
EnchantmentHelper.modifyKnockback
(ServerWorld world, ItemStack stack, Entity target, DamageSource damageSource, float baseKnockback) void
Enchantment.modifyMobExperience
(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat mobExperience) void
Enchantment.modifyProjectileCount
(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat projectileCount) void
Enchantment.modifyProjectilePiercing
(ServerWorld world, int level, ItemStack stack, MutableFloat projectilePiercing) void
Enchantment.modifyProjectileSpread
(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat projectileSpread) void
Enchantment.modifyRepairWithXp
(ServerWorld world, int level, ItemStack stack, MutableFloat repairWithXp) void
Enchantment.modifySmashDamagePerFallenBlock
(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat smashDamagePerFallenBlock) void
Enchantment.modifyTridentReturnAcceleration
(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat tridentReturnAcceleration) private void
Enchantment.modifyValue
(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat value) private void
Enchantment.modifyValue
(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat value) private void
Enchantment.modifyValue
(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, MutableFloat value) void
Enchantment.onHitBlock
(ServerWorld world, int level, EnchantmentEffectContext context, Entity enchantedEntity, Vec3d pos, BlockState state) static void
EnchantmentHelper.onHitBlock
(ServerWorld world, ItemStack stack, @Nullable LivingEntity user, Entity enchantedEntity, @Nullable EquipmentSlot slot, Vec3d pos, BlockState state, Consumer<Item> onBreak) void
Enchantment.onProjectileSpawned
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user) static void
EnchantmentHelper.onProjectileSpawned
(ServerWorld world, ItemStack weaponStack, ProjectileEntity projectile, Consumer<Item> onBreak) void
Enchantment.onTargetDamaged
(ServerWorld world, int level, EnchantmentEffectContext context, EnchantmentEffectTarget target, Entity user, DamageSource damageSource) static void
EnchantmentHelper.onTargetDamaged
(ServerWorld world, Entity target, DamageSource damageSource) static void
EnchantmentHelper.onTargetDamaged
(ServerWorld world, Entity target, DamageSource damageSource, @Nullable ItemStack weapon) static void
EnchantmentHelper.onTargetDamaged
(ServerWorld world, Entity target, DamageSource damageSource, @Nullable ItemStack weapon, Consumer<Item> breakCallback) void
Enchantment.onTick
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user) static void
EnchantmentHelper.onTick
(ServerWorld world, LivingEntity user) -
Uses of ServerWorld in net.minecraft.enchantment.effect
Modifier and TypeMethodDescriptionvoid
AllOfEnchantmentEffects.EntityEffects.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
AllOfEnchantmentEffects.LocationBasedEffects.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
AttributeEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
EnchantmentEntityEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) default void
EnchantmentEntityEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
EnchantmentLocationBasedEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) -
Uses of ServerWorld in net.minecraft.enchantment.effect.entity
Modifier and TypeMethodDescriptionvoid
ApplyMobEffectEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
ChangeItemDamageEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
DamageEntityEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
ExplodeEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
IgniteEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
PlaySoundEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
ReplaceBlockEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
ReplaceDiskEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
RunFunctionEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
SetBlockPropertiesEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
SpawnParticlesEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
SummonEntityEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) -
Uses of ServerWorld in net.minecraft.entity
Modifier and TypeMethodDescriptionprotected void
LivingEntity.applyDamage
(ServerWorld world, DamageSource source, float amount) protected void
LivingEntity.applyMovementEffects
(ServerWorld world, BlockPos pos) boolean
Entity.canModifyAt
(ServerWorld world, BlockPos pos) Returns whether the entity can modify the world atpos
.boolean
LargeEntitySpawnHelper.Requirements.canSpawnOn
(ServerWorld world, BlockPos pos, BlockState state, BlockPos abovePos, BlockState aboveState) EntityType.create
(ServerWorld world, @Nullable Consumer<T> afterConsumer, BlockPos pos, SpawnReason reason, boolean alignPosition, boolean invertY) final boolean
AreaEffectCloudEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.abstract boolean
Entity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.final boolean
ExperienceOrbEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
EyeOfEnderEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.final boolean
FallingBlockEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.final boolean
ItemEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.final boolean
LightningEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
LivingEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.final boolean
MarkerEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.final boolean
OminousItemSpawnerEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.final boolean
TntEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.protected void
LivingEntity.drop
(ServerWorld world, DamageSource damageSource) protected void
LivingEntity.dropEquipment
(ServerWorld world, DamageSource source, boolean causedByPlayer) protected void
LivingEntity.dropInventory
(ServerWorld world) Entity.dropItem
(ServerWorld world, ItemConvertible item) Drops oneitem
at the entity's position.Entity.dropItem
(ServerWorld world, ItemConvertible item, int offsetY) Drops oneitem
at the entity's position with the given Y offset.protected void
LivingEntity.dropLoot
(ServerWorld world, DamageSource damageSource, boolean causedByPlayer) Entity.dropStack
(ServerWorld world, ItemStack stack) Dropsstack
at the entity's position.Entity.dropStack
(ServerWorld world, ItemStack stack, float yOffset) Dropsstack
at the entity's position with the given Y offset.protected void
LivingEntity.dropXp
(ServerWorld world, @Nullable Entity attacker) Drops experience when this entity is killed.private static boolean
LargeEntitySpawnHelper.findSpawnPos
(ServerWorld world, int verticalRange, BlockPos.Mutable pos, LargeEntitySpawnHelper.Requirements requirements) protected boolean
LivingEntity.forEachGeneratedItem
(ServerWorld world, RegistryKey<LootTable> lootTableKey, Function<LootWorldContext.Builder, LootWorldContext> lootContextParametersFactory, BiConsumer<ServerWorld, ItemStack> lootConsumer) boolean
LivingEntity.forEachGiftedItem
(ServerWorld world, RegistryKey<LootTable> lootTableKey, BiConsumer<ServerWorld, ItemStack> lootConsumer) protected void
LivingEntity.forEachShearedItem
(ServerWorld world, RegistryKey<LootTable> lootTableKey, ItemStack tool, BiConsumer<ServerWorld, ItemStack> lootConsumer) Entity.getCommandSource
(ServerWorld world) Returns a command source which represents this entity.Entity.getWorldSpawnPos
(ServerWorld world, BlockPos basePos) protected int
LivingEntity.getXpToDrop
(ServerWorld world) Called when this entity is killed and returns the amount of experience to drop.final int
LivingEntity.getXpToDrop
(ServerWorld world, @Nullable Entity attacker) boolean
LivingEntity.isInvulnerableTo
(ServerWorld world, DamageSource source) void
Entity.kill
(ServerWorld world) Kills the entity.void
LivingEntity.kill
(ServerWorld world) Kills the entity.boolean
Entity.onKilledOther
(ServerWorld world, LivingEntity other) Called when this entity killsother
.protected void
LivingEntity.onRemoval
(ServerWorld world, Entity.RemovalReason reason) void
Entity.onStruckByLightning
(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.static void
InventoryOwner.pickUpItem
(ServerWorld world, MobEntity entity, InventoryOwner inventoryOwner, ItemEntity item) private void
AreaEffectCloudEntity.serverTick
(ServerWorld world) void
Shearable.sheared
(ServerWorld world, SoundCategory shearedSoundCategory, ItemStack shears) EntityType.spawn
(ServerWorld world, @Nullable Consumer<T> afterConsumer, BlockPos pos, SpawnReason reason, boolean alignPosition, boolean invertY) EntityType.spawn
(ServerWorld world, BlockPos pos, SpawnReason reason) 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) private Entity
OminousItemSpawnerEntity.spawnProjectile
(ServerWorld world, ProjectileItem item, ItemStack stack) boolean
Entity.teleport
(ServerWorld world, double destX, double destY, double destZ, Set<PositionFlag> flags, float yaw, float pitch, boolean resetCamera) Teleports the entity to the given position.private Entity
Entity.teleportCrossDimension
(ServerWorld world, TeleportTarget teleportTarget) private Entity
Entity.teleportSameDimension
(ServerWorld world, TeleportTarget teleportTarget) Leashable.tickLeash
(ServerWorld world, E entity) private void
OminousItemSpawnerEntity.tickServer
(ServerWorld world) boolean
LivingEntity.tryAttack
(ServerWorld world, Entity target) 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 TypeMethodDescriptionprotected boolean
LivingEntity.forEachGeneratedItem
(ServerWorld world, RegistryKey<LootTable> lootTableKey, Function<LootWorldContext.Builder, LootWorldContext> lootContextParametersFactory, BiConsumer<ServerWorld, ItemStack> lootConsumer) boolean
LivingEntity.forEachGiftedItem
(ServerWorld world, RegistryKey<LootTable> lootTableKey, BiConsumer<ServerWorld, ItemStack> lootConsumer) protected void
LivingEntity.forEachShearedItem
(ServerWorld world, RegistryKey<LootTable> lootTableKey, ItemStack tool, BiConsumer<ServerWorld, ItemStack> lootConsumer) void
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 TypeMethodDescriptionboolean
TargetPredicate.EntityPredicate.test
(LivingEntity target, ServerWorld world) boolean
TargetPredicate.test
(ServerWorld world, @Nullable LivingEntity tester, LivingEntity target) void
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) ModifierConstructorDescriptionLivingTargetCache
(ServerWorld world, LivingEntity owner, List<LivingEntity> entities) -
Uses of ServerWorld in net.minecraft.entity.ai.brain.sensor
Modifier and TypeMethodDescriptionstatic BiPredicate
<ServerWorld, LivingEntity> Sensor.hasTargetBeenAttackableRecently
(LivingEntity entity, int ticks) Modifier and TypeMethodDescriptionHoglinSpecificSensor.findNearestWarpedFungus
(ServerWorld world, HoglinEntity hoglin) PiglinSpecificSensor.findPiglinRepellent
(ServerWorld world, LivingEntity entity) private Optional
<LivingEntity> NearestVisibleLivingEntitySensor.getNearestVisibleLivingEntity
(ServerWorld world, LivingEntity entity) private static boolean
PiglinSpecificSensor.isPiglinRepellent
(ServerWorld world, BlockPos pos) protected boolean
AxolotlAttackablesSensor.matches
(ServerWorld world, LivingEntity entity, LivingEntity target) protected boolean
FrogAttackablesSensor.matches
(ServerWorld world, LivingEntity entity, LivingEntity target) protected abstract boolean
NearestVisibleLivingEntitySensor.matches
(ServerWorld world, LivingEntity entity, LivingEntity target) protected boolean
VillagerHostilesSensor.matches
(ServerWorld world, LivingEntity entity, LivingEntity target) protected void
ArmadilloScareDetectedSensor.sense
(ServerWorld world, T entity) protected void
BreezeAttackablesSensor.sense
(ServerWorld serverWorld, BreezeEntity breezeEntity) 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) static boolean
Sensor.testAttackableTargetPredicate
(ServerWorld world, LivingEntity entity, LivingEntity target) static boolean
Sensor.testAttackableTargetPredicateIgnoreVisibility
(ServerWorld world, LivingEntity entity, LivingEntity target) static boolean
Sensor.testTargetPredicate
(ServerWorld world, LivingEntity entity, LivingEntity target) final void
Sensor.tick
(ServerWorld world, E entity) -
Uses of ServerWorld in net.minecraft.entity.ai.brain.task
Modifier and TypeMethodDescriptionvoid
ForgetAttackTargetTask.ForgetCallback.accept
(ServerWorld world, E entity, LivingEntity target) private boolean
BoneMealTask.canBoneMeal
(BlockPos pos, ServerWorld world) private 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
FarmerWorkTask.compostSeeds
(ServerWorld world, VillagerEntity entity, GlobalPos pos, BlockState composterState) private void
FarmerWorkTask.craftAndDropBread
(ServerWorld world, VillagerEntity villager) private Optional
<VillagerEntity> VillagerBreedTask.createChild
(ServerWorld world, VillagerEntity parent, VillagerEntity partner) private void
FrogEatEntityTask.eat
(ServerWorld world, FrogEntity frog) BoneMealTask.findBoneMealPos
(ServerWorld world, VillagerEntity entity) SeekSkyTask.findNearbySky
(ServerWorld world, LivingEntity entity) FleeTask.findTarget
(E 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
BreezeJumpTask.finishRunning
(ServerWorld serverWorld, BreezeEntity breezeEntity, long long2) protected void
BreezeShootTask.finishRunning
(ServerWorld serverWorld, BreezeEntity breezeEntity, long long2) protected void
CelebrateRaidWinTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) 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
FleeTask.finishRunning
(ServerWorld serverWorld, E e, 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
MoveToTargetTask.finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
MultiTickTask.finishRunning
(ServerWorld world, E entity, long time) protected void
PrepareRamTask.finishRunning
(ServerWorld serverWorld, E e, long long2) protected void
RoarTask.finishRunning
(ServerWorld serverWorld, WardenEntity wardenEntity, 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
TemptTask.finishRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
TickCooldownTask.finishRunning
(ServerWorld world, LivingEntity entity, long time) protected void
UpdateLookControlTask.finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
VillagerBreedTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
WalkTowardsJobSiteTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) Optional
<? extends LivingEntity> UpdateAttackTargetTask.TargetGetter.get
(ServerWorld world, E entity) private static int
GiveGiftsToHeroTask.getNextGiftDelay
(ServerWorld world) static ChunkSectionPos
TargetUtil.getPosClosestToOccupiedPointOfInterest
(ServerWorld world, ChunkSectionPos center, int radius) VillagerBreedTask.getReachableHome
(ServerWorld world, VillagerEntity villager) private void
GiveGiftsToHeroTask.giveGifts
(ServerWorld world, VillagerEntity villager, LivingEntity recipient) private void
VillagerBreedTask.goHome
(ServerWorld world, VillagerEntity first, VillagerEntity second) private static boolean
VillagerTaskListProvider.hasActiveRaid
(ServerWorld world, LivingEntity entity) private static boolean
BreezeJumpTask.hasRoomToJump
(ServerWorld world, BreezeEntity breeze) 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 static boolean
ForgetCompletedPointOfInterestTask.isBedOccupiedByOthers
(ServerWorld world, BlockPos pos, LivingEntity entity) private boolean
JumpInBedTask.isDoneJumping
(ServerWorld world, MobEntity mob) 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
BreezeJumpTask.keepRunning
(ServerWorld serverWorld, BreezeEntity breezeEntity, long long2) protected void
BreezeShootTask.keepRunning
(ServerWorld serverWorld, BreezeEntity breezeEntity, long long2) protected void
CelebrateRaidWinTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) 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
FleeTask.keepRunning
(ServerWorld serverWorld, E e, 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
MoveToTargetTask.keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
MultiTickTask.keepRunning
(ServerWorld world, E entity, long time) 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
TemptTask.keepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
TickCooldownTask.keepRunning
(ServerWorld world, LivingEntity entity, long time) protected void
UpdateLookControlTask.keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
VillagerBreedTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
WalkTowardsJobSiteTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) static void
OpenDoorsTask.pathToDoor
(ServerWorld world, LivingEntity entity, @Nullable PathNode lastNode, @Nullable PathNode currentNode, Set<GlobalPos> doors, Optional<List<LivingEntity>> otherMobs) protected void
FarmerWorkTask.performAdditionalWork
(ServerWorld world, VillagerEntity entity) protected void
VillagerWorkTask.performAdditionalWork
(ServerWorld world, VillagerEntity entity) protected void
LongJumpTask.pickTarget
(ServerWorld world, E entity, long time) protected Optional
<LongJumpTask.Target> BiasedLongJumpTask.removeRandomTarget
(ServerWorld world) protected Optional
<LongJumpTask.Target> LongJumpTask.removeRandomTarget
(ServerWorld world) 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
BreezeJumpTask.run
(ServerWorld serverWorld, BreezeEntity breezeEntity, long long2) protected void
BreezeShootIfStuckTask.run
(ServerWorld serverWorld, BreezeEntity breezeEntity, long long2) protected void
BreezeShootTask.run
(ServerWorld serverWorld, BreezeEntity breezeEntity, long long2) protected void
BreezeSlideTowardsTargetTask.run
(ServerWorld serverWorld, BreezeEntity breezeEntity, long long2) abstract <E extends LivingEntity>
voidCompositeTask.RunMode.run
(Stream<Task<? super E>> tasks, ServerWorld world, E entity, long time) protected void
CroakTask.run
(ServerWorld serverWorld, FrogEntity frogEntity, long long2) 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
FarmerVillagerTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
FleeTask.run
(ServerWorld serverWorld, E e, long long2) protected void
FollowCustomerTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) 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) void
HoldTradeOffersTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
JumpInBedTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
LeapingChargeTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
LongJumpTask.run
(ServerWorld serverWorld, E e, long long2) protected void
LookAroundTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
MoveToTargetTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
MultiTickTask.run
(ServerWorld world, E 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
PrepareRamTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
RamImpactTask.run
(ServerWorld serverWorld, GoatEntity goatEntity, long long2) protected void
RoarTask.run
(ServerWorld serverWorld, WardenEntity wardenEntity, 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) TaskTriggerer.TaskFunction.run
(ServerWorld world, E entity, long time) protected void
TemptTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
VillagerBreedTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
VillagerWorkTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) private void
VillagerBreedTask.setChildHome
(ServerWorld world, VillagerEntity child, BlockPos pos) static boolean
BreezeJumpTask.shouldJump
(ServerWorld world, BreezeEntity breeze) protected boolean
BoneMealTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
BreedTask.shouldKeepRunning
(ServerWorld serverWorld, AnimalEntity animalEntity, long long2) protected boolean
BreezeJumpTask.shouldKeepRunning
(ServerWorld serverWorld, BreezeEntity breezeEntity, long long2) protected boolean
BreezeShootIfStuckTask.shouldKeepRunning
(ServerWorld serverWorld, BreezeEntity breezeEntity, long long2) protected boolean
BreezeShootTask.shouldKeepRunning
(ServerWorld serverWorld, BreezeEntity breezeEntity, long long2) protected boolean
CelebrateRaidWinTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) 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
FleeTask.shouldKeepRunning
(ServerWorld serverWorld, E e, 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
MoveToTargetTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
MultiTickTask.shouldKeepRunning
(ServerWorld world, E entity, long time) 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
TemptTask.shouldKeepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected boolean
TickCooldownTask.shouldKeepRunning
(ServerWorld world, LivingEntity entity, long time) protected boolean
UpdateLookControlTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
VillagerBreedTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
VillagerWorkTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
WalkTowardsJobSiteTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
BoneMealTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
BreedTask.shouldRun
(ServerWorld serverWorld, AnimalEntity animalEntity) protected boolean
BreezeJumpTask.shouldRun
(ServerWorld serverWorld, BreezeEntity breezeEntity) protected boolean
BreezeShootIfStuckTask.shouldRun
(ServerWorld serverWorld, BreezeEntity breezeEntity) protected boolean
BreezeShootTask.shouldRun
(ServerWorld serverWorld, BreezeEntity breezeEntity) protected boolean
BreezeSlideTowardsTargetTask.shouldRun
(ServerWorld serverWorld, BreezeEntity breezeEntity) protected boolean
CelebrateRaidWinTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
CroakTask.shouldRun
(ServerWorld serverWorld, FrogEntity frogEntity) protected boolean
CrossbowAttackTask.shouldRun
(ServerWorld serverWorld, E e) protected boolean
DigTask.shouldRun
(ServerWorld serverWorld, E e) protected boolean
DismountVehicleTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
FarmerVillagerTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
FleeTask.shouldRun
(ServerWorld serverWorld, E e) protected boolean
FollowCustomerTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) 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) boolean
HoldTradeOffersTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
JumpInBedTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) protected boolean
LongJumpTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) protected boolean
MoveToTargetTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) protected boolean
MultiTickTask.shouldRun
(ServerWorld world, E entity) protected boolean
PlayDeadTask.shouldRun
(ServerWorld serverWorld, AxolotlEntity axolotlEntity) protected boolean
RamImpactTask.shouldRun
(ServerWorld serverWorld, GoatEntity goatEntity) protected boolean
SleepTask.shouldRun
(ServerWorld world, LivingEntity entity) protected boolean
SonicBoomTask.shouldRun
(ServerWorld serverWorld, WardenEntity wardenEntity) protected boolean
StayAboveWaterTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) protected boolean
VillagerBreedTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
VillagerWorkTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
WalkTowardsJobSiteTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) private boolean
RamImpactTask.shouldSnapHorn
(ServerWorld world, GoatEntity goat) private boolean
JumpInBedTask.shouldStartJumping
(ServerWorld world, MobEntity mob) final void
CompositeTask.stop
(ServerWorld world, E entity, long time) final void
MultiTickTask.stop
(ServerWorld world, E entity, long time) final void
SingleTickTask.stop
(ServerWorld world, E entity, long time) void
Task.stop
(ServerWorld world, E entity, long time) final void
WaitTask.stop
(ServerWorld world, LivingEntity entity, long time) OpenDoorsTask.storePos
(MemoryQueryResult<com.mojang.datafixers.kinds.OptionalBox.Mu, Set<GlobalPos>> queryResult, Optional<Set<GlobalPos>> doors, ServerWorld world, BlockPos pos) private void
FarmerWorkTask.syncComposterEvent
(ServerWorld world, BlockState oldState, BlockPos pos, BlockState newState) boolean
ForgetAttackTargetTask.AlternativeCondition.test
(ServerWorld world, LivingEntity target) boolean
UpdateAttackTargetTask.StartCondition.test
(ServerWorld world, E entity) final void
CompositeTask.tick
(ServerWorld world, E entity, long time) final void
MultiTickTask.tick
(ServerWorld world, E entity, long time) final void
SingleTickTask.tick
(ServerWorld world, E entity, long time) void
Task.tick
(ServerWorld world, E entity, long time) final void
WaitTask.tick
(ServerWorld world, LivingEntity entity, long time) boolean
TaskRunnable.trigger
(ServerWorld world, E entity, long time) Runs the task.final boolean
CompositeTask.tryStarting
(ServerWorld world, E entity, long time) final boolean
MultiTickTask.tryStarting
(ServerWorld world, E entity, long time) final boolean
SingleTickTask.tryStarting
(ServerWorld world, E entity, long time) boolean
Task.tryStarting
(ServerWorld world, E entity, long time) final boolean
WaitTask.tryStarting
(ServerWorld world, LivingEntity entity, long time) private static boolean
VillagerTaskListProvider.wonRaid
(ServerWorld world, LivingEntity entity) Modifier and TypeMethodDescriptionstatic <E extends LivingEntity>
SingleTickTask<E> TaskTriggerer.predicate
(BiPredicate<ServerWorld, E> predicate) -
Uses of ServerWorld in net.minecraft.entity.ai.goal
Modifier and TypeFieldDescriptionprotected final ServerWorld
AnimalMateGoal.world
private final ServerWorld
WolfBegGoal.world
Modifier and TypeMethodDescriptionprotected static ServerWorld
Goal.castToServerWorld
(World world) protected static ServerWorld
Goal.getServerWorld
(Entity entity) -
Uses of ServerWorld in net.minecraft.entity.boss
Modifier and TypeMethodDescriptionboolean
WitherEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.protected void
WitherEntity.dropEquipment
(ServerWorld world, DamageSource source, boolean causedByPlayer) protected void
WitherEntity.mobTick
(ServerWorld world) -
Uses of ServerWorld in net.minecraft.entity.boss.dragon
Modifier and TypeMethodDescriptionvoid
EnderDragonEntity.crystalDestroyed
(ServerWorld world, EndCrystalEntity crystal, BlockPos pos, DamageSource source) boolean
EnderDragonEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.final boolean
EnderDragonPart.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.private void
EnderDragonEntity.damageLivingEntities
(ServerWorld world, List<Entity> entities) boolean
EnderDragonEntity.damagePart
(ServerWorld world, EnderDragonPart part, DamageSource source, float amount) private boolean
EnderDragonEntity.destroyBlocks
(ServerWorld world, Box box) void
EnderDragonEntity.kill
(ServerWorld world) Kills the entity.private void
EnderDragonEntity.launchLivingEntities
(ServerWorld world, List<Entity> entities) protected void
EnderDragonEntity.parentDamage
(ServerWorld world, DamageSource source, float amount) abstract void
EnderDragonSpawnState.run
(ServerWorld world, EnderDragonFight fight, List<EndCrystalEntity> crystals, int tick, BlockPos pos) ModifierConstructorDescriptionEnderDragonFight
(ServerWorld world, long gatewaysSeed, EnderDragonFight.Data data) EnderDragonFight
(ServerWorld world, long gatewaysSeed, EnderDragonFight.Data data, BlockPos origin) -
Uses of ServerWorld in net.minecraft.entity.boss.dragon.phase
Modifier and TypeMethodDescriptionvoid
AbstractPhase.serverTick
(ServerWorld world) void
ChargingPlayerPhase.serverTick
(ServerWorld world) void
DyingPhase.serverTick
(ServerWorld world) void
HoldingPatternPhase.serverTick
(ServerWorld world) void
HoverPhase.serverTick
(ServerWorld world) void
LandingApproachPhase.serverTick
(ServerWorld world) void
LandingPhase.serverTick
(ServerWorld world) void
Phase.serverTick
(ServerWorld world) void
SittingAttackingPhase.serverTick
(ServerWorld world) void
SittingFlamingPhase.serverTick
(ServerWorld world) void
SittingScanningPhase.serverTick
(ServerWorld world) void
StrafePlayerPhase.serverTick
(ServerWorld world) void
TakeoffPhase.serverTick
(ServerWorld world) private void
HoldingPatternPhase.tickInRange
(ServerWorld world) private void
LandingApproachPhase.updatePath
(ServerWorld world) -
Uses of ServerWorld in net.minecraft.entity.decoration
Modifier and TypeMethodDescriptionprivate void
ArmorStandEntity.breakAndDropItem
(ServerWorld world, DamageSource damageSource) private void
EndCrystalEntity.crystalDestroyed
(ServerWorld world, DamageSource source) boolean
ArmorStandEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
BlockAttachedEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.final boolean
DisplayEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.final boolean
EndCrystalEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.final boolean
InteractionEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
ItemFrameEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.private void
ItemFrameEntity.dropHeldStack
(ServerWorld world, @Nullable Entity entity, boolean dropSelf) AbstractDecorationEntity.dropStack
(ServerWorld world, ItemStack stack, float yOffset) Dropsstack
at the entity's position with the given Y offset.void
ArmorStandEntity.kill
(ServerWorld world) Kills the entity.void
EndCrystalEntity.kill
(ServerWorld world) Kills the entity.void
ItemFrameEntity.kill
(ServerWorld world) Kills the entity.private void
ArmorStandEntity.onBreak
(ServerWorld world, DamageSource damageSource) abstract void
BlockAttachedEntity.onBreak
(ServerWorld world, @Nullable Entity breaker) void
ItemFrameEntity.onBreak
(ServerWorld world, @Nullable Entity breaker) void
LeashKnotEntity.onBreak
(ServerWorld world, @Nullable Entity breaker) void
ArmorStandEntity.onStruckByLightning
(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.void
BlockAttachedEntity.onStruckByLightning
(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.private void
ArmorStandEntity.updateHealth
(ServerWorld world, DamageSource damageSource, float amount) -
Uses of ServerWorld in net.minecraft.entity.decoration.painting
Modifier and TypeMethodDescriptionvoid
PaintingEntity.onBreak
(ServerWorld world, @Nullable Entity breaker) -
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) void
InstantHealthOrDamageStatusEffect.applyInstantEffect
(ServerWorld world, @Nullable Entity effectEntity, @Nullable Entity attacker, LivingEntity target, int amplifier, double proximity) void
StatusEffect.applyInstantEffect
(ServerWorld world, @Nullable Entity effectEntity, @Nullable Entity attacker, LivingEntity target, int amplifier, double proximity) boolean
AbsorptionStatusEffect.applyUpdateEffect
(ServerWorld world, LivingEntity entity, int amplifier) boolean
BadOmenStatusEffect.applyUpdateEffect
(ServerWorld world, LivingEntity entity, int amplifier) boolean
HungerStatusEffect.applyUpdateEffect
(ServerWorld world, LivingEntity entity, int amplifier) boolean
InstantHealthOrDamageStatusEffect.applyUpdateEffect
(ServerWorld world, LivingEntity entity, int amplifier) boolean
PoisonStatusEffect.applyUpdateEffect
(ServerWorld world, LivingEntity entity, int amplifier) boolean
RaidOmenStatusEffect.applyUpdateEffect
(ServerWorld world, LivingEntity entity, int amplifier) boolean
RegenerationStatusEffect.applyUpdateEffect
(ServerWorld world, LivingEntity entity, int amplifier) boolean
SaturationStatusEffect.applyUpdateEffect
(ServerWorld world, LivingEntity entity, int amplifier) boolean
StatusEffect.applyUpdateEffect
(ServerWorld world, LivingEntity entity, int amplifier) boolean
WitherStatusEffect.applyUpdateEffect
(ServerWorld world, LivingEntity entity, int amplifier) void
InfestedStatusEffect.onEntityDamage
(ServerWorld world, LivingEntity entity, int amplifier, DamageSource source, float amount) void
StatusEffect.onEntityDamage
(ServerWorld world, LivingEntity entity, int amplifier, DamageSource source, float amount) void
StatusEffectInstance.onEntityDamage
(ServerWorld world, LivingEntity entity, DamageSource source, float amount) void
OozingStatusEffect.onEntityRemoval
(ServerWorld world, LivingEntity entity, int amplifier, Entity.RemovalReason reason) void
StatusEffect.onEntityRemoval
(ServerWorld world, LivingEntity entity, int amplifier, Entity.RemovalReason reason) void
StatusEffectInstance.onEntityRemoval
(ServerWorld world, LivingEntity entity, Entity.RemovalReason reason) void
WeavingStatusEffect.onEntityRemoval
(ServerWorld world, LivingEntity entity, int amplifier, Entity.RemovalReason reason) void
WindChargedStatusEffect.onEntityRemoval
(ServerWorld world, LivingEntity entity, int amplifier, Entity.RemovalReason reason) private void
InfestedStatusEffect.spawnSilverfish
(ServerWorld world, LivingEntity entity, double x, double y, double z) private void
WeavingStatusEffect.tryPlaceCobweb
(ServerWorld world, Random random, BlockPos pos) -
Uses of ServerWorld in net.minecraft.entity.mob
Modifier and TypeMethodDescriptionvoid
WardenEntity.VibrationCallback.accept
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.boolean
WardenEntity.VibrationCallback.accepts
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.void
EvokerEntity.addBonusForWave
(ServerWorld world, int wave, boolean unused) void
IllusionerEntity.addBonusForWave
(ServerWorld world, int wave, boolean unused) void
PillagerEntity.addBonusForWave
(ServerWorld world, int wave, boolean unused) void
RavagerEntity.addBonusForWave
(ServerWorld world, int wave, boolean unused) void
VindicatorEntity.addBonusForWave
(ServerWorld world, int wave, boolean unused) void
WitchEntity.addBonusForWave
(ServerWorld world, int wave, boolean unused) static void
WardenEntity.addDarknessToClosePlayers
(ServerWorld world, Vec3d pos, @Nullable Entity entity, int range) protected static void
PiglinBrain.angerAtCloserTargets
(ServerWorld world, AbstractPiglinEntity piglin, LivingEntity target) private static void
PiglinBrain.angerAtIfCloser
(ServerWorld world, AbstractPiglinEntity piglin, LivingEntity target) protected static void
PiglinBrain.angerNearbyPiglins
(ServerWorld world, AbstractPiglinEntity piglin) protected static void
PiglinBrain.becomeAngryWith
(ServerWorld world, AbstractPiglinEntity piglin, LivingEntity target) private static void
PiglinBrain.becomeAngryWithPlayer
(ServerWorld world, AbstractPiglinEntity piglin, LivingEntity target) boolean
MobEntity.canGather
(ServerWorld world, ItemStack stack) boolean
PiglinBruteEntity.canGather
(ServerWorld world, ItemStack stack) boolean
PiglinEntity.canGather
(ServerWorld world, ItemStack stack) boolean
ZombieEntity.canGather
(ServerWorld world, ItemStack stack) boolean
ZombifiedPiglinEntity.canGather
(ServerWorld world, ItemStack stack) protected static void
PiglinBrain.consumeOffHandItem
(ServerWorld world, PiglinEntity piglin, boolean barter) HoglinEntity.createChild
(ServerWorld world, PassiveEntity entity) SkeletonHorseEntity.createChild
(ServerWorld world, PassiveEntity entity) ZombieHorseEntity.createChild
(ServerWorld world, PassiveEntity entity) private LootWorldContext
MobEntity.createEquipmentLootParameters
(ServerWorld world) boolean
EndermanEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
EvokerFangsEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
GhastEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
GuardianEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
HoglinEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
PiglinBruteEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
PiglinEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
ShulkerEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
SilverfishEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
TransientCreakingEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
WardenEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
ZoglinEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
ZombieEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.private boolean
EndermanEntity.damageFromPotion
(ServerWorld world, DamageSource source, PotionEntity potion, float amount) void
MobEntity.dropAllEquipment
(ServerWorld world) protected void
CreeperEntity.dropEquipment
(ServerWorld world, DamageSource source, boolean causedByPlayer) protected void
EndermanEntity.dropEquipment
(ServerWorld world, DamageSource source, boolean causedByPlayer) MobEntity.dropEquipment
(ServerWorld world, Predicate<ItemStack> dropPredicate) protected void
MobEntity.dropEquipment
(ServerWorld world, DamageSource source, boolean causedByPlayer) protected void
PiglinEntity.dropEquipment
(ServerWorld world, DamageSource source, boolean causedByPlayer) protected void
SkeletonEntity.dropEquipment
(ServerWorld world, DamageSource source, boolean causedByPlayer) protected void
WitherSkeletonEntity.dropEquipment
(ServerWorld world, DamageSource source, boolean causedByPlayer) protected void
ZombieEntity.dropEquipment
(ServerWorld world, DamageSource source, boolean causedByPlayer) protected void
MobEntity.dropLoot
(ServerWorld world, DamageSource damageSource, boolean causedByPlayer) private void
BoggedEntity.dropShearedItems
(ServerWorld world, ItemStack shears) private void
ZombieVillagerEntity.finishConversion
(ServerWorld world) protected void
BreezeBrain.SlideAroundTask.finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) default void
Angerable.forgive
(ServerWorld world, PlayerEntity player) private Optional
<? extends LivingEntity> ZoglinEntity.getHoglinTarget
(ServerWorld world) private static Optional
<? extends LivingEntity> HoglinBrain.getNearestVisibleTargetablePlayer
(ServerWorld world, HoglinEntity hoglin) private static Optional
<? extends LivingEntity> PiglinBrain.getPreferredTarget
(ServerWorld world, PiglinEntity piglin) private static Optional
<? extends LivingEntity> PiglinBruteBrain.getTarget
(ServerWorld world, AbstractPiglinEntity piglin) protected int
HoglinEntity.getXpToDrop
(ServerWorld world) Called when this entity is killed and returns the amount of experience to drop.protected int
MobEntity.getXpToDrop
(ServerWorld world) Called when this entity is killed and returns the amount of experience to drop.protected int
PiglinEntity.getXpToDrop
(ServerWorld world) Called when this entity is killed and returns the amount of experience to drop.protected int
WaterCreatureEntity.getXpToDrop
(ServerWorld world) Called when this entity is killed and returns the amount of experience to drop.protected int
ZombieEntity.getXpToDrop
(ServerWorld world) Called when this entity is killed and returns the amount of experience to drop.boolean
ZombieEntity.infectVillager
(ServerWorld world, VillagerEntity villager) boolean
HostileEntity.isAngryAt
(ServerWorld world, PlayerEntity player) boolean
ZombifiedPiglinEntity.isAngryAt
(ServerWorld world, PlayerEntity player) boolean
BreezeEntity.isInvulnerableTo
(ServerWorld world, DamageSource source) boolean
GhastEntity.isInvulnerableTo
(ServerWorld world, DamageSource source) boolean
WardenEntity.isInvulnerableTo
(ServerWorld world, DamageSource source) private static boolean
PiglinBrain.isPreferredAttackTarget
(ServerWorld world, PiglinEntity piglin, LivingEntity target) private static boolean
PiglinBruteBrain.isTarget
(ServerWorld world, AbstractPiglinEntity piglin, LivingEntity target) default boolean
Angerable.isUniversallyAngry
(ServerWorld world) protected void
MobEntity.loot
(ServerWorld world, ItemEntity itemEntity) protected static void
PiglinBrain.loot
(ServerWorld world, PiglinEntity piglin, ItemEntity itemEntity) protected void
PiglinEntity.loot
(ServerWorld world, ItemEntity itemEntity) protected void
PillagerEntity.loot
(ServerWorld world, ItemEntity itemEntity) protected void
AbstractPiglinEntity.mobTick
(ServerWorld world) protected void
BlazeEntity.mobTick
(ServerWorld world) protected void
BreezeEntity.mobTick
(ServerWorld world) protected void
CreakingEntity.mobTick
(ServerWorld world) protected void
ElderGuardianEntity.mobTick
(ServerWorld world) protected void
EndermanEntity.mobTick
(ServerWorld world) protected void
HoglinEntity.mobTick
(ServerWorld world) protected void
MobEntity.mobTick
(ServerWorld world) protected void
PiglinBruteEntity.mobTick
(ServerWorld world) protected void
PiglinEntity.mobTick
(ServerWorld world) protected void
SpellcastingIllagerEntity.mobTick
(ServerWorld world) protected void
VindicatorEntity.mobTick
(ServerWorld world) protected void
WardenEntity.mobTick
(ServerWorld world) protected void
ZoglinEntity.mobTick
(ServerWorld world) protected void
ZombifiedPiglinEntity.mobTick
(ServerWorld world) protected static void
HoglinBrain.onAttacked
(ServerWorld world, HoglinEntity hoglin, LivingEntity attacker) protected static void
PiglinBrain.onAttacked
(ServerWorld world, PiglinEntity piglin, LivingEntity attacker) static void
PiglinBrain.onGuardedBlockInteracted
(ServerWorld world, PlayerEntity player, boolean blockOpen) 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.protected static void
PiglinBrain.pickupItemWithOffHand
(ServerWorld world, PiglinEntity piglin) static ActionResult
PiglinBrain.playerInteract
(ServerWorld world, PiglinEntity piglin, PlayerEntity player, Hand hand) private static void
WardenBrain.removeDeadSuspect
(ServerWorld world, WardenEntity warden, LivingEntity target) protected void
BreezeBrain.SlideAroundTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) void
BoggedEntity.sheared
(ServerWorld world, SoundCategory shearedSoundCategory, ItemStack shears) default boolean
Angerable.shouldAngerAt
(LivingEntity entity, ServerWorld world) private boolean
ZoglinEntity.shouldAttack
(ServerWorld world, LivingEntity target) private static void
PiglinBrain.swapItemWithOffHand
(ServerWorld world, PiglinEntity piglin, ItemStack stack) private static void
HoglinBrain.targetEnemy
(ServerWorld world, HoglinEntity hoglin, LivingEntity target) boolean
GuardianEntity.GuardianTargetPredicate.test
(@Nullable LivingEntity target, ServerWorld world) (package private) boolean
PhantomEntity.testTargetPredicate
(ServerWorld world, LivingEntity target, TargetPredicate predicate) default void
Angerable.tickAngerLogic
(ServerWorld world, boolean angerPersistent) boolean
CaveSpiderEntity.tryAttack
(ServerWorld world, Entity target) boolean
CreakingEntity.tryAttack
(ServerWorld world, Entity target) boolean
CreeperEntity.tryAttack
(ServerWorld world, Entity target) static boolean
Hoglin.tryAttack
(ServerWorld world, LivingEntity attacker, LivingEntity target) boolean
HoglinEntity.tryAttack
(ServerWorld world, Entity target) boolean
HuskEntity.tryAttack
(ServerWorld world, Entity target) boolean
MobEntity.tryAttack
(ServerWorld world, Entity target) boolean
RavagerEntity.tryAttack
(ServerWorld world, Entity target) boolean
WardenEntity.tryAttack
(ServerWorld world, Entity target) boolean
WitherSkeletonEntity.tryAttack
(ServerWorld world, Entity target) boolean
ZoglinEntity.tryAttack
(ServerWorld world, Entity target) boolean
ZombieEntity.tryAttack
(ServerWorld world, Entity target) MobEntity.tryEquip
(ServerWorld world, ItemStack stack) protected static void
PiglinBrain.tryRevenge
(ServerWorld world, AbstractPiglinEntity piglin, LivingEntity target) protected static void
PiglinBruteBrain.tryRevenge
(ServerWorld world, PiglinBruteEntity piglinBrute, LivingEntity target) protected void
AbstractPiglinEntity.zombify
(ServerWorld world) 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.VibrationCallback.accept
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.boolean
AllayEntity.VibrationCallback.accepts
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.protected void
AnimalEntity.applyDamage
(ServerWorld world, DamageSource source, float amount) protected void
ArmadilloEntity.applyDamage
(ServerWorld world, DamageSource source, float amount) protected void
CamelEntity.applyDamage
(ServerWorld world, DamageSource source, float amount) protected void
WolfEntity.applyDamage
(ServerWorld world, DamageSource source, float amount) static void
AxolotlEntity.appreciatePlayer
(ServerWorld world, AxolotlEntity axolotl, LivingEntity target) void
AnimalEntity.breed
(ServerWorld world, AnimalEntity other) void
AnimalEntity.breed
(ServerWorld world, AnimalEntity other, @Nullable PassiveEntity baby) void
FrogEntity.breed
(ServerWorld world, AnimalEntity other) void
SnifferEntity.breed
(ServerWorld world, AnimalEntity other) boolean
AllayEntity.canGather
(ServerWorld world, ItemStack stack) boolean
VillagerEntity.canGather
(ServerWorld world, ItemStack stack) AbstractHorseEntity.createChild
(ServerWorld world, PassiveEntity entity) ArmadilloEntity.createChild
(ServerWorld world, PassiveEntity entity) AxolotlEntity.createChild
(ServerWorld world, PassiveEntity entity) BeeEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) CamelEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) CatEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) ChickenEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) CowEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) DolphinEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) DonkeyEntity.createChild
(ServerWorld world, PassiveEntity entity) FoxEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) FrogEntity.createChild
(ServerWorld world, PassiveEntity entity) GlowSquidEntity.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) SnifferEntity.createChild
(ServerWorld world, PassiveEntity entity) SquidEntity.createChild
(ServerWorld world, PassiveEntity entity) 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
AbstractHorseEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
AllayEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
ArmadilloEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
AxolotlEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
BatEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
BeeEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
GlowSquidEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
IronGolemEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
PandaEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
ParrotEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
SquidEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
WolfEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.protected void
FoxEntity.drop
(ServerWorld world, DamageSource damageSource) protected void
AbstractDonkeyEntity.dropInventory
(ServerWorld world) protected void
AbstractHorseEntity.dropInventory
(ServerWorld world) protected void
AllayEntity.dropInventory
(ServerWorld world) protected void
PigEntity.dropInventory
(ServerWorld world) protected void
StriderEntity.dropInventory
(ServerWorld world) protected void
ArmadilloBrain.RollUpTask.finishRunning
(ServerWorld serverWorld, ArmadilloEntity armadilloEntity, long long2) protected void
SnifferBrain.DiggingTask.finishRunning
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected void
SnifferBrain.FeelHappyTask.finishRunning
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected void
SnifferBrain.FinishDiggingTask.finishRunning
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected void
SnifferBrain.ScentingTask.finishRunning
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected void
SnifferBrain.SearchingTask.finishRunning
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected void
SnifferBrain.SniffingTask.finishRunning
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) private static Optional
<? extends LivingEntity> AxolotlBrain.getAttackTarget
(ServerWorld world, AxolotlEntity axolotl) private DyeColor
SheepEntity.getChildColor
(ServerWorld world, SheepEntity firstParent, SheepEntity secondParent) protected int
AnimalEntity.getXpToDrop
(ServerWorld world) Called when this entity is killed and returns the amount of experience to drop.protected int
ChickenEntity.getXpToDrop
(ServerWorld world) Called when this entity is killed and returns the amount of experience to drop.int
WaterAnimalEntity.getXpToDrop
(ServerWorld world) Called when this entity is killed and returns the amount of experience to drop.protected void
ArmadilloBrain.RollUpTask.keepRunning
(ServerWorld serverWorld, ArmadilloEntity armadilloEntity, long long2) boolean
AllayEntity.JukeboxEventListener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.protected void
AllayEntity.loot
(ServerWorld world, ItemEntity itemEntity) protected void
DolphinEntity.loot
(ServerWorld world, ItemEntity itemEntity) protected void
FoxEntity.loot
(ServerWorld world, ItemEntity itemEntity) protected void
PandaEntity.loot
(ServerWorld world, ItemEntity itemEntity) protected void
VillagerEntity.loot
(ServerWorld world, ItemEntity itemEntity) protected void
AllayEntity.mobTick
(ServerWorld world) protected void
AnimalEntity.mobTick
(ServerWorld world) protected void
ArmadilloEntity.mobTick
(ServerWorld world) protected void
AxolotlEntity.mobTick
(ServerWorld world) protected void
BatEntity.mobTick
(ServerWorld world) protected void
BeeEntity.mobTick
(ServerWorld world) protected void
CamelEntity.mobTick
(ServerWorld world) void
CatEntity.mobTick
(ServerWorld world) protected void
FrogEntity.mobTick
(ServerWorld world) protected void
GoatEntity.mobTick
(ServerWorld world) void
OcelotEntity.mobTick
(ServerWorld world) void
RabbitEntity.mobTick
(ServerWorld world) protected void
SheepEntity.mobTick
(ServerWorld world) protected void
SnifferEntity.mobTick
(ServerWorld world) protected void
TadpoleEntity.mobTick
(ServerWorld world) protected void
VillagerEntity.mobTick
(ServerWorld 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) protected void
ArmadilloBrain.RollUpTask.run
(ServerWorld serverWorld, ArmadilloEntity armadilloEntity, long long2) protected void
ArmadilloBrain.UnrollAndFleeTask.run
(ServerWorld serverWorld, ArmadilloEntity armadilloEntity, long long2) protected void
CamelBrain.CamelWalkTask.run
(ServerWorld serverWorld, CamelEntity camelEntity, long long2) protected void
CamelBrain.SitOrStandTask.run
(ServerWorld serverWorld, CamelEntity camelEntity, long long2) protected void
SnifferBrain.DiggingTask.run
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected void
SnifferBrain.FeelHappyTask.run
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected void
SnifferBrain.FinishDiggingTask.run
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected void
SnifferBrain.ScentingTask.run
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected void
SnifferBrain.SearchingTask.run
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected void
SnifferBrain.SniffingTask.run
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) void
MooshroomEntity.sheared
(ServerWorld world, SoundCategory shearedSoundCategory, ItemStack shears) void
SheepEntity.sheared
(ServerWorld world, SoundCategory shearedSoundCategory, ItemStack shears) void
SnowGolemEntity.sheared
(ServerWorld world, SoundCategory shearedSoundCategory, ItemStack shears) protected boolean
ArmadilloBrain.RollUpTask.shouldKeepRunning
(ServerWorld serverWorld, ArmadilloEntity armadilloEntity, long long2) protected boolean
SnifferBrain.DiggingTask.shouldKeepRunning
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected boolean
SnifferBrain.FeelHappyTask.shouldKeepRunning
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected boolean
SnifferBrain.FinishDiggingTask.shouldKeepRunning
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected boolean
SnifferBrain.ScentingTask.shouldKeepRunning
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected boolean
SnifferBrain.SearchingTask.shouldKeepRunning
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected boolean
SnifferBrain.SniffingTask.shouldKeepRunning
(ServerWorld serverWorld, SnifferEntity snifferEntity, long long2) protected boolean
ArmadilloBrain.RollUpTask.shouldRun
(ServerWorld serverWorld, ArmadilloEntity armadilloEntity) protected boolean
CamelBrain.SitOrStandTask.shouldRun
(ServerWorld serverWorld, CamelEntity camelEntity) protected boolean
SnifferBrain.DiggingTask.shouldRun
(ServerWorld serverWorld, SnifferEntity snifferEntity) protected boolean
SnifferBrain.FinishDiggingTask.shouldRun
(ServerWorld serverWorld, SnifferEntity snifferEntity) protected boolean
SnifferBrain.ScentingTask.shouldRun
(ServerWorld serverWorld, SnifferEntity snifferEntity) protected boolean
SnifferBrain.SearchingTask.shouldRun
(ServerWorld serverWorld, SnifferEntity snifferEntity) protected boolean
SnifferBrain.SniffingTask.shouldRun
(ServerWorld serverWorld, SnifferEntity snifferEntity) private void
PufferfishEntity.sting
(ServerWorld world, MobEntity target) void
VillagerEntity.summonGolem
(ServerWorld world, long time, int requiredCount) void
VillagerEntity.talkWithVillager
(ServerWorld world, VillagerEntity villager, long time) boolean
FoxEntity.WorriableEntityFilter.test
(LivingEntity target, ServerWorld world) boolean
BeeEntity.tryAttack
(ServerWorld world, Entity target) boolean
IronGolemEntity.tryAttack
(ServerWorld world, Entity target) boolean
PandaEntity.tryAttack
(ServerWorld world, Entity target) protected void
AbstractHorseEntity.walkToParent
(ServerWorld world) protected void
LlamaEntity.walkToParent
(ServerWorld world) 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 TypeMethodDescriptionprotected void
PlayerEntity.applyDamage
(ServerWorld world, DamageSource source, float amount) boolean
PlayerEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.protected void
PlayerEntity.dropInventory
(ServerWorld world) protected int
PlayerEntity.getXpToDrop
(ServerWorld world) Called when this entity is killed and returns the amount of experience to drop.boolean
PlayerEntity.isInvulnerableTo
(ServerWorld world, DamageSource source) boolean
PlayerEntity.onKilledOther
(ServerWorld world, LivingEntity other) Called when this entity killsother
. -
Uses of ServerWorld in net.minecraft.entity.projectile
Modifier and TypeMethodDescriptionboolean
ProjectileEntity.canBreakBlocks
(ServerWorld world) boolean
ProjectileEntity.canModifyAt
(ServerWorld world, BlockPos pos) Returns whether the entity can modify the world atpos
.ProjectileEntity.ProjectileCreator.create
(ServerWorld world, LivingEntity shooter, ItemStack stack) boolean
ExplosiveProjectileEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
ProjectileEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
ShulkerBulletEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.private void
FireworkRocketEntity.explode
(ServerWorld world) private void
FireworkRocketEntity.explodeAndRemove
(ServerWorld world) protected void
PersistentProjectileEntity.onBlockHitEnchantmentEffects
(ServerWorld world, BlockHitResult blockHitResult, ItemStack weaponStack) protected void
TridentEntity.onBlockHitEnchantmentEffects
(ServerWorld world, BlockHitResult blockHitResult, ItemStack weaponStack) static <T extends ProjectileEntity>
TProjectileEntity.spawn
(T projectile, ServerWorld world, ItemStack projectileStack) static <T extends ProjectileEntity>
TProjectileEntity.spawn
(T projectile, ServerWorld world, ItemStack projectileStack, Consumer<T> beforeSpawn) static <T extends ProjectileEntity>
TProjectileEntity.spawnWithVelocity
(ProjectileEntity.ProjectileCreator<T> creator, ServerWorld world, ItemStack projectileStack, LivingEntity shooter, double velocityX, double velocityY, double velocityZ, float power, float divergence) static <T extends ProjectileEntity>
TProjectileEntity.spawnWithVelocity
(ProjectileEntity.ProjectileCreator<T> creator, ServerWorld world, ItemStack projectileStack, LivingEntity shooter, float roll, float power, float divergence) static <T extends ProjectileEntity>
TProjectileEntity.spawnWithVelocity
(T projectile, ServerWorld world, ItemStack projectileStack, double velocityX, double velocityY, double velocityZ, float power, float divergence) void
ProjectileEntity.triggerProjectileSpawned
(ServerWorld world, ItemStack projectileStack) -
Uses of ServerWorld in net.minecraft.entity.projectile.thrown
Modifier and TypeMethodDescriptionprivate void
PotionEntity.applySplashPotion
(ServerWorld world, Iterable<StatusEffectInstance> effects, @Nullable Entity entity) private void
PotionEntity.applyWater
(ServerWorld world) -
Uses of ServerWorld in net.minecraft.entity.raid
Modifier and TypeMethodDescriptionabstract void
RaiderEntity.addBonusForWave
(ServerWorld world, int wave, boolean unused) boolean
RaiderEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.protected void
RaiderEntity.loot
(ServerWorld world, ItemEntity itemEntity) -
Uses of ServerWorld in net.minecraft.entity.vehicle
Modifier and TypeMethodDescriptionprivate Vec3d
ExperimentalMinecartController.calcNewHorizontalVelocity
(ServerWorld world, Vec3d horizontalVelocity, ExperimentalMinecartController.MoveIteration iteration, BlockPos pos, BlockState railState, RailShape railShape) boolean
TntMinecartEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
VehicleEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.protected double
AbstractMinecartEntity.getMaxSpeed
(ServerWorld world) double
DefaultMinecartController.getMaxSpeed
(ServerWorld world) double
ExperimentalMinecartController.getMaxSpeed
(ServerWorld world) protected double
FurnaceMinecartEntity.getMaxSpeed
(ServerWorld world) abstract double
MinecartController.getMaxSpeed
(ServerWorld world) void
VehicleEntity.killAndDropItem
(ServerWorld world, Item item) void
AbstractChestBoatEntity.killAndDropSelf
(ServerWorld world, DamageSource damageSource) void
StorageMinecartEntity.killAndDropSelf
(ServerWorld world, DamageSource damageSource) void
TntMinecartEntity.killAndDropSelf
(ServerWorld world, DamageSource damageSource) protected void
VehicleEntity.killAndDropSelf
(ServerWorld world, DamageSource damageSource) protected void
AbstractMinecartEntity.moveOffRail
(ServerWorld world) protected void
AbstractMinecartEntity.moveOnRail
(ServerWorld world) void
DefaultMinecartController.moveOnRail
(ServerWorld world) void
ExperimentalMinecartController.moveOnRail
(ServerWorld world) abstract void
MinecartController.moveOnRail
(ServerWorld world) default void
VehicleInventory.onBroken
(DamageSource source, ServerWorld world, Entity vehicle) -
Uses of ServerWorld in net.minecraft.fluid
Modifier and TypeMethodDescriptionprivate void
FlowableFluid.flowToSides
(ServerWorld world, BlockPos pos, FluidState fluidState, BlockState blockState) protected Map
<Direction, FluidState> FlowableFluid.getSpread
(ServerWorld world, BlockPos pos, BlockState state) protected FluidState
FlowableFluid.getUpdatedState
(ServerWorld world, BlockPos pos, BlockState state) protected abstract boolean
FlowableFluid.isInfinite
(ServerWorld world) protected boolean
LavaFluid.isInfinite
(ServerWorld world) protected boolean
WaterFluid.isInfinite
(ServerWorld world) protected void
Fluid.onRandomTick
(ServerWorld world, BlockPos pos, FluidState state, Random random) void
FluidState.onRandomTick
(ServerWorld world, BlockPos pos, Random random) void
LavaFluid.onRandomTick
(ServerWorld world, BlockPos pos, FluidState state, Random random) void
FlowableFluid.onScheduledTick
(ServerWorld world, BlockPos pos, BlockState blockState, FluidState fluidState) protected void
Fluid.onScheduledTick
(ServerWorld world, BlockPos pos, BlockState blockState, FluidState fluidState) void
FluidState.onScheduledTick
(ServerWorld world, BlockPos pos, BlockState state) protected void
FlowableFluid.tryFlow
(ServerWorld world, BlockPos fluidPos, BlockState blockState, FluidState fluidState) -
Uses of ServerWorld in net.minecraft.item
Modifier and TypeMethodDescriptionprivate int
ItemStack.calculateDamage
(int baseDamage, ServerWorld world, @Nullable ServerPlayerEntity player) void
ItemStack.damage
(int amount, ServerWorld world, @Nullable ServerPlayerEntity player, Consumer<Item> breakCallback) Damages this item stack.static void
FilledMapItem.fillExplorationMap
(ServerWorld world, ItemStack map) protected void
RangedWeaponItem.shootAll
(ServerWorld world, LivingEntity shooter, Hand hand, ItemStack stack, List<ItemStack> projectiles, float speed, float divergence, boolean critical, @Nullable LivingEntity target) 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
Modifier and TypeMethodDescriptionLootTable.processStacks
(ServerWorld world, Consumer<ItemStack> consumer) -
Uses of ServerWorld in net.minecraft.loot.context
Modifier and TypeFieldDescriptionprivate final ServerWorld
LootWorldContext.Builder.world
private final ServerWorld
LootWorldContext.world
Modifier and TypeMethodDescriptionLootContext.Builder.getWorld()
LootContext.getWorld()
LootWorldContext.Builder.getWorld()
LootWorldContext.getWorld()
ModifierConstructorDescriptionBuilder
(ServerWorld world) LootWorldContext
(ServerWorld world, ContextParameterMap parameters, Map<Identifier, LootWorldContext.DynamicDrop> dynamicDrops, float luck) -
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
EntitySubPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
EntitySubPredicateTypes.DynamicVariantType.DynamicPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
EntitySubPredicateTypes.VariantType.VariantPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) 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
RaiderPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
SheepPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
SlimePredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) -
Uses of ServerWorld in net.minecraft.recipe
Modifier and TypeMethodDescriptionprivate Optional
<RecipeEntry<CraftingRecipe>> RecipeCache.getAndCacheRecipe
(CraftingRecipeInput input, ServerWorld world) ServerRecipeManager.MatchGetter.getFirstMatch
(I input, ServerWorld world) RecipeCache.getRecipe
(ServerWorld world, CraftingRecipeInput input) private void
RecipeCache.validateRecipeManager
(ServerWorld world) -
Uses of ServerWorld in net.minecraft.screen
Modifier and TypeMethodDescriptionAbstractCraftingScreenHandler.fillInputSlots
(boolean craftAll, boolean creative, RecipeEntry<?> recipe, ServerWorld world, PlayerInventory inventory) AbstractFurnaceScreenHandler.fillInputSlots
(boolean craftAll, boolean creative, RecipeEntry<?> recipe, ServerWorld world, PlayerInventory inventory) AbstractRecipeScreenHandler.fillInputSlots
(boolean craftAll, boolean creative, RecipeEntry<?> recipe, ServerWorld world, PlayerInventory inventory) protected void
AbstractCraftingScreenHandler.onInputSlotFillFinish
(ServerWorld world, RecipeEntry<CraftingRecipe> recipe) void
CraftingScreenHandler.onInputSlotFillFinish
(ServerWorld world, RecipeEntry<CraftingRecipe> recipe) protected static void
CraftingScreenHandler.updateResult
(ScreenHandler handler, ServerWorld world, PlayerEntity player, RecipeInputInventory craftingInventory, CraftingResultInventory resultInventory, @Nullable RecipeEntry<CraftingRecipe> recipe) -
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) private void
MinecraftServer.sendTimeUpdatePackets
(ServerWorld world) 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
CloneCommand.DimensionalPos.dimension
The field for thedimension
record component.private final ServerWorld
ServerCommandSource.world
private final ServerWorld
TestCommand.Listener.world
The field for theworld
record component.Modifier and TypeMethodDescriptionCloneCommand.DimensionalPos.dimension()
Returns the value of thedimension
record component.ServerCommandSource.getWorld()
TestCommand.Listener.world()
Returns the value of theworld
record component.Modifier and TypeMethodDescriptionprivate static boolean
TestCommand.checkStructure
(ServerWorld world, String templateId) private static CloneCommand.DimensionalPos
CloneCommand.createDimensionalPos
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, ServerWorld world, String name) private static int
TeleportCommand.execute
(ServerCommandSource source, Collection<? extends Entity> targets, ServerWorld world, PosArgument location, @Nullable PosArgument rotation, @Nullable LookTarget facingLocation) static com.mojang.datafixers.util.Either
<Integer, com.mojang.brigadier.exceptions.CommandSyntaxException> FillBiomeCommand.fillBiome
(ServerWorld world, BlockPos from, BlockPos to, RegistryEntry<Biome> biome) static com.mojang.datafixers.util.Either
<Integer, com.mojang.brigadier.exceptions.CommandSyntaxException> FillBiomeCommand.fillBiome
(ServerWorld world, BlockPos from, BlockPos to, RegistryEntry<Biome> biome, Predicate<RegistryEntry<Biome>> filter, Consumer<Supplier<Text>> feedbackConsumer) SetBlockCommand.Filter.filter
(BlockBox box, BlockPos pos, BlockStateArgument block, ServerWorld world) private static Optional
<GameTestState> TestCommand.find
(BlockPos pos, ServerWorld world, TestAttemptConfig config) 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) private static boolean
ExecuteCommand.isLoaded
(ServerWorld world, BlockPos pos) private static void
TestCommand.Listener.onFinished
(ServerWorld world, TestSet tests) (package 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) (package private) static int
TestCommand.start
(ServerCommandSource source, ServerWorld world, TestRunContext context) private static void
TeleportCommand.teleport
(ServerCommandSource source, Entity target, ServerWorld world, double x, double y, double z, Set<PositionFlag> movementFlags, float yaw, float pitch, @Nullable 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) Modifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.ArgumentBuilder
<ServerCommandSource, ?> CloneCommand.createDestinationArgs
(CommandRegistryAccess commandRegistryAccess, CloneCommand.ArgumentGetter<com.mojang.brigadier.context.CommandContext<ServerCommandSource>, ServerWorld> sourceWorldGetter, CloneCommand.ArgumentGetter<com.mojang.brigadier.context.CommandContext<ServerCommandSource>, ServerWorld> targetWorldGetter) private static com.mojang.brigadier.builder.ArgumentBuilder
<ServerCommandSource, ?> CloneCommand.createSourceArgs
(CommandRegistryAccess commandRegistryAccess, CloneCommand.ArgumentGetter<com.mojang.brigadier.context.CommandContext<ServerCommandSource>, ServerWorld> worldGetter) ModifierConstructorDescription(package private)
DimensionalPos
(ServerWorld serverWorld, BlockPos blockPos) Listener
(ServerWorld world, TestSet tests) Creates an instance of aListener
record class.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, ReturnValueConsumer resultStorer, 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 long
ServerPlayerEntity.addEnderPearlTicket
(ServerWorld world, ChunkPos chunkPos) static void
DebugInfoSender.addGameTestMarker
(ServerWorld world, BlockPos pos, String message, int color, int duration) protected void
ServerPlayerEntity.applyMovementEffects
(ServerWorld world, BlockPos pos) boolean
ServerPlayerEntity.canModifyAt
(ServerWorld world, BlockPos pos) Returns whether the entity can modify the world atpos
.private boolean
ServerPlayerEntity.canSpawnIn
(ServerWorld world, Box box) static void
DebugInfoSender.clearGameTestMarkers
(ServerWorld world) ServerPlayerEntity.createCommonPlayerSpawnInfo
(ServerWorld world) boolean
ServerPlayerEntity.damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.SpawnLocating.findOverworldSpawn
(ServerWorld world, int x, int z) private static Optional
<ServerPlayerEntity.RespawnPos> ServerPlayerEntity.findRespawnPosition
(ServerWorld world, BlockPos pos, float spawnAngle, boolean spawnForced, boolean alive) SpawnLocating.findServerSpawnPoint
(ServerWorld world, ChunkPos chunkPos) private static String
DebugInfoSender.format
(ServerWorld world, @Nullable Object object) ServerPlayerEntity.getWorldSpawnPos
(ServerWorld world, BlockPos basePos) boolean
ServerPlayerEntity.isInvulnerableTo
(ServerWorld world, DamageSource source) private static void
ChunkDataSender.sendChunkData
(ServerPlayNetworkHandler handler, ServerWorld world, WorldChunk chunk) 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, CustomPayload payload) void
ServerPlayerEntity.setServerWorld
(ServerWorld world) void
ServerPlayerInteractionManager.setWorld
(ServerWorld world) boolean
ServerPlayerEntity.teleport
(ServerWorld world, double destX, double destY, double destZ, Set<PositionFlag> flags, float yaw, float pitch, boolean resetCamera) Teleports the entity to the given position.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, SyncedClientOptions clientOptions) -
Uses of ServerWorld in net.minecraft.server.world
Modifier and TypeFieldDescription(package private) final ServerWorld
ServerChunkLoadingManager.world
private final ServerWorld
ServerChunkManager.world
ModifierConstructorDescriptionServerChunkLoadingManager
(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) ServerChunkManager
(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) -
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 size, BlockPos pos, boolean keepJigsaws) -
Uses of ServerWorld in net.minecraft.test
Modifier and TypeFieldDescriptionprivate final ServerWorld
GameTestState.world
private final ServerWorld
TestRunContext.Builder.world
(package private) final ServerWorld
TestRunContext.world
Modifier and TypeFieldDescriptionprivate static final Map
<String, Consumer<ServerWorld>> TestFunctions.AFTER_BATCH_CONSUMERS
private final Consumer
<ServerWorld> GameTestBatch.afterBatchFunction
The field for theafterBatchFunction
record component.private static final Map
<String, Consumer<ServerWorld>> TestFunctions.BEFORE_BATCH_CONSUMERS
private final Consumer
<ServerWorld> GameTestBatch.beforeBatchFunction
The field for thebeforeBatchFunction
record component.Modifier and TypeMethodDescriptionGameTestBatch.afterBatchFunction()
Returns the value of theafterBatchFunction
record component.GameTestBatch.beforeBatchFunction()
Returns the value of thebeforeBatchFunction
record component.static Consumer
<ServerWorld> TestFunctions.getAfterBatchConsumer
(String batchId) static 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, ServerWorld world) static void
StructureTestUtil.clearBarrierBox
(Box box, ServerWorld world) static void
TestRunContext.clearDebugMarkers
(ServerWorld world) static Collection
<GameTestBatch> Batches.createBatches
(Collection<TestFunction> testFunctions, ServerWorld world) private static BlockBox
StructureTestUtil.createBox
(BlockPos pos, int radius, ServerWorld world) static GameTestState
Batches.createState
(TestFunction testFunction, int rotationSteps, ServerWorld world) 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) StructureTestUtil.findStructureBlocks
(BlockPos pos, int radius, ServerWorld world) StructureTestUtil.findStructureBlocks
(BlockPos pos, int radius, ServerWorld world, String templateName) StructureTestUtil.findTargetedStructureBlock
(BlockPos pos, Entity entity, ServerWorld world) private static void
StructureTestUtil.forceLoadNearbyChunks
(BlockBox box, ServerWorld world) static BlockPos
StructureTestUtil.getPlacementPos
(GameTestState state, BlockPos pos, BlockRotation rotation, ServerWorld world) static StructureBlockBlockEntity
StructureTestUtil.initStructure
(GameTestState state, BlockPos pos, BlockRotation rotation, ServerWorld world) private static boolean
StructureTestUtil.isInStructureBounds
(BlockPos structureBlockPos, BlockPos pos, ServerWorld world) static TestRunContext.Builder
TestRunContext.Builder.of
(Collection<GameTestBatch> batches, ServerWorld world) static TestRunContext.Builder
TestRunContext.Builder.ofStates
(Collection<GameTestState> states, ServerWorld world) default void
TestRunContext.TestStructureSpawner.onBatch
(ServerWorld world) void
TestStructurePlacer.onBatch
(ServerWorld world) static void
StructureTestUtil.placeBarrierBox
(Box box, ServerWorld world, boolean noSkyAccess) static void
StructureTestUtil.placeStartButton
(BlockPos pos, BlockPos relativePos, BlockRotation rotation, ServerWorld world) private static StructureBlockBlockEntity
StructureTestUtil.placeStructureTemplate
(GameTestState state, BlockPos pos, BlockRotation rotation, ServerWorld world) private static void
StructureTestUtil.resetBlock
(int altitude, BlockPos pos, ServerWorld world) private void
TestServer.runTestBatches
(ServerWorld world) protected static void
StructureTestListener.sendMessageToAllPlayers
(ServerWorld world, Formatting formatting, String message) Modifier and TypeMethodDescriptionprivate static <T extends Annotation>
voidTestFunctions.registerBatchConsumers
(Method method, Class<T> clazz, Function<T, String> batchIdFunction, Map<String, Consumer<ServerWorld>> batchConsumerMap) ModifierConstructorDescriptionprivate
Builder
(Collection<GameTestBatch> batches, ServerWorld world) GameTestState
(TestFunction testFunction, BlockRotation rotation, ServerWorld world, TestAttemptConfig testAttemptConfig) protected
TestRunContext
(TestRunContext.Batcher batcher, Collection<GameTestBatch> batches, ServerWorld world, TestManager manager, TestRunContext.TestStructureSpawner reuseSpawner, TestRunContext.TestStructureSpawner initialSpawner, boolean stopAfterFailure) ModifierConstructorDescriptionGameTestBatch
(String id, Collection<GameTestState> testFunctions, Consumer<ServerWorld> beforeBatchConsumer, Consumer<ServerWorld> afterBatchConsumer) -
Uses of ServerWorld in net.minecraft.util.math
Modifier and TypeFieldDescriptionprivate final ServerWorld
BlockPointer.world
The field for theworld
record component.Modifier and TypeMethodDescriptionBlockPointer.world()
Returns the value of theworld
record component.ModifierConstructorDescriptionBlockPointer
(ServerWorld serverWorld, BlockPos blockPos, BlockState blockState, DispenserBlockEntity dispenserBlockEntity) -
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) static PersistentState.Type
<RaidManager> RaidManager.getPersistentStateType
(ServerWorld world) 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
TeleportTarget.world
The field for theworld
record component.Modifier and TypeMethodDescriptionabstract ServerWorld
CommandBlockExecutor.getWorld()
ChunkRegion.toServerWorld()
Deprecated.EntityLookupView.toServerWorld()
ServerWorldAccess.toServerWorld()
TeleportTarget.world()
Returns the value of theworld
record component.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) private static Pool
<SpawnSettings.SpawnEntry> SpawnHelper.getSpawnEntries
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, BlockPos pos, @Nullable RegistryEntry<Biome> biomeEntry) private static Vec3d
TeleportTarget.getWorldSpawnPos
(ServerWorld world, Entity entity) 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) static TeleportTarget
TeleportTarget.missingSpawnBlock
(ServerWorld world, Entity entity, TeleportTarget.PostDimensionTransition postDimensionTransition) private static Optional
<SpawnSettings.SpawnEntry> SpawnHelper.pickRandomSpawnEntry
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, Random random, 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, List<SpawnGroup> spawnableGroups) 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, BoundedRegionArray<AbstractChunkHolder> chunks, ChunkGenerationStep generationStep, Chunk centerPos) TeleportTarget
(ServerWorld world, Entity entity, TeleportTarget.PostDimensionTransition postDimensionTransition) TeleportTarget
(ServerWorld serverWorld, Vec3d vec3d, Vec3d vec3d2, float float2, float float3, boolean bool, boolean bool2, Set<PositionFlag> set, TeleportTarget.PostDimensionTransition postDimensionTransition) TeleportTarget
(ServerWorld world, Vec3d pos, Vec3d velocity, float yaw, float pitch, Set<PositionFlag> flags, TeleportTarget.PostDimensionTransition postDimensionTransition) TeleportTarget
(ServerWorld world, Vec3d pos, Vec3d velocity, float yaw, float pitch, TeleportTarget.PostDimensionTransition postDimensionTransition) -
Uses of ServerWorld in net.minecraft.world.chunk
Modifier and TypeFieldDescriptionprivate final ServerWorld
ChunkGenerationContext.world
The field for theworld
record component.Modifier and TypeMethodDescriptionChunkGenerationContext.world()
Returns the value of theworld
record component.Modifier and TypeMethodDescriptionvoid
WorldChunk.addChunkTickSchedulers
(ServerWorld world) private static void
ChunkGenerating.addEntities
(ServerWorld world, List<NbtCompound> entities) SerializedChunk.convert
(ServerWorld world, PointOfInterestStorage poiStorage, StorageKey key, ChunkPos expectedPos) static SerializedChunk
SerializedChunk.fromChunk
(ServerWorld world, Chunk chunk) private static WorldChunk.EntityLoader
SerializedChunk.getEntityLoadingCallback
(ServerWorld world, List<NbtCompound> entities, List<NbtCompound> blockEntities) void
WorldChunk.removeChunkTickSchedulers
(ServerWorld world) private <T extends BlockEntity>
voidWorldChunk.removeGameEventListener
(T blockEntity, ServerWorld world) void
WorldChunk.runPostProcessing
(ServerWorld world) private <T extends BlockEntity>
voidWorldChunk.updateGameEventListener
(T blockEntity, ServerWorld world) ModifierConstructorDescriptionChunkGenerationContext
(ServerWorld serverWorld, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ServerLightingProvider serverLightingProvider, Executor executor, WorldChunk.UnsavedListener unsavedListener) WorldChunk
(ServerWorld world, ProtoChunk protoChunk, @Nullable WorldChunk.EntityLoader entityLoader) -
Uses of ServerWorld in net.minecraft.world.dimension
Modifier and TypeMethodDescriptionPortalManager.createTeleportTarget
(ServerWorld world, Entity entity) static Vec3d
NetherPortal.findOpenPosition
(Vec3d fallback, ServerWorld world, Entity entity, EntityDimensions dimensions) boolean
PortalManager.tick
(ServerWorld world, Entity entity, boolean canUsePortals) -
Uses of ServerWorld in net.minecraft.world.event
Modifier and TypeMethodDescriptionvoid
Vibrations.Callback.accept
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.private static boolean
Vibrations.Ticker.accept
(ServerWorld world, Vibrations.ListenerData listenerData, Vibrations.Callback callback, Vibration vibration) boolean
Vibrations.Callback.accepts
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.void
Vibrations.VibrationListener.forceListen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) boolean
Vibrations.VibrationListener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.private void
Vibrations.VibrationListener.listen
(ServerWorld world, Vibrations.ListenerData listenerData, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos, Vec3d listenerPos) private static void
Vibrations.Ticker.spawnVibrationParticle
(ServerWorld world, Vibrations.ListenerData listenerData, Vibrations.Callback callback) private static void
Vibrations.Ticker.tryListen
(ServerWorld world, Vibrations.ListenerData listenerData, Vibrations.Callback callback) -
Uses of ServerWorld in net.minecraft.world.event.listener
Modifier and TypeFieldDescriptionprivate final ServerWorld
GameEventDispatchManager.world
private final ServerWorld
SimpleGameEventDispatcher.world
Modifier and TypeMethodDescriptionSimpleGameEventDispatcher.dispatchTo
(ServerWorld world, Vec3d listenerPos, GameEventListener listener) Vibration.getEntity
(ServerWorld world) Vibration.getOwner
(ServerWorld world) boolean
GameEventListener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.void
EntityGameEventHandler.onEntityRemoval
(ServerWorld world) void
EntityGameEventHandler.onEntitySetPos
(ServerWorld world) void
EntityGameEventHandler.onEntitySetPosCallback
(ServerWorld world) ModifierConstructorDescriptionSimpleGameEventDispatcher
(ServerWorld world, int ySectionCoord, SimpleGameEventDispatcher.DisposalCallback disposalCallback) -
Uses of ServerWorld in net.minecraft.world.explosion
ModifierConstructorDescriptionExplosionImpl
(ServerWorld world, @Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, Vec3d pos, float power, boolean createFire, Explosion.DestructionType destructionType) -
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
SpecialSpawner.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
(ChunkPosKeyedStorage storage, ServerWorld world, Executor executor)