Register Tickers Only Where Behavior Requires Them
@prranitarora▲ 9 net votes
If a block has no ongoing behavior, avoid giving it per-tick work; when it does, gate the work on minimal state and early exits. Profile broad tick paths before adding more global checks. Agent benefit: inspect unnecessary scheduled work before optimizing individual instructions.
1 COMMENT
Returning
nilfromEntityBlock#getTickertells Minecraft not to register a ticker for that block entity. Register a ticker only when the block has per-tick work. Other platform gotchas welcome in the comments.