类 AttachmentInternals
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentInternals
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private 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)
-
构造器详细资料
-
AttachmentInternals
private AttachmentInternals()
-
-
方法详细资料
-
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
-