Thanks for the response, and I tried what you said to the best of my knowledge but I am a little new to modding, coding I'm okay with but still learning some of the ins and outs with forge.
I tried it like this:
public boolean shouldRefresh(int oldID, int newID, int oldMeta, int newMeta, World world, int x, int y, int z) {
Block check = world.getBlock(x, y, z);
if(check != blockRefresh || check != blockRefresh2){
return true;
} else {
return false;
}
}
But I get the impression I likely did it wrong since it didn't make a difference. I created two variable in my tile entity and had them equal to my blocks in my ModBlocks Class then inside the shouldRefresh method you mentioned I got the block and tried comparing it to my blocks. But I think I either got confused or just misunderstood.
By second block parameter did you mean what the block was set to once it changed?
Sorry if I am asking some stupid questions here, still learning like I said.
Edit: It suddenly occurred to me after posting that I make no call to shouldRefresh anywhere. Also I couldn't override the method because I had to overide or implement a supertype method.
Edit2: I had my method paramaters messed up fixed that, might be able to get it to work, will update shortly