Package mcp.mobius.waila.api.data


package mcp.mobius.waila.api.data
Contains built-in data types that can be used to display components in a standarized way.

Implement IDataProvider, and call IDataWriter.add with the data that wanted to be added.

 public class MyDataProvider implements IDataProvider<MyBlockEntity> {
     @Override
     public void appendData(IDataWriter data, ...) {
         data.add(EnergyData.class, res -> {
             res.add(EnergyData.of(...));
         });
     }
 }