use of com.codetaylor.mc.athenaeum.inventory.ObservableStackHandler in project artisan-worktables by codetaylor.
the class TileEntitySecondaryInputBase method initialize.
@Override
protected void initialize(EnumType type) {
super.initialize(type);
this.secondaryIngredientHandler = new ObservableStackHandler(this.getSecondaryInputSlotCount());
this.secondaryIngredientHandler.addObserver((stackHandler, slotIndex) -> {
this.markDirty();
this.requiresRecipeUpdate = true;
});
this.wrapper = new MutuallyExclusiveStackHandlerWrapper(this.secondaryIngredientHandler);
}
Aggregations