Block.opEquals

Compare the block names.

Examples

// one block
assert(new Blocks.Dirt() == Blocks.dirt);

// a group of blocks
assert(new Blocks.Grass() == [Blocks.dirt, Blocks.grass, Blocks.grassPath]);

Meta