zh_cn:tutorial:callbacks
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
zh_cn:tutorial:callbacks [2021/09/17 04:40] – solidblock | zh_cn:tutorial:callbacks [2021/10/23 02:04] – [实例] solidblock | ||
---|---|---|---|
Line 27: | Line 27: | ||
{ | { | ||
class_2680 state = world.method_8320(pos); | class_2680 state = world.method_8320(pos); | ||
- | /* 手动的旁观检查是必要的,因为 AttackBlockCallbacks 会在旁观检查之前销毁 | + | /* 手动的旁观者检查是必要的,因为 AttackBlockCallbacks 会在旁观者检查之前应用 |
if (state.method_29291() && !player.method_7325() && | if (state.method_29291() && !player.method_7325() && | ||
player.method_6047().method_7960()) | player.method_6047().method_7960()) |
zh_cn/tutorial/callbacks.txt · Last modified: 2023/05/04 11:01 by solidblock