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
FieldsModifier and TypeFieldDescriptionprotected final Map<net.minecraft.resources.ResourceLocation, ClientTagBuilder<T>> protected final Rprotected final Stringprotected final net.minecraft.data.PackOutputprotected final net.minecraft.data.PackOutput.PathProviderFields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionBaseClientTagDataProvider(net.minecraft.data.PackOutput packOutput, String modid, R keyResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoesTagExist(net.minecraft.resources.ResourceLocation clientTagId) protected ClientTagBuilder<T> getOrCreateBuilder(ClientTagKey<T> clientTagKey) protected voidonBuilderCreation(net.minecraft.resources.ResourceLocation id) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
builders
-
keyResolver
-
-
Constructor Details
-
BaseClientTagDataProvider
-
-
Method Details
-
getOrCreateBuilder
-
onBuilderCreation
protected void onBuilderCreation(net.minecraft.resources.ResourceLocation id) -
doesTagExist
protected boolean doesTagExist(net.minecraft.resources.ResourceLocation clientTagId)
-