Class DefaultPonderTagRegistrationHelper
java.lang.Object
net.createmod.ponder.foundation.registration.DefaultPonderTagRegistrationHelper
- All Implemented Interfaces:
PonderTagRegistrationHelper<net.minecraft.resources.ResourceLocation>
public class DefaultPonderTagRegistrationHelper
extends Object
implements PonderTagRegistrationHelper<net.minecraft.resources.ResourceLocation>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PonderLocalizationprotected Stringprotected PonderTagRegistry -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPonderTagRegistrationHelper(String namespace, PonderTagRegistry tagRegistry, PonderLocalization localization) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTagToComponent(net.minecraft.resources.ResourceLocation component, net.minecraft.resources.ResourceLocation tag) addToComponent(net.minecraft.resources.ResourceLocation component) addToComponent(net.minecraft.resources.ResourceLocation... components) MultiTagBuilder.Tag<net.minecraft.resources.ResourceLocation>addToTag(net.minecraft.resources.ResourceLocation tag) MultiTagBuilder.Tag<net.minecraft.resources.ResourceLocation>addToTag(net.minecraft.resources.ResourceLocation... tags) registerTag(String id) registerTag(net.minecraft.resources.ResourceLocation location) <T> PonderTagRegistrationHelper<T>withKeyFunction(Function<T, net.minecraft.resources.ResourceLocation> keyGen)
-
Field Details
-
namespace
-
tagRegistry
-
localization
-
-
Constructor Details
-
DefaultPonderTagRegistrationHelper
public DefaultPonderTagRegistrationHelper(String namespace, PonderTagRegistry tagRegistry, PonderLocalization localization)
-
-
Method Details
-
withKeyFunction
public <T> PonderTagRegistrationHelper<T> withKeyFunction(Function<T, net.minecraft.resources.ResourceLocation> keyGen) - Specified by:
withKeyFunctionin interfacePonderTagRegistrationHelper<net.minecraft.resources.ResourceLocation>
-
registerTag
- Specified by:
registerTagin interfacePonderTagRegistrationHelper<net.minecraft.resources.ResourceLocation>
-
registerTag
- Specified by:
registerTagin interfacePonderTagRegistrationHelper<net.minecraft.resources.ResourceLocation>
-
addTagToComponent
public void addTagToComponent(net.minecraft.resources.ResourceLocation component, net.minecraft.resources.ResourceLocation tag) - Specified by:
addTagToComponentin interfacePonderTagRegistrationHelper<net.minecraft.resources.ResourceLocation>
-
addToTag
public MultiTagBuilder.Tag<net.minecraft.resources.ResourceLocation> addToTag(net.minecraft.resources.ResourceLocation tag) - Specified by:
addToTagin interfacePonderTagRegistrationHelper<net.minecraft.resources.ResourceLocation>
-
addToTag
public MultiTagBuilder.Tag<net.minecraft.resources.ResourceLocation> addToTag(net.minecraft.resources.ResourceLocation... tags) - Specified by:
addToTagin interfacePonderTagRegistrationHelper<net.minecraft.resources.ResourceLocation>
-
addToComponent
- Specified by:
addToComponentin interfacePonderTagRegistrationHelper<net.minecraft.resources.ResourceLocation>
-
addToComponent
public MultiTagBuilder.Component addToComponent(net.minecraft.resources.ResourceLocation... components) - Specified by:
addToComponentin interfacePonderTagRegistrationHelper<net.minecraft.resources.ResourceLocation>
-