Interface SCDataAttachments
public interface SCDataAttachments
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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<net.minecraft.resources.ResourceLocation>> static final Supplier<net.neoforged.neoforge.attachment.AttachmentType<net.minecraft.resources.ResourceLocation>> -
Method Summary
Static MethodsModifier 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
-
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
-
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
-
-
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)
-