Class WerewolfPlayer.Serializer

java.lang.Object
de.teamlapen.werewolves.entities.player.werewolf.WerewolfPlayer.Serializer
All Implemented Interfaces:
net.neoforged.neoforge.attachment.IAttachmentSerializer<net.minecraft.nbt.CompoundTag,WerewolfPlayer>
Enclosing class:
WerewolfPlayer

public static class WerewolfPlayer.Serializer extends Object implements net.neoforged.neoforge.attachment.IAttachmentSerializer<net.minecraft.nbt.CompoundTag,WerewolfPlayer>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    read(@NotNull net.neoforged.neoforge.attachment.IAttachmentHolder holder, @NotNull net.minecraft.nbt.CompoundTag tag)
     
    net.minecraft.nbt.CompoundTag
    write(WerewolfPlayer attachment)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentSerializer

    read
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • read

      @NotNull public @NotNull WerewolfPlayer read(@NotNull @NotNull net.neoforged.neoforge.attachment.IAttachmentHolder holder, @NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Specified by:
      read in interface net.neoforged.neoforge.attachment.IAttachmentSerializer<net.minecraft.nbt.CompoundTag,WerewolfPlayer>
    • write

      public net.minecraft.nbt.CompoundTag write(WerewolfPlayer attachment)
      Specified by:
      write in interface net.neoforged.neoforge.attachment.IAttachmentSerializer<net.minecraft.nbt.CompoundTag,WerewolfPlayer>