Package mcp.mobius.waila.api.data
Class BlockingDataProvider<T>
java.lang.Object
mcp.mobius.waila.api.data.BlockingDataProvider<T>
- All Implemented Interfaces:
IDataProvider<T>
Implementation of
IDataProvider that blocks specified data types.
Usage of this class should probably be accompanied by a higher (lower number) priority than the default.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendData(IDataWriter data, IServerAccessor<T> accessor, IPluginConfig config) Callback used server side to return a custom synchronization data.
-
Constructor Details
-
BlockingDataProvider
- Parameters:
types- data types to block
-
-
Method Details
-
appendData
Description copied from interface:IDataProviderCallback used server side to return a custom synchronization data.- Specified by:
appendDatain interfaceIDataProvider<T>- Parameters:
data- current synchronization dataaccessor- contains the relevant context of the environmentconfig- current plugin configurations, values could be different from the requesting client unless it was registered viaICommonRegistrar.syncedConfig(net.minecraft.resources.ResourceLocation, boolean, boolean)- See Also:
-