Class HarvestHandlerCrops

java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<HarvestHandler>
All Implemented Interfaces:
net.minecraftforge.registries.IForgeRegistryEntry<HarvestHandler>

public class HarvestHandlerCrops extends HarvestHandlerAbstractCrop
Harvest handler targeted at handling any subclass of BlockCrops.
  • Nested Class Summary

    Nested classes/interfaces inherited from class me.desht.pneumaticcraft.api.harvesting.HarvestHandler

    HarvestHandler.SimpleHarvestHandler

    Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    net.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>>
  • Field Summary

    Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    delegate
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    isMaxAge(net.minecraft.world.level.block.state.BlockState state)
     
    boolean
    isSeed(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.ItemStack stack)
     
    protected net.minecraft.world.level.block.state.BlockState
    withMinAge(net.minecraft.world.level.block.state.BlockState state)
     

    Methods inherited from class me.desht.pneumaticcraft.common.harvesting.HarvestHandlerAbstractCrop

    canHarvest, harvestAndReplant

    Methods inherited from class me.desht.pneumaticcraft.api.harvesting.HarvestHandler

    addFilterItems, harvest

    Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HarvestHandlerCrops

      public HarvestHandlerCrops()
  • Method Details

    • isSeed

      public boolean isSeed(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.ItemStack stack)
      Specified by:
      isSeed in class HarvestHandlerAbstractCrop
    • isMaxAge

      protected boolean isMaxAge(net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      isMaxAge in class HarvestHandlerAbstractCrop
    • withMinAge

      protected net.minecraft.world.level.block.state.BlockState withMinAge(net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      withMinAge in class HarvestHandlerAbstractCrop