Class BaseClientTagDataProvider<T,R extends KeyResolver<T>>

java.lang.Object
dev.dhyces.trimmed.api.data.client.tag.BaseClientTagDataProvider<T,R>
All Implemented Interfaces:
net.minecraft.data.DataProvider
Direct Known Subclasses:
ClientRegistryTagDataProvider, ClientTagDataProvider

public abstract class BaseClientTagDataProvider<T,R extends KeyResolver<T>> extends Object implements net.minecraft.data.DataProvider
  • 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
    Modifier and Type
    Field
    Description
    protected final Map<net.minecraft.resources.ResourceLocation,ClientTagBuilder<T>>
     
    protected final R
     
    protected final String
     
    protected final net.minecraft.data.PackOutput
     
    protected final net.minecraft.data.PackOutput.PathProvider
     

    Fields inherited from interface net.minecraft.data.DataProvider

    FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaseClientTagDataProvider(net.minecraft.data.PackOutput packOutput, String modid, R keyResolver)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    doesTagExist(net.minecraft.resources.ResourceLocation clientTagId)
     
    protected ClientTagBuilder<T>
     
    protected void
    onBuilderCreation(net.minecraft.resources.ResourceLocation id)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.data.DataProvider

    getName, run
  • Field Details

    • packOutput

      protected final net.minecraft.data.PackOutput packOutput
    • pathProvider

      protected final net.minecraft.data.PackOutput.PathProvider pathProvider
    • modid

      protected final String modid
    • builders

      protected final Map<net.minecraft.resources.ResourceLocation,ClientTagBuilder<T>> builders
    • keyResolver

      protected final R extends KeyResolver<T> keyResolver
  • Constructor Details

    • BaseClientTagDataProvider

      public BaseClientTagDataProvider(net.minecraft.data.PackOutput packOutput, String modid, R keyResolver)
  • Method Details

    • getOrCreateBuilder

      protected ClientTagBuilder<T> getOrCreateBuilder(ClientTagKey<T> clientTagKey)
    • onBuilderCreation

      protected void onBuilderCreation(net.minecraft.resources.ResourceLocation id)
    • doesTagExist

      protected boolean doesTagExist(net.minecraft.resources.ResourceLocation clientTagId)