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(...));
});
}
}
-
ClassDescriptionImplementation of
IDataProviderthat blocks specified data types.Adds an energy information to an object.Adds fluid information to an object.FluidData.FluidDescriptionContext<T extends Fluid>FluidData.FluidDescriptor<T extends Fluid>Adds item information to an object.Adds a crafting progress information to an object.