Package de.cech12.bucketlib.api.crafting
Class BlockIngredient.Serializer
java.lang.Object
de.cech12.bucketlib.api.crafting.BlockIngredient.Serializer
- All Implemented Interfaces:
net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<BlockIngredient>
- Enclosing class:
- BlockIngredient
public static final class BlockIngredient.Serializer
extends Object
implements net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<BlockIngredient>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlockIngredient.Serializerstatic final net.minecraft.resources.ResourceLocation -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<BlockIngredient>getCodec(boolean allowEmpty) net.minecraft.resources.ResourceLocationread(net.minecraft.network.FriendlyByteBuf buffer) voidwrite(net.minecraft.network.FriendlyByteBuf buffer, BlockIngredient ingredient)
-
Field Details
-
INSTANCE
-
NAME
public static final net.minecraft.resources.ResourceLocation NAME
-
-
Method Details
-
getIdentifier
public net.minecraft.resources.ResourceLocation getIdentifier()- Specified by:
getIdentifierin interfacenet.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<BlockIngredient>
-
read
- Specified by:
readin interfacenet.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<BlockIngredient>
-
write
public void write(@Nonnull net.minecraft.network.FriendlyByteBuf buffer, @Nonnull BlockIngredient ingredient) - Specified by:
writein interfacenet.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<BlockIngredient>
-
getCodec
- Specified by:
getCodecin interfacenet.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<BlockIngredient>
-