|
2 | 2 |
|
3 | 3 | import java.util.function.UnaryOperator;
|
4 | 4 | import net.minecraft.block.Block;
|
| 5 | +import net.minecraft.block.Blocks; |
5 | 6 | import net.minecraft.item.Item;
|
6 | 7 | import net.minecraft.item.ItemGroup;
|
7 | 8 | import net.minecraft.util.Identifier;
|
|
14 | 15 | import com.swordglowsblue.artifice.api.ArtificeResourcePack;
|
15 | 16 |
|
16 | 17 | /**
|
17 |
| - * JavaDoc planned. |
| 18 | + * Variant type that adds blocks and items for an overworld ore type. |
18 | 19 | */
|
19 | 20 | public class OreType extends MotherlodeVariantType<Object, OreType> {
|
| 21 | + public static final OreType IRON = new OreType(new Identifier("minecraft", "iron"), Blocks.IRON_ORE, Blocks.DEEPSLATE_IRON_ORE).withoutBase().register(); |
| 22 | + public static final OreType COAL = new OreType(new Identifier("minecraft", "coal"), Blocks.COAL_ORE, Blocks.DEEPSLATE_COAL_ORE, "coal").withoutBase().register(); |
| 23 | + public static final OreType COPPER = new OreType(new Identifier("minecraft", "copper"), Blocks.COPPER_ORE, Blocks.DEEPSLATE_COPPER_ORE).withoutBase().register(); |
| 24 | + public static final OreType GOLD = new OreType(new Identifier("minecraft", "gold"), Blocks.GOLD_ORE, Blocks.DEEPSLATE_GOLD_ORE).withoutBase().register(); |
| 25 | + public static final OreType REDSTONE = new OreType(new Identifier("minecraft", "redstone"), Blocks.REDSTONE_ORE, Blocks.DEEPSLATE_REDSTONE_ORE, "redstone_dust").withoutBase().register(); |
| 26 | + public static final OreType LAPIS_LAZULI = new OreType(new Identifier("minecraft", "lapis_lazuli"), Blocks.LAPIS_ORE, Blocks.DEEPSLATE_LAPIS_ORE, "lapis_lazuli").withoutBase().register(); |
| 27 | + public static final OreType DIAMOND = new OreType(new Identifier("minecraft", "diamond"), Blocks.DIAMOND_ORE, Blocks.DEEPSLATE_DIAMOND_ORE, "diamond").withoutBase().register(); |
| 28 | + |
20 | 29 | private final Block stoneOreBlock;
|
21 | 30 | private final Block deepslateOreBlock;
|
22 | 31 | private Item material;
|
|
0 commit comments