手册:引擎事件

来自Minecraft基岩版开发Wiki

本页面记录了模组SDK中所有的引擎事件,其中事件的赋命名空间标识符以<namespace>:<system_name>:<event_name>的格式标注,大小写敏感。在引擎事件中,<namespace>:<system_name>始终为Minecraft:Engine

事件列表[编辑]

掩码用技术性事件
原生枚举键 枚举值
UndefineEvent 0x0
ServerEvent 0x10000000
NetGameEvent 0x11000000
ServerModEvent 0x12000000
EntityServerEvent 0x10001000
ItemServerEvent 0x10002000
ActorServerEvent 0x10003000
CreatureServerEvent 0x10004000
BlockServerEvent 0x10005000
WorldServerEvent 0x10006000
ProjectileServerEvent 0x10007000
PlayerServerEvent 0x10008000
ClientEvent 0x20000000
EntityClientEvent 0x20001000
ItemClientEvent 0x20002000
ControlClientEvent 0x20003000
ActorClientEvent 0x20004000
BlockClientEvent 0x20005000
WorldClientEvent 0x20006000
UIClientEvent 0x20007000
MusicClientEvent 0x20008000
PlayerClientEvent 0x20009000
UndocumentedServerEvent 0x30000000
UndocumentedClientEvent 0x40000000
PresetEvent 0x40000000
PresetClientEvent 0x41000000
PresetServerEvent 0x42000000
EditorEvent 0x50000000
EditorClientEvent 0x51000000
EditorServerEvent 0x52000000

服务端事件[编辑]

服务端事件皆使用ServerEvent对应的掩码。

网络游戏事件[编辑]

网络游戏事件皆使用NetGameEvent对应的掩码。

网络游戏事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
GetPlayerLockServerEvent 0x1 0x11000001 - Minecraft:Engine:ServerGetPlayerLockEvent
StoreBuySuccServerEvent 0x2 0x11000002 StoreBuySuccServerEvent Minecraft:Engine:StoreBuySuccServerEventMinecraft:Engine:StoreBuySuccEvent
SavePlayerDataOnShutDownServerEvent 0x3 0x11000003 - Minecraft:Engine:savePlayerDataOnShutDownEvent
SavePlayerDataServerEvent 0x4 0x11000004 - Minecraft:Engine:savePlayerDataEvent
QueryPlayerDataServerEvent 0x5 0x11000005 - Minecraft:Engine:queryPlayerDataEvent
QueryScriptSaveServerEvent 0x6 0x11000006 - Minecraft:Engine:QueryScriptSaveEvent
ReleasePlayerLockOnShutDownServerEvent 0x7 0x11000007 - Minecraft:Engine:ServerReleasePlayerLockOnShutDownEvent
ReleasePlayerLockServerEvent 0x8 0x11000008 - Minecraft:Engine:ServerReleasePlayerLockEvent
ServerWillShutDownServerEvent 0x9 0x11000009 - Minecraft:Engine:ServerWillShutDownEvent
ReceivePyRpcServerNodeServerEvent 0xA 0x1100000A - Minecraft:Engine:ReceivePyRpcServerNodeServerEvent
MasterConnectStatusServerEvent 0xB 0x1100000B - Minecraft:Engine:MasterConnectStatusEvent
ServiceDisconnectServerEvent 0xC 0x1100000C - Minecraft:Engine:ServiceDisconnectEvent
ReloadCommonConfigServerEvent 0xD 0x1100000D - Minecraft:Engine:ReloadCommonConfigEvent
MasterGraceShutDownServerEvent 0xE 0x1100000E - Minecraft:Engine:MasterGraceShutDownEvent
MasterForceShutDownServerEvent 0xF 0x1100000F - Minecraft:Engine:MasterForceShutDownEvent
PrepareTransferResponseServerEvent 0x10 0x11000010 - Minecraft:Engine:PrepareTransferResponseEvent
ServiceConnectServerEvent 0x11 0x11000011 - Minecraft:Engine:ServiceConnectEvent
PyRpcServiceResponseServerEvent 0x12 0x11000012 - Minecraft:Engine:PyRpcServiceResponseEvent
ServiceRegisterModuleServerEvent 0x13 0x11000013 - Minecraft:Engine:ServiceRegisterModuleEvent
LogCrucialMeasureServerEvent 0x14 0x11000014 - Minecraft:Engine:LogCrucialMeasure
MasterResponseTransferFailServerEvent 0x15 0x11000015 - Minecraft:Engine:MasterResponseTransferFailServerEvent
LoadChunkFromDatabaseServerEvent 0x16 0x11000016 - Minecraft:Engine:LoadChunkFromDatabaseServerEvent
SaveChunkFromDatabaseServerEvent 0x17 0x11000017 - Minecraft:Engine:SaveChunkFromDatabaseServerEvent

服务端模组事件[编辑]

服务端模组事件皆使用ServerModEvent对应的掩码。

服务端模组事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
PlayerBornPosServerEvent 0x1 0x12000001 - Minecraft:Engine:ServerPlayerBornPosEvent
PythonSignalServerEvent 0x2 0x12000002 - Minecraft:Engine:PythonSignalEvent
PlayerLeftMessageServerEvent 0x3 0x12000003 PlayerLeftMessageServerEvent Minecraft:Engine:PlayerLeftMessageServerEvent
PlayerJoinMessageServerEvent 0x4 0x12000004 PlayerJoinMessageEvent Minecraft:Engine:PlayerJoinMessageEvent
PlayerLeftServerEvent 0x5 0x12000005 - Minecraft:Engine:PlayerLeftEvent

实体服务端事件[编辑]

实体服务端事件皆使用EntityServerEvent对应的掩码。

实体服务端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
AddEntityServerEvent 0x1 0x10001001 - Minecraft:Engine:AddEntityServerEvent
AttackAnimBeginServerEvent 0x2 0x10001002 AttackAnimBeginServerEvent Minecraft:Engine:AttackAnimBeginServerEvent
AttackAnimEndServerEvent 0x3 0x10001003 AttackAnimEndServerEvent Minecraft:Engine:AttackAnimEndServerEvent
EntityLoadScriptServerEvent 0x4 0x10001004 EntityLoadScriptEvent Minecraft:Engine:EntityLoadScriptEvent
EntityRemoveServerEvent 0x5 0x10001005 EntityRemoveEvent Minecraft:Engine:EntityRemoveEvent
EntityStartRidingServerEvent 0x6 0x10001006 EntityStartRidingEvent Minecraft:Engine:EntityStartRidingEvent
EntityStopRidingServerEvent 0x7 0x10001007 EntityStopRidingEvent Minecraft:Engine:EntityStopRidingEvent
JumpAnimBeginServerEvent 0x8 0x10001008 JumpAnimBeginServerEvent Minecraft:Engine:JumpAnimBeginServerEvent
MobDieServerEvent 0x9 0x10001009 MobDieEvent Minecraft:Engine:MobDieEvent
OnKnockBackServerEvent 0xA 0x1000100A OnKnockBackServerEvent Minecraft:Engine:OnKnockBackServerEvent
WalkAnimBeginServerEvent 0xB 0x1000100B WalkAnimBeginServerEvent Minecraft:Engine:WalkAnimBeginServerEvent
WalkAnimEndServerEvent 0xC 0x1000100C WalkAnimEndServerEvent Minecraft:Engine:WalkAnimEndServerEvent
StartRidingServerEvent 0xD 0x1000100D StartRidingServerEvent Minecraft:Engine:StartRidingServerEvent
ChangeSwimStateServerEvent 0xF 0x1000100F ChangeSwimStateServerEvent Minecraft:Engine:ChangeSwimStateServerEvent
HealthChangeServerEvent 0x10 0x10001010 - Minecraft:Engine:HealthChangeServerEvent

物品服务端事件[编辑]

物品服务端事件皆使用ItemServerEvent对应的掩码。

物品服务端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
ActorAcquiredItemServerEvent 0x1 0x10002001 ActorAcquiredItemServerEvent Minecraft:Engine:ActorAcquiredItemServerEvent
ActorUseItemServerEvent 0x2 0x10002002 - Minecraft:Engine:ActorUseItemServerEvent
ItemTryUseServerEvent 0x3 0x10002003 - Minecraft:Engine:ServerItemTryUseEvent
ItemUseOnServerEvent 0x4 0x10002004 - Minecraft:Engine:ServerItemUseOnEvent
PlayerTryTouchServerEvent 0x5 0x10002005 ServerPlayerTryTouchEvent Minecraft:Engine:ServerPlayerTryTouchEvent
ItemReleaseUsingServerEvent 0x6 0x10002006 ItemReleaseUsingServerEvent Minecraft:Engine:ItemReleaseUsingServerEvent
PlayerDropItemServerEvent 0x7 0x10002007 PlayerDropItemServerEvent Minecraft:Engine:PlayerDropItemServerEvent
OnContainerFillLoottableServerEvent 0x8 0x10002008 - Minecraft:Engine:OnContainerFillLoottableServerEvent
EntityDieLoottableServerEvent 0x9 0x10002009 - Minecraft:Engine:EntityDieLoottableServerEvent
ItemUseOnAfterServerEvent 0xA 0x1000200A - Minecraft:Engine:ItemUseOnAfterServerEvent
ItemUseAfterServerEvent 0xB 0x1000200B - Minecraft:Engine:ItemUseAfterServerEvent
InventoryItemChangedServerEvent 0xC 0x1000200C - Minecraft:Engine:InventoryItemChangedServerEvent
ShearsUseToBlockBeforeServerEvent 0xD 0x1000200D ShearsUseToBlockBeforeServerEvent Minecraft:Engine:ShearsUseToBlockBeforeServerEvent
CraftItemOutputChangeServerEvent 0xE 0x1000200E - Minecraft:Engine:CraftItemOutputChangeServerEvent
InventoryActionServerEvent 0xF 0x1000200F - Minecraft:Engine:InventoryActionServerEvent
OnItemPutInEnchantingModelServerEvent 0x10 0x10002010 OnItemPutInEnchantingModelServerEvent Minecraft:Engine:OnItemPutInEnchantingModelServerEvent
LobbyGoodBuySucServerEvent 0x11 0x10002011 - Minecraft:Engine:lobbyGoodBuySucServerEvent

活动对象服务端事件[编辑]

活动对象服务端事件皆使用ActorServerEvent对应的掩码。

活动对象服务端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
AddExpServerEvent 0x1 0x10003001 AddExpEvent Minecraft:Engine:AddExpEvent
AddLevelServerEvent 0x2 0x10003002 AddLevelEvent Minecraft:Engine:AddLevelEvent
AddServerPlayerServerEvent 0x3 0x10003003 AddServerPlayerEvent Minecraft:Engine:AddServerPlayerEvent
CommandServerEvent 0x4 0x10003004 - Minecraft:Engine:CommandEvent
DelServerPlayerServerEvent 0x5 0x10003005 DelServerPlayerEvent Minecraft:Engine:DelServerPlayerEvent
DimensionChangeServerEvent 0x6 0x10003006 - Minecraft:Engine:DimensionChangeServerEvent
OnNewArmorExchangeServerEvent 0x7 0x10003007 OnNewArmorExchangeServerEvent Minecraft:Engine:OnNewArmorExchangeServerEvent
PlayerAttackEntityServerEvent 0x8 0x10003008 PlayerAttackEntityEvent Minecraft:Engine:PlayerAttackEntityEvent
PlayerDieServerEvent 0x9 0x10003009 PlayerDieEvent Minecraft:Engine:PlayerDieEvent
PlayerHurtServerEvent 0xA 0x1000300A PlayerHurtEvent Minecraft:Engine:PlayerHurtEvent
PlayerRespawnServerEvent 0xB 0x1000300B PlayerRespawnEvent Minecraft:Engine:PlayerRespawnEvent
PlayerTeleportServerEvent 0xC 0x1000300C PlayerTeleportEvent Minecraft:Engine:PlayerTeleportEvent
PlayerTouchNewModItemServerEvent 0xD 0x1000300D - Minecraft:Engine:PlayerTouchNewModItemEvent
ChatServerEvent 0xE 0x1000300E ServerChatEvent Minecraft:Engine:ServerChatEvent
PlayerGetExperienceOrbServerEvent 0xF 0x1000300F ServerPlayerGetExperienceOrbEvent Minecraft:Engine:ServerPlayerGetExperienceOrbEvent
OnSayCommandServerEvent 0x10 0x10003010 - Minecraft:Engine:OnSayCommandEvent
PlayerEatFoodServerEvent 0x11 0x10003011 PlayerEatFoodServerEvent Minecraft:Engine:PlayerEatFoodServerEvent
AddEffectServerEvent 0x12 0x10003012 AddEffectServerEvent Minecraft:Engine:AddEffectServerEvent
RemoveEffectServerEvent 0x13 0x10003013 RemoveEffectServerEvent Minecraft:Engine:RemoveEffectServerEvent
PlayerInteractServerEvent 0x14 0x10003014 PlayerInteractServerEvent Minecraft:Engine:PlayerInteractServerEvent
OnArmorExchangeServerEvent 0x15 0x10003015 OnArmorExchangeServerEvent Minecraft:Engine:OnArmorExchangeServerEvent
OnOffhandItemChangedServerEvent 0x16 0x10003016 OnOffhandItemChangedServerEvent Minecraft:Engine:OnOffhandItemChangedServerEvent
OnCarriedNewItemChangedServerEvent 0x17 0x10003017 OnCarriedNewItemChangedServerEvent Minecraft:Engine:OnCarriedNewItemChangedServerEvent
RefreshEffectServerEvent 0x18 0x10003018 RefreshEffectServerEvent Minecraft:Engine:RefreshEffectServerEvent
EntityDefinitionsEventServerEvent 0x19 0x10003019 EntityDefinitionsEventServerEvent Minecraft:Engine:EntityDefinitionsEventServerEvent
ActuallyHurtServerEvent 0x1A 0x1000301A - Minecraft:Engine:ActuallyHurtServerEvent
DimensionChangeFinishServerEvent 0x1B 0x1000301B DimensionChangeFinishServerEvent Minecraft:Engine:DimensionChangeFinishServerEvent
ActorHurtServerEvent 0x1C 0x1000301C - Minecraft:Engine:ActorHurtServerEvent
ConfirmSkinServerEvent 0x1D 0x1000301D - Minecraft:Engine:ConfirmSkinServerEvent
RentalVerboseLog 0x1E 0x1000301E - Minecraft:Engine:RentalVerboseLog
ActorTickServerEvent 0x1F 0x1000301F - Minecraft:Engine:EntityTickServerEvent
ChangeLevelUpCostServerEvent 0x20 0x10003020 ChangeLevelUpCostServerEvent Minecraft:Engine:ChangeLevelUpCostServerEvent
WillAddEffectServerEvent 0x21 0x10003021 WillAddEffectServerEvent Minecraft:Engine:WillAddEffectServerEvent
PlayerRespawnFinishServerEvent 0x22 0x10003022 - Minecraft:Engine:PlayerRespawnFinishServerEvent
PlayerTrySleepServerEvent 0x23 0x10003023 PlayerTrySleepServerEvent Minecraft:Engine:PlayerTrySleepServerEvent
PlayerSleepServerEvent 0x24 0x10003024 PlayerSleepServerEvent Minecraft:Engine:PlayerSleepServerEvent
PlayerStopSleepServerEvent 0x25 0x10003025 PlayerStopSleepServerEvent Minecraft:Engine:PlayerStopSleepServerEvent
PlayerSpinAttackServerEvent 0x26 0x10003026 PlayerSpinAttackServerEvent Minecraft:Engine:PlayerSpinAttackServerEvent
PlayerCheatSpinAttackServerEvent 0x27 0x10003027 PlayerCheatSpinAttackServerEvent Minecraft:Engine:PlayerCheatSpinAttackServerEvent
PlayerIntendLeaveServerEvent 0x28 0x10003028 PlayerIntendLeaveServerEvent Minecraft:Engine:PlayerIntendLeaveServerEvent
EntityEnterPlayerAOIServerEvent 0x29 0x10003029 EntityEnterPlayerAOIServerEvent Minecraft:Engine:EntityEnterPlayerAOIServerEvent
EntityExitPlayerAOIServerEvent 0x2A 0x1000302A EntityExitPlayerAOIServerEvent Minecraft:Engine:EntityExitPlayerAOIServerEvent

生物服务端事件[编辑]

生物服务端事件皆使用CreatureServerEvent对应的掩码。

生物服务端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
DamageServerEvent 0x1 0x10004001 DamageEvent Minecraft:Engine:DamageEvent
ExplosionHurtServerEvent 0x2 0x10004002 ExplosionHurtEvent Minecraft:Engine:ExplosionHurtEvent
OnFireHurtServerEvent 0x3 0x10004003 OnFireHurtEvent Minecraft:Engine:OnFireHurtEvent
SpawnMobServerEvent 0x4 0x10004004 ServerSpawnMobEvent Minecraft:Engine:ServerSpawnMobEvent
MobGriefingBlockServerEvent 0x5 0x10004005 MobGriefingBlockServerEvent Minecraft:Engine:MobGriefingBlockServerEvent
WillTeleportToServerEvent 0x6 0x10004006 WillTeleportToServerEvent Minecraft:Engine:WillTeleportToServerEvent
EntityChangeDimensionServerEvent 0x7 0x10004007 EntityChangeDimensionServerEvent Minecraft:Engine:EntityChangeDimensionServerEvent
EntityEffectDamageServerEvent 0x8 0x10004008 EntityEffectDamageServerEvent Minecraft:Engine:EntityEffectDamageServerEvent

方块服务端事件[编辑]

方块服务端事件皆使用BlockServerEvent对应的掩码。

方块服务端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
DestroyBlockServerEvent 0x1 0x10005001 DestroyBlockEvent Minecraft:Engine:DestroyBlockEvent
BlockUseServerEvent 0x2 0x10005002 - Minecraft:Engine:ServerBlockUseEvent
EntityTryPlaceBlockServerEvent 0x3 0x10005003 ServerEntityTryPlaceBlockEvent Minecraft:Engine:ServerEntityTryPlaceBlockEvent
ExplosionBlockServerEvent 0x4 0x10005004 ServerExplosionBlockEvent Minecraft:Engine:ServerExplosionBlockEvent
PlayerTryDestroyBlockServerEvent 0x5 0x10005005 ServerPlayerTryDestroyBlockEvent Minecraft:Engine:ServerPlayerTryDestroyBlockEvent
PostBlockPatternServerEvent 0x6 0x10005006 ServerPostBlockPatternEvent Minecraft:Engine:ServerPostBlockPatternEvent
PreBlockPatternServerEvent 0x7 0x10005007 ServerPreBlockPatternEvent Minecraft:Engine:ServerPreBlockPatternEvent
NewModBlockUseServerEvent 0x8 0x10005008 - Minecraft:Engine:NewModBlockUseEvent
ModBlockUseServerEvent 0x9 0x10005009 - Minecraft:Engine:ModBlockUseEvent
BlockRandomTickServerEvent 0xA 0x1000500A BlockRandomTickServerEvent Minecraft:Engine:BlockRandomTickServerEvent
BlockNeighborChangedServerEvent 0xB 0x1000500B BlockNeighborChangedServerEvent Minecraft:Engine:BlockNeighborChangedServerEvent
PlaceBlockEntityServerEvent 0xC 0x1000500C ServerPlaceBlockEntityEvent Minecraft:Engine:ServerPlaceBlockEntityEvent
BlockEntityTickServerEvent 0xD 0x1000500D ServerBlockEntityTickEvent Minecraft:Engine:ServerBlockEntityTickEvent
PistonActionServerEvent 0xE 0x1000500E PistonActionServerEvent Minecraft:Engine:PistonActionServerEvent
BlockStrengthChangedServerEvent 0xF 0x1000500F BlockStrengthChangedServerEvent Minecraft:Engine:BlockStrengthChangedServerEvent
ChestBlockTryPairWithServerEvent 0x10 0x10005010 ChestBlockTryPairWithServerEvent Minecraft:Engine:ChestBlockTryPairWithServerEvent
BlockRemoveServerEvent 0x11 0x10005011 BlockRemoveServerEvent Minecraft:Engine:BlockRemoveServerEvent
EntityPlaceBlockAfterServerEvent 0x12 0x10005012 - Minecraft:Engine:EntityPlaceBlockAfterServerEvent
HopperTryPullInServerEvent 0x13 0x10005013 HopperTryPullInServerEvent Minecraft:Engine:HopperTryPullInServerEvent
HopperTryPullOutServerEvent 0x14 0x10005014 HopperTryPullOutServerEvent Minecraft:Engine:HopperTryPullOutServerEvent
ShearsDestoryBlockBeforeServerEvent 0x15 0x10005015 ShearsDestoryBlockBeforeServerEvent Minecraft:Engine:ShearsDestoryBlockBeforeServerEvent
CommandBlockContainerOpenEvent 0x16 0x10005016 CommandBlockContainerOpenEvent Minecraft:Engine:CommandBlockContainerOpenEvent
CommandBlockUpdateEvent 0x17 0x10005017 CommandBlockUpdateEvent Minecraft:Engine:CommandBlockUpdateEvent
HeavyBlockStartFallingServerEvent 0x18 0x10005018 HeavyBlockStartFallingServerEvent Minecraft:Engine:HeavyBlockStartFallingServerEvent
FallingBlockCauseDamageBeforeServerEvent 0x19 0x10005019 FallingBlockCauseDamageBeforeServerEvent Minecraft:Engine:FallingBlockCauseDamageBeforeServerEvent
FallingBlockBreakServerEvent 0x1A 0x1000501A FallingBlockBreakServerEvent Minecraft:Engine:FallingBlockBreakServerEvent
FallingBlockReturnHeavyBlockServerEvent 0x1B 0x1000501B FallingBlockReturnHeavyBlockServerEvent Minecraft:Engine:FallingBlockReturnHeavyBlockServerEvent
OnBeforeFallOnBlockServerEvent 0x1C 0x1000501C OnBeforeFallOnBlockServerEvent Minecraft:Engine:OnBeforeFallOnBlockServerEvent
OnAfterFallOnBlockServerEvent 0x1D 0x1000501D OnAfterFallOnBlockServerEvent Minecraft:Engine:OnAfterFallOnBlockServerEvent
OnStandOnBlockServerEvent 0x1E 0x1000501E OnStandOnBlockServerEvent Minecraft:Engine:OnStandOnBlockServerEvent
OnEntityInsideServerEvent 0x1F 0x1000501F OnEntityInsideServerEvent Minecraft:Engine:OnEntityInsideBlockServerEvent
StepOnBlockServerEvent 0x20 0x10005020 StepOnBlockServerEvent Minecraft:Engine:StepOnBlockServerEvent
StepOffBlockServerEvent 0x21 0x10005021 StepOffBlockServerEvent Minecraft:Engine:StepOffBlockServerEvent
BlockLiquidStateChangeServerEvent 0x22 0x10005022 - Minecraft:Engine:BlockLiquidStateChangeServerEvent
BlockLiquidStateChangeAfterServerEvent 0x23 0x10005023 - Minecraft:Engine:BlockLiquidStateChangeAfterServerEvent
BlockSnowStateChangeServerEvent 0x24 0x10005024 - Minecraft:Engine:BlockSnowStateChangeServerEvent
BlockSnowStateChangeAfterServerEvent 0x25 0x10005025 - Minecraft:Engine:BlockSnowStateChangeAfterServerEvent

世界服务端事件[编辑]

世界服务端事件皆使用WorldServerEvent对应的掩码。

世界服务端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
LoadServerAddonScriptsAfterServerEvent 0x1 0x10006001 LoadServerAddonScriptsAfter Minecraft:Engine:LoadServerAddonScriptsAfter
OnScriptTickServerEvent 0x2 0x10006002 OnScriptTickServer Minecraft:Engine:OnScriptTickServer
PlaceNeteaseStructureFeatureServerEvent 0x3 0x10006003 - Minecraft:Engine:PlaceNeteaseStructureFeatureEvent
ExplosionServerEvent 0x4 0x10006004 - Minecraft:Engine:ExplosionServerEvent
ChunkGeneratedServerEvent 0x5 0x10006005 - Minecraft:Engine:ChunkGeneratedServerEvent
ChunkLoadedServerEvent 0x6 0x10006006 - Minecraft:Engine:ChunkLoadedServerEvent
ChunkAcquireDiscardedServerEvent 0x7 0x10006007 - Minecraft:Engine:ChunkAcquireDiscardedServerEvent
GameTypeChangedServerEvent 0x8 0x10006008 GameTypeChangedServerEvent Minecraft:Engine:GameTypeChangedServerEvent
OnCommandOutputServerEvent 0x9 0x10006009 OnCommandOutputServerEvent Minecraft:Engine:OnCommandOutputServerEvent
OnTickUpdateServerEvent 0xA 0x1000600A - Minecraft:Engine:OnTickUpdateServerEvent
OnRainLevelChangeServerEvent 0xB 0x1000600B - Minecraft:Engine:OnRainLevelChangeServerEvent
OnLightningLevelChangeServerEvent 0xC 0x1000600C - Minecraft:Engine:OnLightningLevelChangeServerEvent
OnSimTickServerEvent 0xD 0x1000600D - Minecraft:Engine:OnSimTickServerEvent
OnLocalRainLevelChangeServerEvent 0xE 0x1000600E - Minecraft:Engine:OnLocalRainLevelChangeServerEvent
OnLocalLightningLevelChangeServerEvent 0xF 0x1000600F - Minecraft:Engine:OnLocalLightningLevelChangeServerEvent

弹射物服务端事件[编辑]

弹射物服务端事件皆使用ProjectileServerEvent对应的掩码。

弹射物服务端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
ProjectileCritHitServerEvent 0x1 0x10007001 ProjectileCritHitEvent Minecraft:Engine:ProjectileCritHitEvent
ProjectileDoHitEffectServerEvent 0x2 0x10007002 ProjectileDoHitEffectEvent Minecraft:Engine:ProjectileDoHitEffectEvent
SpawnProjectileServerEvent 0x3 0x10007003 - Minecraft:Engine:SpawnProjectileServerEvent

玩家服务端事件[编辑]

玩家服务端事件皆使用PlayerServerEvent对应的掩码。

玩家服务端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
StartDestroyBlockServerEvent 0x1 0x10008001 - Minecraft:Engine:StartDestroyBlockServerEvent
ExtinguishFireServerEvent 0x2 0x10008002 - Minecraft:Engine:ExtinguishFireServerEvent

客户端事件[编辑]

客户端事件皆使用ClientEvent对应的掩码。

实体客户端事件[编辑]

实体客户端事件皆使用EntityClientEvent对应的掩码。

实体客户端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
AddEntityClientEvent 0x1 0x20001001 AddEntityEvent Minecraft:Engine:AddEntityClientEventMinecraft:Engine:AddEntityEvent
AttackAnimBeginClientEvent 0x2 0x20001002 AttackAnimBeginClientEvent Minecraft:Engine:AttackAnimBeginClientEvent
AttackAnimEndClientEvent 0x3 0x20001003 AttackAnimEndClientEvent Minecraft:Engine:AttackAnimEndClientEvent
GetEntityByCoordClientEvent 0x4 0x20001004 GetEntityByCoordEvent Minecraft:Engine:GetEntityByCoordEvent
RemoveEntityClientEvent 0x5 0x20001005 RemoveEntityPacketEvent Minecraft:Engine:RemoveEntityClientEventMinecraft:Engine:RemoveEntityPacketEvent
WalkAnimBeginClientEvent 0x6 0x20001006 WalkAnimBeginClientEvent Minecraft:Engine:WalkAnimBeginClientEvent
WalkAnimEndClientEvent 0x7 0x20001007 WalkAnimEndClientEvent Minecraft:Engine:WalkAnimEndClientEvent
StartRidingClientEvent 0x8 0x20001008 StartRidingClientEvent Minecraft:Engine:StartRidingClientEvent
EntityStopRidingClientEvent 0xA 0x2000100A EntityStopRidingEvent Minecraft:Engine:EntityStopRidingEvent
GetEntityByCoordReleaseClientEvent 0xB 0x2000100B - Minecraft:Engine:GetEntityByCoordReleaseClientEvent
PlayerBuildRenderFinishClientEvent 0xC 0x2000100C - Minecraft:Engine:PlayerBuildRenderFinishClientEvent

物品客户端事件[编辑]

物品客户端事件皆使用ItemClientEvent对应的掩码。

物品客户端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
ActorAcquiredItemClientEvent 0x1 0x20002001 - Minecraft:Engine:ActorAcquiredItemClientEvent
ActorUseItemClientEvent 0x2 0x20002002 - Minecraft:Engine:ActorUseItemClientEvent
ItemTryUseClientEvent 0x3 0x20002003 - Minecraft:Engine:ClientItemTryUseEvent
ItemUseOnClientEvent 0x4 0x20002004 - Minecraft:Engine:ClientItemUseOnEvent
OnCarriedNewItemChangedClientEvent 0x5 0x20002005 OnCarriedNewItemChangedClientEvent Minecraft:Engine:OnCarriedNewItemChangedClientEvent
OnItemSlotButtonClickedClientEvent 0x6 0x20002006 OnItemSlotButtonClickedEvent Minecraft:Engine:OnItemSlotButtonClickedEvent
StartUsingItemClientEvent 0x7 0x20002007 - Minecraft:Engine:StartUsingItemClientEvent
StopUsingItemClientEvent 0x8 0x20002008 - Minecraft:Engine:StopUsingItemClientEvent
ItemUseClientEvent 0x9 0x20002009 - Minecraft:Engine:ClientItemUseEvent
ItemReleaseUsingClientEvent 0xA 0x2000200A ItemReleaseUsingClientEvent Minecraft:Engine:ItemReleaseUsingClientEvent
InventoryItemChangedClientEvent 0xC 0x2000200C - Minecraft:Engine:InventoryItemChangedClientEvent
AnvilCreateResultItemAfterClientEvent 0xD 0x2000200D AnvilCreateResultItemAfterClientEvent Minecraft:Engine:AnvilCreateResultItemAfterClientEvent
GrindStoneRemovedEnchantClientEvent 0xE 0x2000200E GrindStoneRemovedEnchantClientEvent Minecraft:Engine:GrindStoneRemovedEnchantClientEvent
PlayerTryDropItemClientEvent 0xF 0x2000200F - Minecraft:Engine:PlayerTryDropItemClientEvent

控制客户端事件[编辑]

控制客户端事件皆使用ControlClientEvent对应的掩码。

控制客户端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
JumpButtonPressDownClientEvent 0x1 0x20003001 ClientJumpButtonPressDownEvent Minecraft:Engine:ClientJumpButtonPressDownEvent
JumpButtonReleaseClientEvent 0x2 0x20003002 ClientJumpButtonReleaseEvent Minecraft:Engine:ClientJumpButtonReleaseEvent
OnClickInGameClientEvent 0x3 0x20003003 OnClickInGame Minecraft:Engine:OnClickInGame
OnClientPlayerStartMoveClientEvent 0x4 0x20003004 OnClientPlayerStartMove Minecraft:Engine:OnClientPlayerStartMove
OnClientPlayerStopMoveClientEvent 0x5 0x20003005 OnClientPlayerStopMove Minecraft:Engine:OnClientPlayerStopMove
OnKeyPressInGameClientEvent 0x6 0x20003006 OnKeyPressInGame Minecraft:Engine:OnKeyPressInGame
BuildOrAttackBeforeClientEvent 0x7 0x20003007 - Minecraft:Engine:TapBeforeClientEvent
DestroyOrInteractBeforeClientEvent 0x8 0x20003008 - Minecraft:Engine:HoldBeforeClientEvent
BuildActionButtonReleaseClientEvent 0x9 0x20003009 - Minecraft:Engine:TapOrHoldReleaseClientEvent
AttackActionButtonReleaseClientEvent 0xA 0x2000300A - Minecraft:Engine:LeftClickReleaseClientEvent
BuildOrInteractBeforeClientEvent 0xB 0x2000300B - Minecraft:Engine:RightClickBeforeClientEvent
DestoryOrAttackBeforeClientEvent 0xC 0x2000300C - Minecraft:Engine:LeftClickBeforeClientEvent
BuildActionButtonReleaseClientEvent_PCNormalMode 0xD 0x2000300D - Minecraft:Engine:RightClickReleaseClientEvent
OnBackButtonReleaseClientEvent 0xE 0x2000300E OnBackButtonReleaseClientEvent Minecraft:Engine:OnBackButtonReleaseClientEvent

活动对象客户端事件[编辑]

活动对象客户端事件皆使用ActorClientEvent对应的掩码。

活动对象客户端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
AddPlayerClientEvent 0x1 0x20004001 AddPlayerEvent Minecraft:Engine:AddPlayerEvent
ApproachEntityClientEvent 0x2 0x20004002 ApproachEntityClientEvent Minecraft:Engine:ApproachEntityClientEvent
ShapedRecipeTriggeredClientEvent 0x3 0x20004003 ClientShapedRecipeTriggeredEvent Minecraft:Engine:ClientShapedRecipeTriggeredEvent
DimensionChangeClientEvent 0x4 0x20004004 - Minecraft:Engine:DimensionChangeClientEvent
LeaveEntityClientEvent 0x5 0x20004005 LeaveEntityClientEvent Minecraft:Engine:LeaveEntityClientEvent
OnGroundClientEvent 0x6 0x20004006 OnGroundClientEvent Minecraft:Engine:OnGroundClientEvent
OnPlayerHitBlockClientEvent 0x7 0x20004007 - Minecraft:Engine:OnPlayerHitBlockClientEvent
OnPlayerHitMobClientEvent 0x8 0x20004008 - Minecraft:Engine:OnPlayerHitMobClientEvent
OnLocalPlayerStopLoadingClientEvent 0x9 0x20004009 - -
ChatClientEvent 0xA 0x2000400A - Minecraft:Engine:ClientChatEvent
AddPlayerAOIClientEvent 0xB 0x2000400B - Minecraft:Engine:AddPlayerAOIClientEvent
RemovePlayerAOIClientEvent 0xC 0x2000400C - Minecraft:Engine:RemovePlayerAOIClientEvent
OnLocalPlayerStopLoadingNewClientEvent 0xD 0x2000400D - Minecraft:Engine:OnLocalPlayerStopLoading
OnCommandOutputClientEvent 0xE 0x2000400E - Minecraft:Engine:OnCommandOutputClientEvent
PerspChangeClientEvent 0xF 0x2000400F - Minecraft:Engine:PerspChangeClientEvent
DimensionChangeFinishClientEvent 0x10 0x20004010 - Minecraft:Engine:DimensionChangeFinishClientEvent
HealthChangeClientEvent 0x11 0x20004011 - Minecraft:Engine:HealthChangeClientEvent
EntityModelChangedClientEvent 0x12 0x20004012 - Minecraft:Engine:EntityModelChangedClientEvent
AddPlayWithClientEvent 0x13 0x20004013 - Minecraft:Engine:AddPlayWithClientEvent
AddPlayWithListClientEvent 0x14 0x20004014 - Minecraft:Engine:AddPlayWithListClientEvent

方块客户端事件[编辑]

方块客户端事件皆使用BlockClientEvent对应的掩码。

方块客户端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
BlockUseClientEvent 0x1 0x20005001 - Minecraft:Engine:ClientBlockUseEvent
PlayerTryDestroyBlockClientEvent 0x2 0x20005002 - Minecraft:Engine:PlayerTryDestroyBlockClientEvent
ShearsDestoryBlockBeforeClientEvent 0x3 0x20005003 ShearsDestoryBlockBeforeClientEvent Minecraft:Engine:ShearsDestoryBlockBeforeClientEvent
FallingBlockCauseDamageBeforeClientEvent 0x4 0x20005004 FallingBlockCauseDamageBeforeClientEvent Minecraft:Engine:FallingBlockCauseDamageBeforeClientEvent
OnAfterFallOnBlockClientEvent 0x5 0x20005005 OnAfterFallOnBlockClientEvent Minecraft:Engine:OnAfterFallOnBlockClientEvent
OnStandOnBlockClientEvent 0x6 0x20005006 OnStandOnBlockClientEvent Minecraft:Engine:OnStandOnBlockClientEvent
OnEntityInsideClientEvent 0x7 0x20005007 OnEntityInsideBlockClientEvent Minecraft:Engine:OnEntityInsideBlockClientEvent
StepOnBlockClientEvent 0x8 0x20005008 StepOnBlockClientEvent Minecraft:Engine:StepOnBlockClientEvent
StepOffBlockClientEvent 0x9 0x20005009 StepOffBlockClientEvent Minecraft:Engine:StepOffBlockClientEvent
OnModBlockNeteaseEffectCreatedClientEvent 0xA 0x2000500A - Minecraft:Engine:OnModBlockNeteaseEffectCreatedClientEvent

世界客户端事件[编辑]

世界客户端事件皆使用WorldClientEvent对应的掩码。

世界客户端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
LoadClientAddonScriptsAfterClientEvent 0x1 0x20006001 LoadClientAddonScriptsAfter Minecraft:Engine:LoadClientAddonScriptsAfter
OnScriptTickClientEvent 0x2 0x20006002 OnScriptTickClient Minecraft:Engine:OnScriptTickClient
UnLoadClientAddonScriptsBeforeClientEvent 0x3 0x20006003 UnLoadClientAddonScriptsBefore Minecraft:Engine:UnLoadClientAddonScriptsBefore
ChunkLoadedClientEvent 0x4 0x20006004 - Minecraft:Engine:ChunkLoadedClientEvent
ChunkAcquireDiscardedClientEvent 0x5 0x20006005 - Minecraft:Engine:ChunkAcquireDiscardedClientEvent
GameTypeChangedClientEvent 0x6 0x20006006 GameTypeChangedClientEvent Minecraft:Engine:GameTypeChangedClientEvent
AppResumeFromBackgroundClientEvent 0x7 0x20006007 AppResumeFromBackgroundClientEvent Minecraft:Engine:AppResumeFromBackgroundClientEvent
OnTickUpdateClientEvent 0x8 0x20006008 - Minecraft:Engine:OnTickUpdateClientEvent
PlaySoundClientEvent 0x9 0x20006009 - Minecraft:Engine:PlaySoundClientEvent
PlayMusicClientEvent 0xA 0x2000600A - Minecraft:Engine:PlayMusicClientEvent
OnSimTickClientEvent 0xC 0x2000600C - Minecraft:Engine:OnSimTickClientEvent

UI客户端事件[编辑]

UI客户端事件皆使用UIClientEvent对应的掩码。

UI客户端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
ChestCloseClientEvent 0x1 0x20007001 ClientChestCloseEvent Minecraft:Engine:ClientChestCloseEvent
ChestOpenClientEvent 0x2 0x20007002 ClientChestOpenEvent Minecraft:Engine:ClientChestOpenEvent
PlayerInventoryCloseClientEvent 0x3 0x20007003 ClientPlayerInventoryCloseEvent Minecraft:Engine:ClientPlayerInventoryCloseEvent
PlayerInventoryOpenClientEvent 0x4 0x20007004 ClientPlayerInventoryOpenEvent Minecraft:Engine:ClientPlayerInventoryOpenEvent
PopScreenClientEvent 0x5 0x20007005 PopScreenEvent Minecraft:Engine:PopScreenEvent
PushScreenClientEvent 0x6 0x20007006 PushScreenEvent Minecraft:Engine:PushScreenEvent
UiInitFinishedClientEvent 0x7 0x20007007 UiInitFinished Minecraft:Engine:UiInitFinished
ClickChatSendClientEvent 0x8 0x20007008 ClickChatSendClientEvent Minecraft:Engine:ClickChatSendClientEvent
GridComponentSizeChangedClientEvent 0x9 0x20007009 GridComponentSizeChangedClientEvent Minecraft:Engine:GridComponentSizeChangedClientEvent
PlayerChatButtonClickClientEvent 0xA 0x2000700A PlayerChatButtonClickClientEvent Minecraft:Engine:PlayerChatButtonClickClientEvent
UIAnimFlipbookComponentFinishPlayClientEvent 0xB 0x2000700B UIAnimFlipbookComponentFinishPlayClientEvent Minecraft:Engine:UIAnimFlipbookComponentFinishPlayClientEvent

音乐客户端事件[编辑]

音乐客户端事件皆使用MusicClientEvent对应的掩码。

音乐客户端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
OnMusicStopClientEvent 1 20008001 OnMusicStopClientEvent Minecraft:Engine:OnMusicStopClientEvent

玩家客户端事件[编辑]

玩家客户端事件皆使用PlayerClientEvent对应的掩码。

玩家客户端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
StartDestroyBlockClientEvent 0x1 0x20009001 - Minecraft:Engine:StartDestroyBlockClientEvent
ExtinguishFireClientEvent 0x2 0x20009002 - Minecraft:Engine:ExtinguishFireClientEvent
StopDestroyBlockClientEvent 0x3 0x20009003 - Minecraft:Engine:StopDestroyBlockClientEvent

无文档服务端事件[编辑]

无文档服务端事件为尚未记录在中国版开发者官网的文档中的服务端事件,皆使用UndocumentedServerEvent对应的掩码。

无文档服务端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
ExplodeServerEvent 0x1 0x30000001 - Minecraft:Engine:ExplodeEvent
BehaviorNodeDestroyServerEvent 0x2 0x30000002 - Minecraft:Engine:BtNodeDestroyEvent
BehaviorNodeTickServerEvent 0x3 0x30000003 - Minecraft:Engine:BtNodeTickEvent
BehaviorNodeCreateServerEvent 0x4 0x30000004 - Minecraft:Engine:BtNodeCreateEvent
StorylineTickServerEvent 0x5 0x30000005 - Minecraft:Engine:StorylineTickEvent
StorylineCreateServerEvent 0x6 0x30000006 - Minecraft:Engine:StorylineCreateEvent
LevelCreateFinishedServerEvent 0x9 0x30000009 - Minecraft:Engine:ServerLevelCreateFinishedEvent
LevelCreateBeginServerEvent 0xA 0x3000000A - Minecraft:Engine:ServerLevelCreateBeginEvent
LevelBroadCastServerEvent 0xB 0x3000000B - Minecraft:Engine:LevelBroadcastEvent
LevelSaveDataServerEvent 0xC 0x3000000C - Minecraft:Engine:ServerLevelSaveDataEvent
OnUseNameTagServerEvent 0xD 0x3000000D - Minecraft:Engine:onUseNameTag
MoveToResultServerEvent 0xE 0x3000000E - Minecraft:Engine:MoveToResultEvent
MountTamingServerEvent 0xF 0x3000000F - Minecraft:Engine:MountTamingEvent
OnSignBlockTextServerEvent 0x10 0x30000010 - Minecraft:Engine:onSignBlockText
DeliverLobbyGoodServerEvent 0x11 0x30000011 - Minecraft:Engine:deliverLobbyGood
OnCheckSkinDataServerEvent 0x12 0x30000012 - Minecraft:Engine:OnCheckSkinDataEvent
UnLoadServerAddonScriptsBeforeServerEvent 0x1D 0x3000001D - Minecraft:Engine:UnLoadServerAddonScriptsBefore
UnLoadServerAddonScriptsServerEvent 0x1E 0x3000001E - Minecraft:Engine:UnLoadServerAddonScripts
UnLoadServerAddonScriptsAfterServerEvent 0x1F 0x3000001F - Minecraft:Engine:UnLoadServerAddonScriptsAfter
CommandFuncsServerEvent 0x20 0x30000020 - Minecraft:Engine:command_funcs
ReceivePyRpcServerEvent 0x21 0x30000021 - Minecraft:Engine:ReceivePyRpcServerEvent
LoadServerAddonScriptsBeforeServerEvent 0x22 0x30000022 - Minecraft:Engine:LoadServerAddonScriptsBefore
LevelLoadScriptDataServerEvent 0x23 0x30000023 - Minecraft:Engine:LevelLoadScriptDataEvent
LoadServerAddonScriptsServerEvent 0x24 0x30000024 - Minecraft:Engine:LoadServerAddonScripts
SyncModDataServerEvent 0x26 0x30000026 - Minecraft:Engine:SyncModDataEvent
PlayerTouchModItemServerEvent 0x27 0x30000027 - Minecraft:Engine:PlayerTouchModItemEvent
OnPlayerHitBlockIdvServerEvent 0x28 0x30000028 - Minecraft:Engine:OnPlayerHitBlock
OnPlayerHitBlockServerEvent 0x29 0x30000029 - Minecraft:Engine:OnPlayerHitBlockServerEvent
EntityBeKnockServerEvent 0x2B 0x3000002B - Minecraft:Engine:EntityBeKnockEvent
OnSurroundServerEvent 0x2C 0x3000002C - Minecraft:Engine:OnSurroundEvent
OnPlayerHitMobServerEvent 0x2D 0x3000002D - Minecraft:Engine:OnPlayerHitMobServerEvent
OnHitMobsServerEvent 0x2E 0x3000002E - Minecraft:Engine:OnHitMobsEvent
PlayerShootArrowServerEvent 0x2F 0x3000002F - Minecraft:Engine:PlayerShootArrowEvent
EntityCreateFromDbServerEvent 0x30 0x30000030 - Minecraft:Engine:EntityCreateFromDbEvent
OnEntityAreaServerEvent 0x31 0x30000031 - Minecraft:Engine:OnEntityAreaEvent
StartLeaveGameServerEvent 0x32 0x30000032 - Minecraft:Engine:StartLeaveGameServer
PlayerDestroyModBlockServerEvent 0x34 0x30000034 - Minecraft:Engine:PlayerDestroyModBlockEvent
ModItemUseServerEvent 0x35 0x30000035 - Minecraft:Engine:ModItemUseServerEvent
OnModNewItemUseServerEvent 0x36 0x30000036 - Minecraft:Engine:OnModNewItemUseServerEvent
OnModItemUseServerEvent 0x37 0x30000037 OnModItemUseServerEvent Minecraft:Engine:OnModItemUseServerEvent
OnModNewItemUseOnServerEvent 0x38 0x30000038 - Minecraft:Engine:OnModNewItemUseOnServerEvent
OnModItemUseOnServerEvent 0x39 0x30000039 OnModItemUseOnServerEvent Minecraft:Engine:OnModItemUseOnServerEvent
ItemUseServerEvent 0x3A 0x3000003A ServerItemUseEvent Minecraft:Engine:ServerItemUseEvent
DestroyModBlockEntityServerEvent 0x3C 0x3000003C - Minecraft:Engine:DestroyModBlockEntityServerEvent
SunriseSunsetServerEvent 0x3D 0x3000003D - Minecraft:Engine:SunriseSunsetServerEvent
SignInputServerEvent 0x3E 0x3000003E - Minecraft:Engine:SignInputServerEvent
NewOnEntityAreaServerEvent 0x3F 0x3000003F - Minecraft:Engine:NewOnEntityAreaEvent
PlayerActuallyBeHurtServerEvent 0x40 0x30000040 - Minecraft:Engine:PlayerActuallyBeHurtServerEvent
PlayerLoginAuthenticatedServerEvent 0x41 0x30000041 - Minecraft:Engine:PlayerLoginAuthenticatedServerEvent
SettingsCommandServerEvent 0x42 0x30000042 - Minecraft:Engine:SettingsCommandServerEvent

无文档客户端事件[编辑]

无文档客户端事件为尚未记录在中国版开发者官网的文档中的客户端事件,皆使用UndocumentedClientEvent对应的掩码。

无文档客户端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
LevelCreateFinishedClientEvent 0x1 0x40000001 - Minecraft:Engine:ClientLevelCreateFinishedEvent
CriticalHitClientEvent 0x2 0x40000002 - Minecraft:Engine:ClientCriticalHitEvent
ReportFriendClientEvent 0x3 0x40000003 - Minecraft:Engine:ClientReportFriendEvent
ReportKickClientEvent 0x4 0x40000004 - Minecraft:Engine:ClientReportKickEvent
ReportRecordClientEvent 0x5 0x40000005 - Minecraft:Engine:ClientReportRecordEvent
ReportEvidenceClientEvent 0x6 0x40000006 - Minecraft:Engine:ClientReportEvidenceEvent
ReportShieldClientEvent 0x7 0x40000007 - Minecraft:Engine:ClientReportShieldEvent
LevelCreateBeginClientEvent 0x8 0x40000008 - Minecraft:Engine:ClientLevelCreateBeginEvent
VoiceTransButtonPressClientEvent 0x9 0x40000009 - Minecraft:Engine:OnVoiceTransButtonPress
NotifyReportScreenRequestUidClientEvent 0xA 0x4000000A - Minecraft:Engine:notify_report_screen_request_uid
RNGLScreenInitClientEvent 0xB 0x4000000B - Minecraft:Engine:RNGLScreenInit
VoiceRecordFinishClientEvent 0xC 0x4000000C - Minecraft:Engine:VoiceRecordFinish
VoiceUploadFinishClientEvent 0xD 0x4000000D - Minecraft:Engine:VoiceUploadFinish
VoiceTranslatedFinishClientEvent 0xE 0x4000000E - Minecraft:Engine:VoiceTranslatedFinish
VoiceRequestPermissionClientEvent 0xF 0x4000000F - Minecraft:Engine:VoiceRequestPermission
InteractButtonPressClientEvent 0x10 0x40000010 - Minecraft:Engine:InteractButtonPressEvent
PushScreenBeforeClientEvent 0x11 0x40000011 - Minecraft:Engine:PushScreenBeforeEvent
UnLoadClientAddonScriptsClientEvent 0x12 0x40000012 - Minecraft:Engine:UnLoadClientAddonScripts
AddModelEntityClientEvent 0x13 0x40000013 - Minecraft:Engine:AddModelEntityEvent
CarriedItemChangedClientEvent 0x15 0x40000015 - Minecraft:Engine:OnCarriedItemChanged
UpdatePcTanLobbyClientEvent 0x16 0x40000016 - Minecraft:Engine:update_pc_tan_lobby
ModItemUseClientEvent 0x17 0x40000017 - Minecraft:Engine:ModItemUseClientEvent
ModNewItemUseOnClientEvent 0x18 0x40000018 - Minecraft:Engine:OnModNewItemUseOnClientEvent
ModItemUseOnClientEvent 0x19 0x40000019 OnModItemUseOnClientEvent Minecraft:Engine:OnModItemUseOnClientEvent
HorseStartStandClientEvent 0x1A 0x4000001A - Minecraft:Engine:HorseStartStandEvent
HorseStopStandClientEvent 0x1B 0x4000001B - Minecraft:Engine:HorseStopStandEvent
EntityStartRidingClientEvent 0x1C 0x4000001C - Minecraft:Engine:EntityStartRidingEvent
JumpAnimBeginClientEvent 0x1E 0x4000001E - Minecraft:Engine:JumpAnimBeginClientEvent
UnLoadClientAddonScriptsAfterClientEvent 0x1F 0x4000001F - Minecraft:Engine:UnLoadClientAddonScriptsAfter
ReportReportClientEvent 0x20 0x40000020 - Minecraft:Engine:ClientReportReportEvent
MolangScriptPyClientEvent 0x21 0x40000021 - Minecraft:Engine:MolangScriptPyEvent
CommandFuncsClientEvent 0x22 0x40000022 - Minecraft:Engine:command_funcs
ReceivePyRpcClientEvent 0x23 0x40000023 - Minecraft:Engine:ReceivePyRpcClientEvent
LoadClientAddonScriptsBeforeClientEvent 0x24 0x40000024 - Minecraft:Engine:LoadClientAddonScriptsBefore
LoadClientAddonScriptsClientEvent 0x25 0x40000025 - Minecraft:Engine:LoadClientAddonScripts
NotifyPythonLogClientEvent 0x26 0x40000026 - Minecraft:Engine:notify_python_log
OnModNewItemUseClientEvent 0x27 0x40000027 - Minecraft:Engine:OnModNewItemUseClientEvent
OnModItemUseClientEvent 0x28 0x40000028 OnModItemUseClientEvent Minecraft:Engine:OnModItemUseClientEvent
OnRenderCarriedItemChangedClientEvent 0x29 0x40000029 - Minecraft:Engine:OnRenderCarriedItemChanged
OnLoginWebServerClientEvent 0x2A 0x4000002A - Minecraft:Engine:OnLoginWebServer
MobileAuthenticateRequestCodeEvent 0x2B 0x4000002B - Minecraft:Engine:OnMobileAuthenticateRequestCode
MobileAuthenticateBindingEvent 0x2C 0x4000002C - Minecraft:Engine:OnMobileAuthenticateBinding
UiAddMessageClientEvent 0x2D 0x4000002D - Minecraft:Engine:UiAddMessageClientEvent
NotifyReportCheatClientEvent 0x2E 0x4000002E - Minecraft:Engine:NotifyReportCheatClientEvent
PressSkinTransformBtnClientEvent 0x30 0x40000030 - Minecraft:Engine:PressSkinTransformBtnClientEvent
PressHorseTransformBtnClientEvent 0x31 0x40000031 - Minecraft:Engine:PressHorseTransformBtnClientEvent
PressAutoTransformBtnClientEvent 0x32 0x40000032 - Minecraft:Engine:PressAutoTransformBtnClientEvent
PopScreenAfterClientEvent 0x34 0x40000034 - Minecraft:Engine:PopScreenAfterClientEvent
SensitiveSaLogClientEvent 0x35 0x40000035 - Minecraft:Engine:SensitiveSaLogClientEvent
CommandBlockInputClientEvent 0x36 0x40000036 - Minecraft:Engine:CommandBlockInputClientEvent
AnvilInputClientEvent 0x37 0x40000037 - Minecraft:Engine:AnvilInputClientEvent
BookInputClientEvent 0x38 0x40000038 - Minecraft:Engine:BookInputClientEvent
StructureInputClientEvent 0x39 0x40000039 - Minecraft:Engine:StructureInputClientEvent
TitleCommandInputClientEvent 0x3A 0x4000003A - Minecraft:Engine:TitleCommandInputClientEvent
BookSignInputClientEvent 0x3B 0x4000003B - Minecraft:Engine:BookSignInputClientEvent
HandlePushScreenClientEvent 0x3C 0x4000003C - Minecraft:Engine:HandlePushScreenClientEvent
PressPetBtnClientEvent 0x3D 0x4000003D - Minecraft:Engine:PressPetBtnClientEvent
PressWeaponTransformBtnClientEvent 0x3E 0x4000003E - Minecraft:Engine:PressWeaponTransformBtnClientEvent
MinimapSizeChangedClientEvent 0x3F 0x4000003F - Minecraft:Engine:MinimapSizeChangedClientEvent
PlayerKillMobClientEvent 0x40 0x40000040 - Minecraft:Engine:PlayerKillMobClientEvent
OffhandItemChangedClientEvent 0x41 0x40000041 - Minecraft:Engine:OffhandItemChangedClientEvent
LocalPlayerJumpClientEvent 0x42 0x40000042 - Minecraft:Engine:LocalPlayerJumpClientEvent
LocalPlayerAddHungerClientEvent 0x43 0x40000043 - Minecraft:Engine:LocalPlayerAddHungerClientEvent
LocalPlayerRemoveHungerClientEvent 0x44 0x40000044 - Minecraft:Engine:LocalPlayerRemoveHungerClientEvent
PlayerSwingAnimBeginClientEvent 0x45 0x40000045 - Minecraft:Engine:PlayerSwingAnimBeginClientEvent
Win32SkinMd5InvalidClientEvent 0x46 0x40000046 - Minecraft:Engine:Win32SkinMd5InvalidClientEvent
ReceiveTransferPacketClientEvent 0x47 0x40000047 - Minecraft:Engine:ReceiveTransferPacketClientEvent
AuthCertRequestClientEvent 0x48 0x40000048 - Minecraft:Engine:AuthCertRequestClientEvent
AuthCertResponseClientEvent 0x49 0x40000049 - Minecraft:Engine:AuthCertResponseClientEvent
MinecraftGameInitFinishClientEvent 0x4A 0x4000004A - Minecraft:Engine:MinecraftGameInitFinishClientEvent
StartScreenPushClientEvent 0x4B 0x4000004B - Minecraft:Engine:StartScreenPushClientEvent
UnzipPatchPackClientEvent 0x4C 0x4000004C - Minecraft:Engine:UnzipPatchPackClientEvent
NotifyPlayerHeadImageClientEvent 0x4D 0x4000004D - Minecraft:Engine:notify_player_head_image_event
ProgressScreenHandlerClientEvent 0x4E 0x4000004E - Minecraft:Engine:ProgressScreenHandlerClientEvent
UIDefReloadSceneStackBefore 0x4F 0x4000004F - Minecraft:Engine:UIDefReloadSceneStackBefore
UIDefReloadSceneStackAfter 0x50 0x40000050 - Minecraft:Engine:UIDefReloadSceneStackAfter

预设事件[编辑]

预设事件皆使用PresetEvent对应的掩码。

预设客户端事件[编辑]

预设客户端事件皆使用PresetClientEvent对应的掩码。暂无预设客户端事件。

预设服务端事件[编辑]

预设服务端事件皆使用PresetServerEvent对应的掩码。暂无预设服务端事件。

编辑器事件[编辑]

编辑器事件皆使用EditorEvent对应的掩码。

编辑器客户端事件[编辑]

编辑器客户端事件皆使用EditorClientEvent对应的掩码。

编辑器客户端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
EditorUiInitFinishedClientEvent 0x1 0x51000001 - Minecraft:Engine:EditorUiInitFinishedClientEvent
EditorInformMaterialClientEvent 0x2 0x51000002 - Minecraft:Engine:EditorInformMaterialClientEvent
EditorUseMaterialClientEvent 0x3 0x51000003 - Minecraft:Engine:EditorUseMaterialClientEvent
EditorSetCoordClientEvent 0x4 0x51000004 - Minecraft:Engine:EditorSetCoordClientEvent
EditorInformSelectionInfoClientEvent 0x5 0x51000005 - Minecraft:Engine:EditorInformSelectionInfoClientEvent
EditorInformModelPicPathClientEvent 0x6 0x51000006 - Minecraft:Engine:EditorInformModelPicPathClientEvent
EditorInformShortCutClientEvent 0x7 0x51000007 - Minecraft:Engine:EditorInformShortCutClientEvent
EditorInformSpawnPosClientEvent 0x8 0x51000008 - Minecraft:Engine:EditorInformSpawnPosClientEvent
EditorInformUndoClientEvent 0x9 0x51000009 - Minecraft:Engine:EditorInformUndoClientEvent
EditorInformRedoClientEvent 0xA 0x5100000A - Minecraft:Engine:EditorInformRedoClientEvent
EditorInformInGameClientEvent 0xB 0x5100000B - Minecraft:Engine:EditorInformInGameClientEvent
EditorInformDropperClientEvent 0xC 0x5100000C - Minecraft:Engine:EditorInformDropperClientEvent
EditorInformMouseInGameClientEvent 0xD 0x5100000D - Minecraft:Engine:EditorInformMouseInGameClientEvent
EditorInformMouseRightClickInGameClientEvent 0xE 0x5100000E - Minecraft:Engine:EditorInformMouseRightClickInGameClientEvent
EditorRemoveEntityClientEvent 0xF 0x5100000F - Minecraft:Engine:EditorRemoveEntityClientEvent
EditorAddCustomClientEvent 0x10 0x51000010 - Minecraft:Engine:EditorAddCustomClientEvent
EditorKeyPressClientEvent 0x11 0x51000011 - Minecraft:Engine:EditorKeyPressClientEvent
EditorInformChunkColorsClientEvent 0x12 0x51000012 - Minecraft:Engine:EditorInformChunkColorsClientEvent
EditorInformSelectedUiControlClientEvent 0x13 0x51000013 - Minecraft:Engine:EditorInformSelectedUiControlClientEvent
EditorInformUiShortCutClientEvent 0x14 0x51000014 - Minecraft:Engine:EditorInformUiShortCutClientEvent
EditorInformSysInfosClientEvent 0x15 0x51000015 - Minecraft:Engine:EditorInformSysInfosClientEvent
EditorRemoveAddonClientEvent 0x16 0x51000016 - Minecraft:Engine:EditorRemoveAddonClientEvent
EditorLoadAddonClientEvent 0x17 0x51000017 - Minecraft:Engine:EditorLoadAddonClientEvent
EditorInformUiLoadFileFinishClientEvent 0x18 0x51000018 - Minecraft:Engine:EditorInformUiLoadFileFinishClientEvent
EditorInformBindAxisClientEvent 0x19 0x51000019 - Minecraft:Engine:EditorInformBindAxisClientEvent
EditorInformUiLoadScreenFinishClientEvent 0x1A 0x5100001A - Minecraft:Engine:EditorInformUiLoadScreenFinishClientEvent
EditorInformRNGLScreenMouseClientEvent 0x1B 0x5100001B - Minecraft:Engine:EditorInformRNGLScreenMouseClientEvent
EditorInformPlantFailEvent 0x1C 0x5100001C - Minecraft:Engine:EditorInformPlantFailEvent
EditorFocusChangeClientEvent 0x1D 0x5100001D - Minecraft:Engine:EditorFocusChangeClientEvent
EditorEditedBoxNumClientEvent 0x1E 0x5100001E - Minecraft:Engine:EditorEditedBoxNumClientEvent
EditorActionTimeCostClientEvent 0x1F 0x5100001F - Minecraft:Engine:EditorActionTimeCostClientEvent
EditorSaveStructEvent 0x20 0x51000020 - Minecraft:Engine:EditorSaveStructEvent
EditorSaveBlockTexturesEvent 0x21 0x51000021 - Minecraft:Engine:EditorSaveBlockTexturesEvent
EditorPresetInstanceClientEvent 0x64 0x51000064 - Minecraft:Engine:EditorPresetInstanceClientEvent
EditorPresetInformUndoClientEvent 0x65 0x51000065 - Minecraft:Engine:EditorPresetInformUndoClientEvent
EditorPresetInformRedoClientEvent 0x66 0x51000066 - Minecraft:Engine:EditorPresetInformRedoClientEvent
EditorPresetUpdateAreaClientEvent 0x67 0x51000067 - Minecraft:Engine:EditorPresetUpdateAreaClientEvent
EditorPresetUpdateCoordinateClientEvent 0x68 0x51000068 - Minecraft:Engine:EditorPresetUpdateCoordinateClientEvent

编辑器服务端事件[编辑]

编辑器服务端事件皆使用EditorServerEvent对应的掩码。

编辑器服务端事件枚举
原生枚举键 短枚举值 完整枚举值 事件模块枚举键 赋命名空间标识符 描述
EditorInformEntityAttrServerEvent 0x1 0x52000001 - Minecraft:Engine:EditorInformEntityAttrServerEvent
EditorCreateEntityServerEvent 0x2 0x52000002 - Minecraft:Engine:EditorCreateEntityServerEvent
EditorSetEditEntityServerEvent 0x3 0x52000003 - Minecraft:Engine:EditorSetEditEntityServerEvent
EditorReloadAddonServerServerEvent 0x4 0x52000004 - Minecraft:Engine:EditorReloadAddonServerServerEvent
EditorSaveGameDataServerEvent 0x7 0x52000007 - Minecraft:Engine:EditorSaveGameDataServerEvent
EditorGetSpawnPosServerEvent 0x8 0x52000008 - Minecraft:Engine:EditorGetSpawnPosServerEvent
EditorAvailableEntitiesServerEvent 0x9 0x52000009 - Minecraft:Engine:EditorAvailableEntitiesServerEvent
EditorStopStorylineServerEvent 0xA 0x5200000A - Minecraft:Engine:EditorStopStorylineServerEvent

Python事件[编辑]

Python事件没有原生枚举,为模组SDK在Python层的API中广播的事件。Python事件依旧以Minecraft:Engine系统的名义进行广播。

Python服务端事件[编辑]

Python服务端事件枚举
引用枚举键 事件模块枚举键 赋命名空间标识符 描述
ServerArenaAllPlayerReadyEvent - Minecraft:Engine:ServerArenaGameAllPlayerReadyEvent
ServerArenaPlayerReconnectSuccessEvent - Minecraft:Engine:ServerArenaGamePlayerReconnectSuccessEvent
ServerArenaPlayerReconnectFailedEvent - Minecraft:Engine:ServerArenaGamePlayerReconnectFailedEvent
ServerArenaSetGameResultFailed - Minecraft:Engine:ServerSetGameResultFailed
ClientLoadAddonsFinishServerEvent - Minecraft:Engine:ClientLoadAddonsFinishServerEvent
PlayerInventoryOpenScriptServerEvent PlayerInventoryOpenScriptServerEvent Minecraft:Engine:PlayerInventoryOpenScriptServerEvent

Python客户端事件[编辑]

Python客户端事件枚举
引用枚举键 事件模块枚举键 赋命名空间标识符 描述
ClientArenaAllPlayerReadyEvent - Minecraft:Engine:ClientArenaGameAllPlayerReadyEvent
ClientArenaGameFinishEvent - Minecraft:Engine:ClientArenaGameFinishEvent