Search in sources :

Example 1 with BlockBOPMushroom

use of biomesoplenty.common.block.BlockBOPMushroom in project BiomesOPlenty by Glitchfiend.

the class ItemFlowerBasket method isStackSuitableForBasket.

public static boolean isStackSuitableForBasket(@Nonnull ItemStack stack) {
    Item item = stack.getItem();
    Block block = Block.getBlockFromItem(item);
    return !(item instanceof ItemFlowerBasket) && (block instanceof IPlantable || block instanceof IGrowable || block instanceof IShearable || block instanceof BlockBOPMushroom || item instanceof ItemSeedFood || item instanceof ItemSeeds || item == Items.REEDS || item == Items.APPLE || item == Items.MELON || item == Items.BEETROOT || item == Items.WHEAT || item == Items.CHORUS_FRUIT || item == BOPItems.berries || item == BOPItems.pear || item == BOPItems.peach || item == BOPItems.persimmon || item == BOPItems.pinecone || item == BOPItems.turnip);
}
Also used : IGrowable(net.minecraft.block.IGrowable) IPlantable(net.minecraftforge.common.IPlantable) IShearable(net.minecraftforge.common.IShearable) Block(net.minecraft.block.Block) BlockBOPMushroom(biomesoplenty.common.block.BlockBOPMushroom)

Aggregations

BlockBOPMushroom (biomesoplenty.common.block.BlockBOPMushroom)1 Block (net.minecraft.block.Block)1 IGrowable (net.minecraft.block.IGrowable)1 IPlantable (net.minecraftforge.common.IPlantable)1 IShearable (net.minecraftforge.common.IShearable)1