I'm trying to update some code from an older forge/mincraft version. It's really a basic do something when the player stands on a black of glass. I'm having trouble with the old entity.worldobj.getBlock(posX, posY, posZ) porting it through to forge 1.11
Here is what I have:
if (event.getEntity().world.getBlock(
((int) Math.floor(event.getEntity().posX)),
((int) Math.floor(event.getEntity().posY)) - 2,
((int) Math.floor(event.getEntity().posZ))) != Blocks.GLASS) {
return;
Cheers
Airfix