Skip to content

Instantly share code, notes, and snippets.

@StillManic
Created August 19, 2016 03:06
Show Gist options
  • Save StillManic/6793beae64f1ab70fa58ba3eaa8ae649 to your computer and use it in GitHub Desktop.
Save StillManic/6793beae64f1ab70fa58ba3eaa8ae649 to your computer and use it in GitHub Desktop.
public class BlockInfo {
public final BlockPos pos;
public final IBlockState state;
public final NBTTagCompound tileData;
public BlockInfo(BlockPos pos, IBlockState state, NBTTagCompound tileData) {
this.pos = pos; //relative block position
this.state = state; //blockstate at pos
this.tileData = tileData; //this is null for most blocks
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment