/
RosetteBlocks.java
111 lines (102 loc) · 5.51 KB
/
RosetteBlocks.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package com.natura.rosette.block;
import com.natura.rosette.Rosette;
import com.natura.rosette.item.RosetteItems;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.Item;
import net.minecraftforge.registries.IForgeRegistry;
public class RosetteBlocks {
public static BlockBase roseQuartzBlock = new BlockBase(Material.ROCK ,"rose_quartz_block").setCreativeTab(Rosette.creativeTab);
public static BlockHive beeHive = new BlockHive("bee_hive").setCreativeTab(Rosette.creativeTab);
public static StrawberryPlant strawberryPlant = new StrawberryPlant();
public static RoseQuartzOre roseQuartzOre = new RoseQuartzOre(Material.ROCK, "rose_quartz_ore").setCreativeTab(Rosette.creativeTab);
public static BlockBushBase waxMushroom = new BlockBushBase("wax_mushroom").setCreativeTab(Rosette.creativeTab);
public static BlueberryPlant blueberryPlant = new BlueberryPlant();
public static BlockOpalOre opalOre = new BlockOpalOre(Material.ROCK, "opal_ore").setCreativeTab(Rosette.creativeTab);
public static BlockBase rubberLog = new BlockBase(Material.WOOD, "rubber_log").setCreativeTab(Rosette.creativeTab);
public static BlockBase rubberPlanks = new BlockBase(Material.WOOD, "rubber_planks").setCreativeTab(Rosette.creativeTab);
public static BlockFlowerBase dandehue = new BlockFlowerBase("dandehue").setCreativeTab(Rosette.creativeTab);
public static BlockBlueberryBush blueberryBush = new BlockBlueberryBush().setCreativeTab(Rosette.creativeTab);
public static BlockBlackberryBush blackberryBush = new BlockBlackberryBush().setCreativeTab(Rosette.creativeTab);
public static BlockPedestal pedestal = new BlockPedestal();
public static BlockCandle candle = new BlockCandle();
public static BlockSeaShell seaShell = new BlockSeaShell();
public static BlockJar jar = new BlockJar();
public static BlockWitchHat witchHat = new BlockWitchHat();
public static BlockAltar altar = new BlockAltar();
public static BlockTreeTap treeTap = new BlockTreeTap();
public static BlockMortarPestle mortarPestle = new BlockMortarPestle();
public static BlockTable oakTable = new BlockTable();
public static BlockSmallCauldron smallCauldron = new BlockSmallCauldron();
public static void register(IForgeRegistry<Block> registry) {
registry.registerAll(
roseQuartzBlock,
beeHive,
strawberryPlant,
roseQuartzOre,
waxMushroom,
blueberryPlant,
opalOre,
rubberLog,
rubberPlanks,
dandehue,
blueberryBush,
blackberryBush,
pedestal,
candle,
seaShell,
jar,
witchHat,
altar,
treeTap,
mortarPestle,
oakTable,
smallCauldron
);
}
public static void registerItemBlocks(IForgeRegistry<Item> registry) {
registry.registerAll(
roseQuartzBlock.createItemBlock().setRegistryName(roseQuartzBlock.getRegistryName()),
beeHive.createItemBlock().setRegistryName(beeHive.getRegistryName()),
roseQuartzOre.createItemBlock().setRegistryName(roseQuartzOre.getRegistryName()),
waxMushroom.createItemBlock().setRegistryName(waxMushroom.getRegistryName()),
opalOre.createItemBlock().setRegistryName(opalOre.getRegistryName()),
rubberLog.createItemBlock().setRegistryName(rubberLog.getRegistryName()),
rubberPlanks.createItemBlock().setRegistryName(rubberPlanks.getRegistryName()),
dandehue.createItemBlock().setRegistryName(dandehue.getRegistryName()),
blueberryBush.createItemBlock().setRegistryName(blueberryBush.getRegistryName()),
blackberryBush.createItemBlock().setRegistryName(blackberryBush.getRegistryName()),
pedestal.createItemBlock().setRegistryName(pedestal.getRegistryName()),
candle.createItemBlock().setRegistryName(candle.getRegistryName()),
seaShell.createItemBlock().setRegistryName(seaShell.getRegistryName()),
jar.createItemBlock().setRegistryName(jar.getRegistryName()),
witchHat.createItemBlock().setRegistryName(witchHat.getRegistryName()),
altar.createItemBlock().setRegistryName(altar.getRegistryName()),
treeTap.createItemBlock().setRegistryName(treeTap.getRegistryName()),
mortarPestle.createItemBlock().setRegistryName(mortarPestle.getRegistryName()),
oakTable.createItemBlock().setRegistryName(oakTable.getRegistryName()),
smallCauldron.createItemBlock().setRegistryName(smallCauldron.getRegistryName())
);
}
public static void registerModels() {
roseQuartzBlock.registerItemModel(Item.getItemFromBlock(roseQuartzBlock));
beeHive.registerItemModel(Item.getItemFromBlock(beeHive));
roseQuartzOre.registerItemModel(Item.getItemFromBlock(roseQuartzOre));
waxMushroom.registerItemModel(Item.getItemFromBlock(waxMushroom));
opalOre.registerItemModel(Item.getItemFromBlock(opalOre));
rubberLog.registerItemModel(Item.getItemFromBlock(rubberLog));
rubberPlanks.registerItemModel(Item.getItemFromBlock(rubberPlanks));
dandehue.registerItemModel(Item.getItemFromBlock(dandehue));
blueberryBush.registerItemModel(Item.getItemFromBlock(blueberryBush));
blackberryBush.registerItemModel(Item.getItemFromBlock(blackberryBush));
pedestal.registerItemModel(Item.getItemFromBlock(pedestal));
candle.registerItemModel(Item.getItemFromBlock(candle));
seaShell.registerItemModel(Item.getItemFromBlock(seaShell));
jar.registerItemModel(Item.getItemFromBlock(jar));
witchHat.registerItemModel(Item.getItemFromBlock(witchHat));
altar.registerItemModel(Item.getItemFromBlock(altar));
treeTap.registerItemModel(Item.getItemFromBlock(treeTap));
mortarPestle.registerItemModel(Item.getItemFromBlock(mortarPestle));
smallCauldron.registerItemModel(Item.getItemFromBlock(smallCauldron));
}
}