Class SCDataAttachments
java.lang.Object
com.wdiscute.starcatcher.io.SCDataAttachments
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tget(net.minecraft.world.entity.Entity holder, Supplier<net.neoforged.neoforge.attachment.AttachmentType<T>> attachmentType) static <T> Tget(net.minecraft.world.entity.Entity holder, net.neoforged.neoforge.attachment.AttachmentType<T> attachmentType) static voidregister(net.neoforged.bus.api.IEventBus eventBus) static <T> voidremove(net.minecraft.world.entity.Entity holder, Supplier<net.neoforged.neoforge.attachment.AttachmentType<T>> attachmentType) static <T> voidremove(net.minecraft.world.entity.Entity holder, net.neoforged.neoforge.attachment.AttachmentType<T> attachmentType) static <T> voidset(net.minecraft.world.entity.Entity holder, Supplier<net.neoforged.neoforge.attachment.AttachmentType<T>> attachmentType, T data) static <T> voidset(net.minecraft.world.entity.Entity holder, net.neoforged.neoforge.attachment.AttachmentType<T> attachmentType, T data)
-
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)
-