reinit branch
This commit is contained in:
40
OrekiWoofsBees.Common/IPlantPositionRegistry.cs
Normal file
40
OrekiWoofsBees.Common/IPlantPositionRegistry.cs
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user