This repository has been archived by the owner on Feb 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Listener
twoone3 edited this page Feb 9, 2023
·
31 revisions
'此页内容待完善'
事件监听器
- 使用setListener来设置监听器
- 回调函数有且只有一个参数,类型为字典
- 拦截可否:否
- 回传数据:
- Player
- 拦截可否:是
- 回传数据:
- IP
- Player
- XUID
- 拦截可否:否
- 回传数据:
- Player
- 拦截可否:否
- 回传数据:
- Player
- 拦截可否:否
- 回传数据:
- Cause
- Entity
- Player
- 拦截可否:是
- 回传数据:
- Player
- Command
- isSuccess
- FullCode
- 拦截可否:是
- 回传数据:
- Player
- Message
- 拦截可否:否
- 回传数据:
- Player
- ToDimensionId
- 拦截可否:否
- 回传数据:
- Player
- 拦截可否:否
- 回传数据:
- Player
- IsSneaking
- 拦截可否:是
- 回传数据:
- Player
- Target
- 拦截可否:是
- 回传数据:
- BlockInstance
- ItemStack
- Player
- 拦截可否:是
- 回传数据:
- Player
- ItemStack
- 拦截可否:是
- 回传数据:
- Player
- ItemStack
- BlockInstance
- Face
- 拦截可否:是
- 回传数据:
- Player
- ItemEntity
- ItemStack
- 拦截可否:是
- 回传数据:
- Player
- ItemStack
- 拦截可否:是
- 回传数据:
- Player
- FoodItem
- 拦截可否:否
- 回传数据:
- Player
- 拦截可否:否
- 回传数据:
- Player
- Effect
- EventType
- 拦截可否:否
- 回传数据:
- Player
- BlockInstance
- 拦截可否:否
- 回传数据:
- Player
- BlockInstance
- 拦截可否:否
- 回传数据:
- Player
- BlockInstance
- 拦截可否:否
- 回传数据:
- BlockInstance
- Player
- Container
- 拦截可否:否
- 回传数据:
- BlockInstance
- Player
- Container
- 拦截可否:否
- 回传数据:
- NewItemStack
- Player
- PreviousItemStack
- Slot
- 拦截可否:否
- 回传数据:
- Player
- Pos
- 拦截可否:否
- 回传数据:
- Player
- IsSprinting
- 拦截可否:否
- 回传数据:
- Player
- Slot
- ArmorItem
- 拦截可否:否
- 回传数据:
- Player
- BlockInstance
- 拦截可否:否
- 回传数据:
- Player
- 拦截可否:否
- 回传数据:
- Mob
- Cause
- Entity
- 拦截可否:否
- 回传数据:
- Mob
- Damage
- Cause
- Entity
- 拦截可否:否
- 回传数据:
- Actor
- Pos
- Dim
- Radius
- MaxResistance
- Breaking
- Fire
- 拦截可否:否
- 回传数据:
- Target
- Source
- 拦截可否:否
- 回传数据:
- WitherBoss
- Min
- Max
- 拦截可否:否
- 回传数据:
- Rider
- Vehicle
- 拦截可否:否
- 回传数据:
- Actor
- BlockInstance
- 拦截可否:否
- 回传数据:
- Shooter
- Type
- 拦截可否:否
- 回传数据:
- Shooter
- Projectile
- 拦截可否:否
- 回传数据:
- Npc
- Player
- Command
- 拦截可否:否
- 回传数据:
- ArmorStand
- Player
- Slot
- 拦截可否:否
- 回传数据:
- EntityId
- AfterEntity
- 拦截可否:否
- 回传数据:
- Player
- BlockInstance
- 拦截可否:否
- 回传数据:
- PreviousBlockInstance
- NewBlockInstance
- 拦截可否:否
- 回传数据:
- BlockInstance
- Radius
- MaxResistance
- Breaking
- Fire
- 拦截可否:否
- 回传数据:
- BlockInstance
- ExplodeSource
- 拦截可否:否
- 回传数据:
- Target
- DimentionId
- 拦截可否:否
- 回传数据:
- BlockInstance
- Command
- IsMineCart
- MineCart
- 拦截可否:否
- 回传数据:
- Player
- Actor
- Container
- Slot
- PreviousItemStack
- NewItemStack
- 拦截可否:否
- 回传数据:
- BlockInstance
- Source
- 拦截可否:否
- 回传数据:
- BlockInstance
- RedStonePower
- IsActivated
- 拦截可否:否
- 回传数据:
- IsMineCart
- HopperBlock
- MineCartPos
- DimentionId
- 拦截可否:否
- 回传数据:
- Pos
- DimentionId
- 拦截可否:否
- 回传数据:
- PistonBlockInstance
- TargetBlockInstance
- 拦截可否:否
- 回传数据:
- PistonBlockInstance
- TargetBlockInstance
- 拦截可否:否
- 回传数据:
- BlockInstance
- Actor
- 拦截可否:否
- 回传数据:
- Player
- BlockInstance
- 拦截可否:否
- 回传数据:
- BlockInstance
- Target
- DimentionId
- 拦截可否:否
- 回传数据:
- Player
- Score
- Objective
- 拦截可否:否
- 回传数据:
- 无
- 拦截可否:是
- 回传数据:
- Command
- 拦截可否:是
- 回传数据:
- Output
- 拦截可否:否
- 回传数据:
- TypeName
- Pos
- DimentionId