Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sticky Card #371

Merged
merged 5 commits into from
Jan 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/main/java/appeng/me/storage/DriveWatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@ public class DriveWatcher<T extends IAEStack<T>> extends MEInventoryHandler<T> {
private final ICellHandler handler;
private final TileDrive drive;
private final IActionSource source;
private final ICellInventoryHandler<T> cellInventory;

public DriveWatcher(final ICellInventoryHandler<T> i, final ItemStack is, final ICellHandler han, final TileDrive drive) {
super(i, i.getChannel());
this.is = is;
this.handler = han;
this.drive = drive;
this.source = new MachineSource(drive);
this.cellInventory = i;
}

public int getStatus() {
Expand Down Expand Up @@ -100,4 +102,9 @@ public T extractItems(final T request, final Actionable type, final IActionSourc

return extractable;
}

@Override
public boolean isSticky() {
return this.cellInventory.isSticky();
}
}