addOptional

fun addOptional(id: ResourceLocation): TagBuilder<T>

Add an optional element to this tag.

Return

this builder

Parameters

id

the resource location to add


fun addOptional(key: ResourceKey<T>): TagBuilder<T>

Add an optional element to this tag.

Return

this builder

Parameters

key

the resource key to add