aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/ob/CallbackObject.java
blob: 89c2952a5451e112e671edf86cbee4c6346dfaaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package gtPlusPlus.xmod.ob;

import net.minecraft.inventory.IInventory;
import openblocks.common.tileentity.TileEntitySprinkler;
import openmods.api.IInventoryCallback;

public class CallbackObject implements IInventoryCallback {
	
	private TileEntitySprinkler mTile;
	
	CallbackObject(TileEntitySprinkler aTile){
		mTile = aTile;		
	}

	@Override
	public void onInventoryChanged(IInventory inventory, int slotNumber) {
		mTile.updateEntity();
	}

}