Interface SCDataAttachments


public interface SCDataAttachments
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.neoforged.neoforge.registries.DeferredRegister<net.neoforged.neoforge.attachment.AttachmentType<?>>
     
    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<List<Message>>>
     
    static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<List<Modifier>>>
     
    static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<net.minecraft.resources.ResourceLocation>>
     
    static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<net.minecraft.resources.ResourceLocation>>
     
  • Method Summary

    Static Methods
    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)
     
  • Field Details

    • ATTACHMENT_TYPES

      static final net.neoforged.neoforge.registries.DeferredRegister<net.neoforged.neoforge.attachment.AttachmentType<?>> ATTACHMENT_TYPES
    • FISHING_BOB

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

      static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<List<Message>>> MESSAGES_CAUGHT
    • TRACKED_FISH

      static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<net.minecraft.resources.ResourceLocation>> TRACKED_FISH
    • FISHING_GUIDE

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

      static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<net.minecraft.resources.ResourceLocation>> TACKLE_SKIN
    • MODIFIERS

      static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<List<Modifier>>> MODIFIERS
  • Method Details

    • remove

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

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

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

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

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

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

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