Class HarvestHandlerCropLike
java.lang.Object
me.desht.pneumaticcraft.api.harvesting.HarvestHandler
me.desht.pneumaticcraft.common.harvesting.HarvestHandlerAbstractCrop
me.desht.pneumaticcraft.common.harvesting.HarvestHandlerCropLike
- Direct Known Subclasses:
HarvestHandlerCropLike.Cocoa,HarvestHandlerCropLike.NetherWart,HarvestHandlerCropLike.SweetBerry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from class me.desht.pneumaticcraft.api.harvesting.HarvestHandler
HarvestHandler.SimpleHarvestHandler -
Constructor Summary
ConstructorsConstructorDescriptionHarvestHandlerCropLike(Predicate<net.minecraft.world.level.block.state.BlockState> blockChecker, net.minecraft.world.level.block.state.properties.IntegerProperty ageProperty, Predicate<net.minecraft.world.item.ItemStack> isSeed) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisMaxAge(net.minecraft.world.level.block.state.BlockState state) protected 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
-
HarvestHandlerCropLike
-
-
Method Details
-
isSeed
protected 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
-