public class HarvestHandlerLeaves extends HarvestHandler
HarvestHandler.SimpleHarvestHandler| Constructor and Description |
|---|
HarvestHandlerLeaves() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<net.minecraft.item.ItemStack> |
addFilterItems(net.minecraft.world.World world,
net.minecraft.world.IBlockReader chunkCache,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
IDrone drone)
Should add the items the connected item filters in the Harvest puzzle piece in the Programmer can use to determine if a block should be harvested.
|
boolean |
canHarvest(net.minecraft.world.World world,
net.minecraft.world.IBlockReader chunkCache,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
IDrone drone)
Determines if the currently checked block can be harvested.
|
harvest, harvestAndReplantpublic boolean canHarvest(net.minecraft.world.World world,
net.minecraft.world.IBlockReader chunkCache,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
IDrone drone)
HarvestHandlercanHarvest in class HarvestHandlerworld - the worldchunkCache - Use preferably methods from this cache as it's generally quicker than accessing via 'world'.
The cache has access to the chunks that are accessed by the Drone current program, so as long as only the y pos is varied of the
supplied pos, you are good. If not, use 'world'.pos - the blockpos to be checkedstate - the blockstatedrone - the dronepublic java.util.List<net.minecraft.item.ItemStack> addFilterItems(net.minecraft.world.World world,
net.minecraft.world.IBlockReader chunkCache,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
IDrone drone)
HarvestHandlerHarvestHandler.canHarvest(World, IBlockReader, BlockPos, BlockState, IDrone), when that method returns trueaddFilterItems in class HarvestHandlerworld - the worldchunkCache - Use preferably methods from this cache as it's generally quicker than accessing via 'world'.
The cache has access to the chunks that are accessed by the Drone current program, so as long as only the y pos is varied of the
supplied pos, you are good. If not, use 'world'.pos - the blockposstate - the blockstatedrone - the drone