You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tags/guide/timer.ytag
+17-24Lines changed: 17 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -8,35 +8,28 @@ DO NOT use threads or `java.util.Timer`. (This can cause a crash!) Instead:
8
8
9
9
- If you are making a block do something in the future: `world.scheduleBlockTick` + override `scheduledTick` in your `Block`.
10
10
- If you are making a custom tickable stuff (usually block entity/entity) do something in the future/periodically: see below, but instead of Mixin just implement yourself
11
-
- If you are making a vanilla tickable thing (world, server, etc) do something in the future/periodically: use the following mixin.
11
+
- If you are making a vanilla tickable thing (world, server, etc) do something in the future/periodically: use the relevant tick event similar to the following.
0 commit comments