Package com.petrolpark.core.wish
Class PlayerWishList.Serializer
java.lang.Object
com.petrolpark.core.wish.PlayerWishList.Serializer
- All Implemented Interfaces:
net.neoforged.neoforge.attachment.IAttachmentSerializer<net.minecraft.nbt.Tag,PlayerWishList>
- Enclosing class:
PlayerWishList
public static class PlayerWishList.Serializer
extends Object
implements net.neoforged.neoforge.attachment.IAttachmentSerializer<net.minecraft.nbt.Tag,PlayerWishList>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(net.neoforged.neoforge.attachment.IAttachmentHolder holder, net.minecraft.nbt.Tag tag, net.minecraft.core.HolderLookup.Provider provider) @Nullable net.minecraft.nbt.Tagwrite(PlayerWishList attachment, net.minecraft.core.HolderLookup.Provider provider)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
read
public PlayerWishList read(@Nonnull net.neoforged.neoforge.attachment.IAttachmentHolder holder, @Nonnull net.minecraft.nbt.Tag tag, @Nonnull net.minecraft.core.HolderLookup.Provider provider) - Specified by:
readin interfacenet.neoforged.neoforge.attachment.IAttachmentSerializer<net.minecraft.nbt.Tag,PlayerWishList>
-
write
@Nullable public @Nullable net.minecraft.nbt.Tag write(@Nonnull PlayerWishList attachment, @Nonnull net.minecraft.core.HolderLookup.Provider provider) - Specified by:
writein interfacenet.neoforged.neoforge.attachment.IAttachmentSerializer<net.minecraft.nbt.Tag,PlayerWishList>
-