using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class BlockWaterPipeSDX : Block { // This allows for the water logic to pass through it. public override void OnBlockRemoved(WorldBase _world, Chunk _chunk, Vector3i _blockPos, BlockValue _blockValue) { CropManager.Instance.ClearPipes(); base.OnBlockRemoved(_world, _chunk, _blockPos, _blockValue); } public override void OnBlockLoaded(WorldBase _world, int _clrIdx, Vector3i _blockPos, BlockValue _blockValue) { base.OnBlockLoaded(_world, _clrIdx, _blockPos, _blockValue); } } public class BlockWaterSourceSDX : Block { // This is not a direct source of water in itself. However, if it's connected to a series of BlockWaterPipeSDXs which connect up to // a BlockLiquidV2, then it can act like the water block itself, providing the same range of water power as if its the block itself. // If there is no BlockWaterPipeSDXs connected to water, it does nothing. public override void OnBlockRemoved(WorldBase _world, Chunk _chunk, Vector3i _blockPos, BlockValue _blockValue) { CropManager.Instance.ClearPipes(); base.OnBlockRemoved(_world, _chunk, _blockPos, _blockValue); } }