Interface MeasurementService
public interface MeasurementService
WWPG runtime discovery service used by ElectricalMeasurements. The WWPG runtime
supplies the single implementation through META-INF/services. Add-ons consume
the facade; registering a second service is a configuration error.
-
Method Summary
Modifier and TypeMethodDescriptionread(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos position) Read the latest extension-device snapshot without solving or loading chunks.default VoltageMeasurementreadTerminal(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos position, int nativeId) Read a native PG, native CEE, or extension terminal without creating endpoints.default VoltageMeasurementreadVoltageBetween(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos positionA, int nativeIdA, net.minecraft.core.BlockPos positionB, int nativeIdB) Signed A-minus-B voltage; RMS is calculated from the differential waveform.
-
Method Details
-
read
DeviceResults read(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos position) Read the latest extension-device snapshot without solving or loading chunks. -
readTerminal
default VoltageMeasurement readTerminal(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos position, int nativeId) Read a native PG, native CEE, or extension terminal without creating endpoints. -
readVoltageBetween
default VoltageMeasurement readVoltageBetween(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos positionA, int nativeIdA, net.minecraft.core.BlockPos positionB, int nativeIdB) Signed A-minus-B voltage; RMS is calculated from the differential waveform.
-