2019-11-12 00:52:54 +01:00
package de.ellpeck.actuallyadditions.mod.block ;
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions ;
import net.minecraft.block.Block ;
2019-11-12 03:13:59 +01:00
import net.minecraft.block.Block.Properties ;
import net.minecraft.block.material.Material ;
import net.minecraft.item.* ;
2019-11-12 00:52:54 +01:00
import net.minecraftforge.event.RegistryEvent.Register ;
import net.minecraftforge.eventbus.api.SubscribeEvent ;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber ;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus ;
import net.minecraftforge.registries.ObjectHolder ;
@EventBusSubscriber ( modid = ActuallyAdditions . MODID , bus = Bus . MOD )
@ObjectHolder ( ActuallyAdditions . MODID )
public class AABlocks {
2019-11-12 03:13:59 +01:00
@ObjectHolder ( ActuallyAdditions . MODID + " :block_black_quartz " )
public static Block BLACK_QUARTZ ;
2019-11-12 00:52:54 +01:00
@SubscribeEvent
public static void register ( Register < Block > e ) {
2019-11-12 03:13:59 +01:00
e . getRegistry ( ) . register ( new Block ( Properties . create ( Material . ROCK ) . hardnessAndResistance ( 0 . 8F ) ) . setRegistryName ( " block_black_quartz " ) ) ; //Values from the QUARTZ_BLOCK
2019-11-12 00:52:54 +01:00
}
@SubscribeEvent
public static void registerItemBlocks ( Register < Item > e ) {
2019-11-12 03:13:59 +01:00
e . getRegistry ( ) . register ( new BlockItem ( BLACK_QUARTZ , new Item . Properties ( ) . group ( ActuallyAdditions . itemGroup ) ) . setRegistryName ( BLACK_QUARTZ . getRegistryName ( ) ) ) ;
2019-11-12 00:52:54 +01:00
}
2019-11-12 03:13:59 +01:00
}