Class HarvestHandlerCrops
java.lang.Object
me.desht.pneumaticcraft.api.harvesting.HarvestHandler
me.desht.pneumaticcraft.common.harvesting.HarvestHandlerAbstractCrop
me.desht.pneumaticcraft.common.harvesting.HarvestHandlerCrops
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisMaxAge(net.minecraft.world.level.block.state.BlockState state) booleanisSeed(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.BlockStatewithMinAge(net.minecraft.world.level.block.state.BlockState state) Methods inherited from class me.desht.pneumaticcraft.common.harvesting.HarvestHandlerAbstractCrop
canHarvest, harvestAndReplantMethods inherited from class me.desht.pneumaticcraft.api.harvesting.HarvestHandler
addFilterItems, harvest
-
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:
isSeedin classHarvestHandlerAbstractCrop
-
isMaxAge
protected boolean isMaxAge(net.minecraft.world.level.block.state.BlockState state) - Specified by:
isMaxAgein classHarvestHandlerAbstractCrop
-
withMinAge
protected net.minecraft.world.level.block.state.BlockState withMinAge(net.minecraft.world.level.block.state.BlockState state) - Specified by:
withMinAgein classHarvestHandlerAbstractCrop
-