package com.elementalessence.api.rewind;

import net.minecraft.block.Block;

public class BlockData {

	public Block block;
	public int meta;

	public BlockData(Block b, int m) {
		block = b;
		meta = m;

		if (m > 16 || m < 0) meta = 0;

	}

	@Override
	public boolean equals(Object o) {
		if (!(o instanceof BlockData)) return false;

		if (((BlockData) o).block != block || ((BlockData) o).meta != meta) return false;

		return true;
	}
}
