Class AttachmentInternals
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentInternals
-
Constructor Summary
Constructors -
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 voidcopyChunkAttachmentsOnPromotion(HolderLookup.Provider provider, AttachmentHolder.AsField from, AttachmentHolder.AsField to) static voidcopyEntityAttachments(Entity from, Entity to, boolean isDeath) Do not call directly, useIEntityExtension.copyAttachmentsFrom(Entity, boolean).static voidstatic voidonPlayerClone(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
-