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 class
ChatResponseBuilder.Companion
-
Field Summary
Fields Modifier and Type Field Description private String
localizedName
private final Function0<R>
response
private final AbstractRegistrate<?>
owner
private final P
parent
private final String
name
private final BuilderCallback
callback
private final ResourceKey<out Registry<ChatResponse>>
registryKey
private final Multimap<ProviderType<out RegistrateTagsProvider<?>>, TagKey<?>>
tagsByType
private final LazyRegistryEntry<ChatResponse, R>
safeSupplier
private final Boolean
isOptional
public final static ChatResponseBuilder.Companion
Companion
-
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 String
getLocalizedName()
final Unit
setLocalizedName(String localizedName)
final Function0<R>
getResponse()
final ChatResponseBuilder<R, P>
lang(String name)
R
createEntry()
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()
-
-
-
-