Interface AttachmentEvents.StartTracking

Enclosing class:
AttachmentEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface AttachmentEvents.StartTracking
A player starts receiving a holder's synced data (server side): they started seeing the entity or received the block entity's chunk (for holders carrying attachments at that moment), or, for their own attachments, joined, respawned or changed dimension (always). Fired before the values are sent.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onStartTracking(AttachmentHolder holder, net.minecraft.server.level.ServerPlayer player)
     
  • Method Details

    • onStartTracking

      void onStartTracking(AttachmentHolder holder, net.minecraft.server.level.ServerPlayer player)