Search in sources :

Example 1 with HoneycombItem

use of com.teamresourceful.resourcefulbees.item.HoneycombItem in project ResourcefulBees by Resourceful-Bees.

the class RegistryHandler method registerHoneycomb.

private static void registerHoneycomb(String name, HoneycombData honeycombData) {
    final RegistryObject<Block> customHoneycombBlock = ModBlocks.BLOCKS.register(name + "_honeycomb_block", () -> new HoneycombBlock(name, honeycombData, BlockBehaviour.Properties.copy(Blocks.HONEYCOMB_BLOCK)));
    ModItems.ITEMS.register(name + "_honeycomb", () -> new HoneycombItem(name, honeycombData, new Item.Properties().tab(ItemGroupResourcefulBees.RESOURCEFUL_BEES)));
    ModItems.ITEMS.register(name + "_honeycomb_block", () -> new BlockItem(customHoneycombBlock.get(), new Item.Properties().tab(ItemGroupResourcefulBees.RESOURCEFUL_BEES)));
}
Also used : Item(net.minecraft.world.item.Item) CustomHoneyBottleItem(com.teamresourceful.resourcefulbees.item.CustomHoneyBottleItem) BlockItem(net.minecraft.world.item.BlockItem) CustomHoneyBucketItem(com.teamresourceful.resourcefulbees.item.CustomHoneyBucketItem) BeeSpawnEggItem(com.teamresourceful.resourcefulbees.item.BeeSpawnEggItem) HoneycombItem(com.teamresourceful.resourcefulbees.item.HoneycombItem) HoneycombBlock(com.teamresourceful.resourcefulbees.block.HoneycombBlock) HoneycombItem(com.teamresourceful.resourcefulbees.item.HoneycombItem) LiquidBlock(net.minecraft.world.level.block.LiquidBlock) CustomHoneyFluidBlock(com.teamresourceful.resourcefulbees.block.CustomHoneyFluidBlock) CustomHoneyBlock(com.teamresourceful.resourcefulbees.block.CustomHoneyBlock) HoneycombBlock(com.teamresourceful.resourcefulbees.block.HoneycombBlock) DispenserBlock(net.minecraft.world.level.block.DispenserBlock) Block(net.minecraft.world.level.block.Block) BlockItem(net.minecraft.world.item.BlockItem)

Aggregations

CustomHoneyBlock (com.teamresourceful.resourcefulbees.block.CustomHoneyBlock)1 CustomHoneyFluidBlock (com.teamresourceful.resourcefulbees.block.CustomHoneyFluidBlock)1 HoneycombBlock (com.teamresourceful.resourcefulbees.block.HoneycombBlock)1 BeeSpawnEggItem (com.teamresourceful.resourcefulbees.item.BeeSpawnEggItem)1 CustomHoneyBottleItem (com.teamresourceful.resourcefulbees.item.CustomHoneyBottleItem)1 CustomHoneyBucketItem (com.teamresourceful.resourcefulbees.item.CustomHoneyBucketItem)1 HoneycombItem (com.teamresourceful.resourcefulbees.item.HoneycombItem)1 BlockItem (net.minecraft.world.item.BlockItem)1 Item (net.minecraft.world.item.Item)1 Block (net.minecraft.world.level.block.Block)1 DispenserBlock (net.minecraft.world.level.block.DispenserBlock)1 LiquidBlock (net.minecraft.world.level.block.LiquidBlock)1