Private
Public Access
1
0

reinit branch

This commit is contained in:
2026-03-11 01:46:34 +01:00
commit bff9251737
129 changed files with 16115 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
using Vintagestory.API.Common;
using Vintagestory.API.MathTools;
namespace OrekiWoofsBees.Common;
public interface IPlantPositionRegistry
{
ICoreAPI? Api { get; }
event Action<BlockPos, int>? CropEvent;
event Action<BlockPos, int>? FlowerEvent;
void AddPlantPosition(BlockPos pos, Block block);
int CountBeehivesInRadius(BlockPos pos, int radius);
(
int FlowerCount,
int CropCount,
float InitialScanProgress,
float RescanProgress
)
GetPlantCountsNearPosition(BlockPos hivePos, int radius);
(
IEnumerable<BlockPos> Flowers,
IEnumerable<BlockPos> Crops,
float InitialScanProgress,
float RescanProgress
)
GetPlantsNearPosition(BlockPos hivePos, int radius);
void RegisterBeehive(BlockPos pos, int radius);
void RemovePlantPosition(BlockPos pos, Block block);
void UnregisterBeehive(BlockPos pos);
}