Class Locked

java.lang.Object
com.mrbysco.fac.attachment.Locked
All Implemented Interfaces:
net.neoforged.neoforge.attachment.IAttachmentSerializer<Boolean>

public class Locked extends Object implements net.neoforged.neoforge.attachment.IAttachmentSerializer<Boolean>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Locked
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Boolean
    read(@NotNull net.neoforged.neoforge.attachment.IAttachmentHolder holder, net.minecraft.world.level.storage.ValueInput input)
     
    boolean
    write(@NotNull Boolean locked, @NotNull net.minecraft.world.level.storage.ValueOutput output)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INSTANCE

      public static final Locked INSTANCE
  • Constructor Details

    • Locked

      public Locked()
  • Method Details

    • read

      @NotNull public @NotNull Boolean read(@NotNull @NotNull net.neoforged.neoforge.attachment.IAttachmentHolder holder, net.minecraft.world.level.storage.ValueInput input)
      Specified by:
      read in interface net.neoforged.neoforge.attachment.IAttachmentSerializer<Boolean>
    • write

      public boolean write(@NotNull @NotNull Boolean locked, @NotNull @NotNull net.minecraft.world.level.storage.ValueOutput output)
      Specified by:
      write in interface net.neoforged.neoforge.attachment.IAttachmentSerializer<Boolean>