Serializer¶
Properties¶
identifier¶
open override val identifier: ResourceLocation
{@return the identifier of this serializer}.
packetCodec¶
open override val packetCodec: StreamCodec<RegistryFriendlyByteBuf, ACustomDataIngredient>
Functions¶
getCodec¶
open override fun getCodec(allowEmpty: Boolean): MapCodec<ACustomDataIngredient>
{@return the codec}.
Codecs are used to read the ingredient from the recipe JSON files.
See also
- Ingredient.CODEC
- Ingredient.CODEC_NONEMPTY