Skip to content

Commit

Permalink
Allow SpecialPlantable's spawnPlantAtPosition to set blocks in world (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
TelepathicGrunt authored Jul 11, 2024
1 parent 200ddd2 commit 5dd3675
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import net.minecraft.core.Direction;
import net.minecraft.world.entity.npc.Villager;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.level.LevelReader;
import org.jetbrains.annotations.Nullable;

Expand All @@ -34,7 +35,7 @@ public interface SpecialPlantable {
* Spawns the plant with the given direction attachment point at location.
* Ideally called after canPlacePlantAtPosition returns true.
*/
void spawnPlantAtPosition(ItemStack itemStack, LevelReader level, BlockPos pos, @Nullable Direction direction);
void spawnPlantAtPosition(ItemStack itemStack, LevelAccessor level, BlockPos pos, @Nullable Direction direction);

/**
* Whether Villagers can pick up this item and plant it down on any block that extends FarmBlock.
Expand Down

0 comments on commit 5dd3675

Please sign in to comment.