Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Interaction event is too late

Đang mở
#216 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
java
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Start by reading the linked InteractionEventHooks.java file and trace when the listed interaction callbacks run relative to packet sending on the client and handling on the server. Compare that flow with the Forge behavior described in the issue. Done means a client side mod can cancel the interaction before the server executes it, while preserving the listed callbacks.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

In fabric, AttackEntityCallback, AttackBlockCallback, UseBlockCallback, UseItemCallback, UseEntityCallback are invoked before client sends packet to server and the client is able to cancel the packet.

In forge, these events are invoked after the packet is sent, so client side only mod isn't able to cancel the event entirely: server side code is still executed, only client side code can be skipped.

https://github.com/Sinytra/ForgifiedFabricAPI/blob/1.21.1/fabric-events-interaction-v0/src/main/java/net/fabricmc/fabric/impl/event/interaction/InteractionEventHooks.java

Ngôn ngữ chính
Java
Star
181
Fork
41
Merge trung bình
10 ngày 5 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Sinytra/ForgifiedFabricAPI

Tất cả issue của Sinytra/ForgifiedFabricAPI

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.