Skip to content

Commit eb3d835

Browse files
committed
Added instances of OreType for vanilla ores
1 parent 8b0fe27 commit eb3d835

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/main/java/motherlode/base/api/varianttype/MotherlodeVariantType.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public static <T, S extends AbstractExtendableVariantType<T, S>> S extend(S vari
3434
return AbstractExtendableVariantType.extend(variantType, namespace);
3535
}
3636

37-
@Deprecated
3837
public static <T, S extends AbstractExtendableVariantType<T, S>, E extends ExtendableVariantType.Extension<T, S>> E extend(S variantType, String namespace, E extension) {
3938
return AbstractExtendableVariantType.extend(variantType, namespace, extension);
4039
}

src/main/java/motherlode/base/api/varianttypes/ore/OreType.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.util.function.UnaryOperator;
44
import net.minecraft.block.Block;
5+
import net.minecraft.block.Blocks;
56
import net.minecraft.item.Item;
67
import net.minecraft.item.ItemGroup;
78
import net.minecraft.util.Identifier;
@@ -14,9 +15,17 @@
1415
import com.swordglowsblue.artifice.api.ArtificeResourcePack;
1516

1617
/**
17-
* JavaDoc planned.
18+
* Variant type that adds blocks and items for an overworld ore type.
1819
*/
1920
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+
2029
private final Block stoneOreBlock;
2130
private final Block deepslateOreBlock;
2231
private Item material;

src/main/java/motherlode/base/api/varianttypes/wood/WoodType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import com.swordglowsblue.artifice.api.ArtificeResourcePack;
3737

3838
/**
39-
* JavaDoc planned.
39+
* Variant type that adds blocks required for an overworld wood type.
4040
*/
4141
public class WoodType extends MotherlodeVariantType<Block, WoodType> {
4242
private static final Item.Settings BUILDING_BLOCKS = new Item.Settings().group(ItemGroup.BUILDING_BLOCKS);

0 commit comments

Comments
 (0)