Class ChatResponseBuilder
-
- All Implemented Interfaces:
-
com.tterrag.registrate.builders.Builder,com.tterrag.registrate.util.nullness.NonNullSupplier,java.util.function.Supplier
public class ChatResponseBuilder<R extends ChatResponse, P extends Object> extends AbstractBuilder<ChatResponse, R, P, ChatResponseBuilder<R, P>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classChatResponseBuilder.Companion
-
Field Summary
Fields Modifier and Type Field Description private StringlocalizedNameprivate final Function0<R>responseprivate final AbstractRegistrate<?>ownerprivate final Pparentprivate final Stringnameprivate final BuilderCallbackcallbackprivate final ResourceKey<out Registry<ChatResponse>>registryKeyprivate final Multimap<ProviderType<out RegistrateTagsProvider<?>>, TagKey<?>>tagsByTypeprivate final LazyRegistryEntry<ChatResponse, R>safeSupplierprivate final BooleanisOptionalpublic final static ChatResponseBuilder.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description ChatResponseBuilder(AbstractRegistrate<?> owner, P parent, String name, BuilderCallback callback, Function0<R> response)
-
Method Summary
Modifier and Type Method Description final StringgetLocalizedName()final UnitsetLocalizedName(String localizedName)final Function0<R>getResponse()final ChatResponseBuilder<R, P>lang(String name)RcreateEntry()RegistryEntry<ChatResponse, R>register()-
Methods inherited from class com.tterrag.registrate.builders.AbstractBuilder
asOptional, asSupplier, asTag, createEntryWrapper, getCallback, getName, getOwner, getParent, getRegistryKey, lang, lang, lang, removeTag, tag -
Methods inherited from class com.tterrag.registrate.builders.Builder
addMiscData, build, dataMap, dataMap, get, getEntry, onRegister, onRegisterAfter, setData, transform -
Methods inherited from class com.tterrag.registrate.util.nullness.NonNullSupplier
lazy -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getLocalizedName
final String getLocalizedName()
-
setLocalizedName
final Unit setLocalizedName(String localizedName)
-
getResponse
final Function0<R> getResponse()
-
lang
final ChatResponseBuilder<R, P> lang(String name)
-
createEntry
R createEntry()
-
register
RegistryEntry<ChatResponse, R> register()
-
-
-
-