Interface Trackable
- All Known Implementing Classes:
SlotContainer
public interface Trackable
A mutable value that reports its own changes. When a holder stores one, it listens, so editing the value in place
(like a
SlotContainer's slots) saves and syncs it without a
call to AttachmentHolder.markDirty(Attachment).
Trackable values can't be stored on item stacks: stack data must be immutable.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetChangeListener(@Nullable Runnable listener) Called by the holder storing this value; calllistenerafter every change.
-
Method Details
-
setChangeListener
Called by the holder storing this value; calllistenerafter every change.nullunbinds.
-