Class GuideRegistry

java.lang.Object
net.ixdarklord.folios.internal.core.GuideRegistry

public final class GuideRegistry extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.ixdarklord.coolcatcore.api.registry.RegistryEntry<GuideBookItem>
     
    static final net.ixdarklord.coolcatcore.api.attachment.Attachment<GuideRecord>
    What has been done with this copy of a book that keeps its own ("progress": "book"): its marks go with it.
    static final String
    The book a guide book item is, by id: {folios_book:"mymod:handbook"}.
    static final net.ixdarklord.coolcatcore.api.attachment.Attachment<Map<net.minecraft.resources.ResourceLocation,GuideRecord>>
    What a player has done with each book (see GuideRecord): saved with them, sent only to them, kept when they die.
    static final String
    On a guide book while its holder reads it in their hands: others see them hold it up open.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isReading(net.minecraft.world.item.ItemStack stack)
     
    static void
    setReading(net.minecraft.world.item.ItemStack stack, boolean reading)
     

    Methods inherited from class java.lang.Object

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

    • GUIDE_BOOK

      public static final String GUIDE_BOOK
      The book a guide book item is, by id: {folios_book:"mymod:handbook"}.
      See Also:
    • READING

      public static final String READING
      On a guide book while its holder reads it in their hands: others see them hold it up open. Taken off a player's book when they stop (or it leaves their hand); on an armor stand's, it stays, so it can be shown reading.
      See Also:
    • PLAYER_PROGRESS

      public static final net.ixdarklord.coolcatcore.api.attachment.Attachment<Map<net.minecraft.resources.ResourceLocation,GuideRecord>> PLAYER_PROGRESS
      What a player has done with each book (see GuideRecord): saved with them, sent only to them, kept when they die.
    • BOOK_PROGRESS

      public static final net.ixdarklord.coolcatcore.api.attachment.Attachment<GuideRecord> BOOK_PROGRESS
      What has been done with this copy of a book that keeps its own ("progress": "book"): its marks go with it.
    • BOOK_ITEM

      public static final net.ixdarklord.coolcatcore.api.registry.RegistryEntry<GuideBookItem> BOOK_ITEM
  • Method Details

    • isReading

      public static boolean isReading(net.minecraft.world.item.ItemStack stack)
    • setReading

      public static void setReading(net.minecraft.world.item.ItemStack stack, boolean reading)