public class HarvestHandlerCropLike extends HarvestHandlerAbstractCrop
HarvestHandler.SimpleHarvestHandler| Constructor and Description |
|---|
HarvestHandlerCropLike(java.util.function.Predicate<net.minecraft.block.BlockState> blockChecker,
net.minecraft.state.IntegerProperty ageProperty,
java.util.function.Predicate<net.minecraft.item.ItemStack> isSeed) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isMaxAge(net.minecraft.block.BlockState state) |
protected boolean |
isSeed(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.item.ItemStack stack) |
protected net.minecraft.block.BlockState |
withMinAge(net.minecraft.block.BlockState state) |
canHarvest, harvestAndReplantaddFilterItems, harvestpublic HarvestHandlerCropLike(java.util.function.Predicate<net.minecraft.block.BlockState> blockChecker,
net.minecraft.state.IntegerProperty ageProperty,
java.util.function.Predicate<net.minecraft.item.ItemStack> isSeed)
protected boolean isSeed(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.item.ItemStack stack)
isSeed in class HarvestHandlerAbstractCropprotected boolean isMaxAge(net.minecraft.block.BlockState state)
isMaxAge in class HarvestHandlerAbstractCropprotected net.minecraft.block.BlockState withMinAge(net.minecraft.block.BlockState state)
withMinAge in class HarvestHandlerAbstractCrop