Package vazkii.botania.common.impl
Class DefaultHornHarvestable
java.lang.Object
vazkii.botania.common.impl.DefaultHornHarvestable
- All Implemented Interfaces:
HornHarvestable
-
Nested Class Summary
Nested classes/interfaces inherited from interface vazkii.botania.api.block.HornHarvestable
HornHarvestable.EnumHornType -
Field Summary
FieldsFields inherited from interface vazkii.botania.api.block.HornHarvestable
ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHornHarvest(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack stack, HornHarvestable.EnumHornType hornType, @Nullable net.minecraft.world.entity.LivingEntity living) Returns true if this block can be uprooted.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface vazkii.botania.api.block.HornHarvestable
harvestByHorn, hasSpecialHornHarvest
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DefaultHornHarvestable
public DefaultHornHarvestable()
-
-
Method Details
-
canHornHarvest
public boolean canHornHarvest(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack stack, HornHarvestable.EnumHornType hornType, @Nullable @Nullable net.minecraft.world.entity.LivingEntity living) Description copied from interface:HornHarvestableReturns true if this block can be uprooted. Note that the stack param can be empty if it's a drum breaking it.- Specified by:
canHornHarvestin interfaceHornHarvestable
-