IACustomIngredientSerializer¶
interface IACustomIngredientSerializer<T : IACustomIngredient>
Serializer for a IACustomIngredient.
All instances must be registered using .register for deserialization to work.
Parameters¶
- :
the type of the custom ingredient
Inheritors¶
Types¶
Companion¶
object Companion
Properties¶
identifier¶
abstract val identifier: ResourceLocation
{@return the identifier of this serializer}.
packetCodec¶
abstract val packetCodec: StreamCodec<RegistryFriendlyByteBuf, T>
Functions¶
getCodec¶
{@return the codec}.
Codecs are used to read the ingredient from the recipe JSON files.
See also
- Ingredient.CODEC
- Ingredient.CODEC_NONEMPTY