Class SCDataAttachments

java.lang.Object
com.wdiscute.starcatcher.io.SCDataAttachments

public class SCDataAttachments extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<FishingBobAttachment>>
     
    static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<FishingGuideAttachment>>
     
    static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<net.minecraft.resources.Identifier>>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> T
    get(net.minecraft.world.entity.Entity holder, Supplier<net.neoforged.neoforge.attachment.AttachmentType<T>> attachmentType)
     
    static <T> T
    get(net.minecraft.world.entity.Entity holder, net.neoforged.neoforge.attachment.AttachmentType<T> attachmentType)
     
    static void
    register(net.neoforged.bus.api.IEventBus eventBus)
     
    static <T> void
    remove(net.minecraft.world.entity.Entity holder, Supplier<net.neoforged.neoforge.attachment.AttachmentType<T>> attachmentType)
     
    static <T> void
    remove(net.minecraft.world.entity.Entity holder, net.neoforged.neoforge.attachment.AttachmentType<T> attachmentType)
     
    static <T> void
    set(net.minecraft.world.entity.Entity holder, Supplier<net.neoforged.neoforge.attachment.AttachmentType<T>> attachmentType, T data)
     
    static <T> void
    set(net.minecraft.world.entity.Entity holder, net.neoforged.neoforge.attachment.AttachmentType<T> attachmentType, T data)
     

    Methods inherited from class Object

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

    • FISHING_BOB

      public static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<FishingBobAttachment>> FISHING_BOB
    • FISHING_GUIDE

      public static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<FishingGuideAttachment>> FISHING_GUIDE
    • TACKLE_SKIN

      public static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<net.minecraft.resources.Identifier>> TACKLE_SKIN
  • Constructor Details

    • SCDataAttachments

      public SCDataAttachments()
  • Method Details

    • remove

      public static <T> void remove(net.minecraft.world.entity.Entity holder, Supplier<net.neoforged.neoforge.attachment.AttachmentType<T>> attachmentType)
    • remove

      public static <T> void remove(net.minecraft.world.entity.Entity holder, net.neoforged.neoforge.attachment.AttachmentType<T> attachmentType)
    • set

      public static <T> void set(net.minecraft.world.entity.Entity holder, Supplier<net.neoforged.neoforge.attachment.AttachmentType<T>> attachmentType, T data)
    • set

      public static <T> void set(net.minecraft.world.entity.Entity holder, net.neoforged.neoforge.attachment.AttachmentType<T> attachmentType, T data)
    • get

      public static <T> T get(net.minecraft.world.entity.Entity holder, Supplier<net.neoforged.neoforge.attachment.AttachmentType<T>> attachmentType)
    • get

      public static <T> T get(net.minecraft.world.entity.Entity holder, net.neoforged.neoforge.attachment.AttachmentType<T> attachmentType)
    • register

      public static void register(net.neoforged.bus.api.IEventBus eventBus)