Rename API method.
This commit is contained in:
@@ -5,8 +5,8 @@ package com.raoulvdberge.refinedstorage.api.network.grid;
|
||||
*/
|
||||
public interface IGridCraftingListener {
|
||||
/**
|
||||
* Called when the crafting output changes.
|
||||
* Called when the crafting matrix was changed.
|
||||
* Usually you'd send slot updates for the crafting slots (and output slot) here, so that all clients get an actual view.
|
||||
*/
|
||||
void onCraftingOutputChanged();
|
||||
void onCraftingMatrixChanged();
|
||||
}
|
||||
|
@@ -330,7 +330,7 @@ public class NetworkNodeGrid extends NetworkNode implements IGridNetworkAware, I
|
||||
result.setInventorySlotContents(0, currentRecipe.getCraftingResult(matrix));
|
||||
}
|
||||
|
||||
craftingListeners.forEach(IGridCraftingListener::onCraftingOutputChanged);
|
||||
craftingListeners.forEach(IGridCraftingListener::onCraftingMatrixChanged);
|
||||
|
||||
markDirty();
|
||||
}
|
||||
|
@@ -77,7 +77,7 @@ public class ContainerGrid extends ContainerBase implements IGridCraftingListene
|
||||
if (slot == craftingResultSlot) {
|
||||
grid.onCraftedShift(getPlayer());
|
||||
|
||||
onCraftingOutputChanged();
|
||||
onCraftingMatrixChanged();
|
||||
|
||||
detectAndSendChanges();
|
||||
} else {
|
||||
@@ -204,7 +204,7 @@ public class ContainerGrid extends ContainerBase implements IGridCraftingListene
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCraftingOutputChanged() {
|
||||
public void onCraftingMatrixChanged() {
|
||||
for (int i = 0; i < inventorySlots.size(); ++i) {
|
||||
Slot slot = inventorySlots.get(i);
|
||||
|
||||
|
@@ -27,7 +27,7 @@ public class SlotGridCraftingResult extends SlotCrafting {
|
||||
if (!player.getEntityWorld().isRemote) {
|
||||
grid.onCrafted(player);
|
||||
|
||||
container.onCraftingOutputChanged();
|
||||
container.onCraftingMatrixChanged();
|
||||
}
|
||||
|
||||
return ItemStack.EMPTY;
|
||||
|
Reference in New Issue
Block a user