Interface SCLDataAttachments


public interface SCLDataAttachments
  • 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<Boolean>>
     
    static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<List<com.wdiscute.utils.MaybeStack>>>
     
  • 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
    • IN_FISHING_MINIGAME

      static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<Boolean>> IN_FISHING_MINIGAME
    • ITEMS_BEING_FISHED

      static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<List<com.wdiscute.utils.MaybeStack>>> ITEMS_BEING_FISHED
  • 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)