2014-12-15 00:11:48 +00:00
|
|
|
package com.cricketcraft.chisel.carving;
|
2014-04-21 19:13:15 +01:00
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
2015-01-14 11:31:12 +01:00
|
|
|
import net.minecraft.item.ItemStack;
|
2014-04-21 19:13:15 +01:00
|
|
|
|
2015-01-13 01:45:52 -05:00
|
|
|
public class CarvingVariation implements Comparable<CarvingVariation> {
|
2014-04-21 19:13:15 +01:00
|
|
|
|
2015-01-07 19:50:18 -05:00
|
|
|
public CarvingVariation(Block block, int metadata, int ord) {
|
|
|
|
|
this.order = ord;
|
|
|
|
|
this.block = block;
|
|
|
|
|
this.meta = metadata;
|
|
|
|
|
this.damage = metadata;
|
|
|
|
|
}
|
2014-04-21 19:13:15 +01:00
|
|
|
|
2015-01-07 19:50:18 -05:00
|
|
|
@Override
|
2015-01-13 01:45:52 -05:00
|
|
|
public int compareTo(CarvingVariation a) {
|
|
|
|
|
return order - a.order;
|
2015-01-07 19:50:18 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int order;
|
|
|
|
|
public Block block;
|
|
|
|
|
public int meta;
|
|
|
|
|
public int damage;
|
2015-01-14 11:31:12 +01:00
|
|
|
|
|
|
|
|
public ItemStack getStack() {
|
|
|
|
|
return new ItemStack(block, 1, damage);
|
|
|
|
|
}
|
|
|
|
|
|
2014-04-21 19:13:15 +01:00
|
|
|
}
|