// Used by GuiCrafter to update it's internal state.
// Should only be accessed client-side for rendering purposes.
public boolean recentlyUpdated = false;
public TileCrafter() {
this.results = new Inventory( getRecipeCount(), "Results" );
this.circuits = new Inventory( 4, "Encoded Recipes" ) {
@Override
public void onInventoryChanged() {
TileCrafter.this.updateRecipes();
stateUpdatePending = true;
recentlyUpdated = true;
}
};
this.craftGrid = new Inventory( 9, "CraftingGrid" ) {
@Override
public void onInventoryChanged() {
TileCrafter.this.updateRecipes();
stateUpdatePending = true;
recentlyUpdated = true;
}
};
this.resources = new Inventory( 3 * 9, "Resources" ) {
@Override
public void onInventoryChanged() {
TileCrafter.this.onInventoryChanged();
}
};