Class ClientMapDataProvider

java.lang.Object
dhyces.trimmed.api.data.maps.BaseMapDataProvider
dhyces.trimmed.api.data.maps.ClientMapDataProvider
All Implemented Interfaces:
net.minecraft.data.DataProvider

public abstract class ClientMapDataProvider extends BaseMapDataProvider
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider

    net.minecraft.data.DataProvider.Factory<T extends net.minecraft.data.DataProvider>
  • Field Summary

    Fields inherited from class dhyces.trimmed.api.data.maps.BaseMapDataProvider

    builders, modid, packOutput, pathProvider

    Fields inherited from interface net.minecraft.data.DataProvider

    FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClientMapDataProvider(net.fabricmc.fabric.api.datagen.v1.FabricDataOutput packOutput, String modid)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
     
     
    dhyces.trimmed.api.data.maps.appenders.ClientMapAppender<String>
    map(dhyces.trimmed.impl.client.maps.ClientMapKey clientMapKey)
     
    <V> dhyces.trimmed.api.data.maps.appenders.ClientMapAppender<V>
    mapWithMapper(dhyces.trimmed.impl.client.maps.ClientMapKey clientMapKey, Class<V> valueClass, Function<V,String> mapper)
     
    run(net.minecraft.data.CachedOutput pOutput)
     

    Methods inherited from class dhyces.trimmed.api.data.maps.BaseMapDataProvider

    getOrCreateBuilder

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClientMapDataProvider

      public ClientMapDataProvider(net.fabricmc.fabric.api.datagen.v1.FabricDataOutput packOutput, String modid)
  • Method Details

    • map

      public dhyces.trimmed.api.data.maps.appenders.ClientMapAppender<String> map(dhyces.trimmed.impl.client.maps.ClientMapKey clientMapKey)
    • mapWithMapper

      public <V> dhyces.trimmed.api.data.maps.appenders.ClientMapAppender<V> mapWithMapper(dhyces.trimmed.impl.client.maps.ClientMapKey clientMapKey, Class<V> valueClass, Function<V,String> mapper)
    • addMaps

      protected abstract void addMaps()
    • run

      public CompletableFuture<?> run(net.minecraft.data.CachedOutput pOutput)
    • getName

      public String getName()