1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-23 01:47:38 +00:00

Resolve a few TODOs

- Update ForgeConfigAPI to the latest version, to fix the race
   condition.
 - Move WirelessNetwork lifecycle management to ServerContext.
 - Some doc fixes.
This commit is contained in:
Jonathan Coates
2022-12-03 15:55:48 +00:00
parent 87c6d3aef6
commit fa122a56cf
10 changed files with 26 additions and 41 deletions

View File

@@ -5,26 +5,24 @@
*/
package dan200.computercraft.api.peripheral;
import dan200.computercraft.api.ForgeComputerCraftAPI;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraftforge.common.util.LazyOptional;
/**
* This interface is used to create peripheral implementations for blocks.
* <p>
* If you have a {@link BlockEntity} which acts as a peripheral, you may alternatively expose the {@link IPeripheral}
* capability.
* <p>
* {@code dan200.computercraft.api.ForgeComputerCraftAPI#registerPeripheralProvider(IPeripheralProvider)} should be used
* to register a peripheral provider.
* {@link ForgeComputerCraftAPI#registerPeripheralProvider(IPeripheralProvider)} should be used to register a peripheral
* provider.
*/
@FunctionalInterface
public interface IPeripheralProvider {
// TODO(1.19.3): Move to Forge and fix link above.
/**
* Produce an peripheral implementation from a block location.
*