Class AttachmentInternals
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentInternals
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <H extends AttachmentHolder>
voidcopyAttachments
(HolderLookup.Provider provider, H from, H to, Predicate<AttachmentType<?>> filter) Copy some attachments to another holder.static void
copyChunkAttachmentsOnPromotion
(HolderLookup.Provider provider, AttachmentHolder.AsField from, AttachmentHolder.AsField to) static void
copyEntityAttachments
(Entity from, Entity to, boolean isDeath) Do not call directly, useIEntityExtension.copyAttachmentsFrom(Entity, boolean)
.static void
static void
onPlayerClone
(PlayerEvent.Clone event)
-
Constructor Details
-
AttachmentInternals
private AttachmentInternals()
-
-
Method Details
-
copyAttachments
private static <H extends AttachmentHolder> void copyAttachments(HolderLookup.Provider provider, H from, H to, Predicate<AttachmentType<?>> filter) Copy some attachments to another holder. -
copyChunkAttachmentsOnPromotion
public static void copyChunkAttachmentsOnPromotion(HolderLookup.Provider provider, AttachmentHolder.AsField from, AttachmentHolder.AsField to) -
copyEntityAttachments
Do not call directly, useIEntityExtension.copyAttachmentsFrom(Entity, boolean)
. -
onPlayerClone
-
onLivingConvert
-