跳转至

@minecraft/server

文档版本:1.21.0.24

@minecraft/server模块的1.2.0版本,UUID为b26a4d4c-afdf-4690-88f8-931846312678。该模块是服务端的基础模块。

依赖

该模块依赖于以下模块:

  • @minecraft/common|1.0.0|77ec12b4-1b2b-4c98-8d34-d1cd63f849d5

对象

system
static read-only system: System;
world
static read-only world: World;

描述
Block
BlockComponent
BlockInventoryComponent
BlockPermutation
CommandResult
Component
Container
Dimension
Entity
EntityBaseMovementComponent
EntityCanClimbComponent
EntityCanFlyComponent
EntityCanPowerJumpComponent
EntityColorComponent
EntityComponent
EntityFireImmuneComponent
EntityFloatsInLiquidComponent
EntityFlyingSpeedComponent
EntityFrictionModifierComponent
EntityGroundOffsetComponent
EntityInventoryComponent
EntityIsBabyComponent
EntityIsChargedComponent
EntityIsChestedComponent
EntityIsDyeableComponent
EntityIsHiddenWhenInvisibleComponent
EntityIsIgnitedComponent
EntityIsIllagerCaptainComponent
EntityIsSaddledComponent
EntityIsShakingComponent
EntityIsShearedComponent
EntityIsStackableComponent
EntityIsStunnedComponent
EntityIsTamedComponent
EntityItemComponent
EntityMarkVariantComponent
EntityMovementAmphibiousComponent
EntityMovementBasicComponent
EntityMovementFlyComponent
EntityMovementGenericComponent
EntityMovementHoverComponent
EntityMovementJumpComponent
EntityMovementSkipComponent
EntityPushThroughComponent
EntityScaleComponent
EntitySkinIdComponent
EntityVariantComponent
EntityWantsJockeyComponent
ItemComponent
ItemStack
ItemType
MinecraftDimensionTypes
Player
System
World

接口

接口 描述
EntityApplyDamageByProjectileOptions
EntityApplyDamageOptions
EntityFilter
EntityQueryOptions
EntityQueryScoreOptions
MusicOptions
PlayerSoundOptions
RawMessage
RawMessageScore
Vector3
WorldSoundOptions

枚举

枚举 描述
EntityDamageCause
GameMode
ItemLockMode

错误

错误 描述
CommandError
LocationInUnloadedChunkError
LocationOutOfWorldBoundariesError