Search in sources :

Example 1 with ShearsDispenserBehavior

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

the class RegistryHandler method registerDispenserBehaviors.

public static void registerDispenserBehaviors() {
    ShearsDispenserBehavior.setDefaultShearsDispenseBehavior(((DispenserBlockInvoker) Blocks.DISPENSER).invokeGetBehavior(new ItemStack(Items.SHEARS)));
    DispenserBlock.registerBehavior(Items.SHEARS.asItem(), new ShearsDispenserBehavior());
    DispenserBlock.registerBehavior(ModItems.SCRAPER.get().asItem(), new ScraperDispenserBehavior());
}
Also used : ScraperDispenserBehavior(com.teamresourceful.resourcefulbees.item.dispenser.ScraperDispenserBehavior) ShearsDispenserBehavior(com.teamresourceful.resourcefulbees.item.dispenser.ShearsDispenserBehavior) ItemStack(net.minecraft.world.item.ItemStack)

Aggregations

ScraperDispenserBehavior (com.teamresourceful.resourcefulbees.item.dispenser.ScraperDispenserBehavior)1 ShearsDispenserBehavior (com.teamresourceful.resourcefulbees.item.dispenser.ShearsDispenserBehavior)1 ItemStack (net.minecraft.world.item.ItemStack)1