ObserverLib مود لماينكرافت 1.21.1, 1.18.2
مود مكتبة يتيح المراقبة العامة للمناطق.
حول مود ObserverLib
ObserverLib هو مود مكتبة، يمكن استخدامه لمراقبة تغييرات الكتل بشكل موثوق في منطقة قد تكون كبيرة جدًا مع تأثيرات ضئيلة جدًا على الأداء.
المكتبة متاحة للاستخدام العام وتركز بشكل أساسي على استخدامها في Astral Sorcery من الإصدار 1.13+.
في جوهره، يسمح لك هذا المود بتسجيل Observer - وما يراقبه في النهاية يعود إلى التنفيذ - لمنطقة محددة. التغييرات التي تحدث في العالم داخل منطقته المراقبة تُمرَّر إلى Observer. يمكن للمراقب بعد ذلك أن يقرر بنفسه ماذا تعني هذه التغييرات؛ سواء كانت تُبطل أو تُثبت حالة المراقب. فمثلًا، إذا كان الهيكل الآن مكتملًا أم لا.
الاستدعاء الفعلي للتحقق مما إذا كانت الأمور صالحة أم لا هو الاستعلام عن ChangeSubscriber في الموضع المعني ثم السؤال عما إذا كانت حالته الحالية صالحة أم لا.
ما الذي يجعل هذا أفضل من مجرد التحقق المتكرر من منطقة كبيرة بشكل عام؟ ماذا يحدث إذا كانت المنطقة التي تريد مراقبتها أكبر من قطعة أرض؟ ماذا يحدث إذا أصبحت القطعة الأخرى التي عليك التحقق منها غير محمّلة؟ لكي يكون متأكدًا من أن شيئًا لم يتغير وأن الهيكل سليم، سيتعين على المود تحميل تلك القطعة والتحقق من الكتلة. قد تكون هذه مشكلة إذا تسبب ذلك في الكثير من تحميل وإلغاء تحميل القطع. يضمن تنفيذ ObserverLib أنه يمكنك أن تطمئن، وأن التغييرات المُمرَّرة إلى تنفيذك لـ notifyChange تحتوي على كل المعلومات اللازمة للتأكد من أن ما تراقبه لا يزال صالحًا أم لا.
يمكن رؤية مثال على تنفيذ للتحقق مما إذا كان الهيكل مبنيًا بشكل صحيح أم لا هنا. بدلًا من التحقق دائمًا من كل مكونات الهيكل، يحرص الفحص على تتبع المواضع غير الصحيحة أو غير المتطابقة ويعمل فقط بناءً على حالات عدم التطابق مع ما يتوقعه المطابق.
إذا كنت مهتمًا باستخدامه في مشاريعك الخاصة، يمكنك الحصول عليه من maven هنا: https://maven.hellfiredev.net/hellfirepvp/observerlib/observerlib/
لمزيد من التوضيحات والتفاصيل، لا تتردد في السؤال على ديسكورد AstralSorcery: https://discord.gg/q37VRcT
كيفية تثبيت ObserverLib
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.15.2–1.21.1 on Forge or NeoForge automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Forge or NeoForge
The loader must match the game version of the mod file, for example Minecraft 1.21.1. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file observerlib-1.10.3.jar (112 KB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.
Launch the loader profile
Open “Mods” in the main menu: ObserverLib should be in the list.
Minecraft 1.21.1 runs on Java 21: with a different Java version the game may close right after launch.
الإصدارات
مع المتطلبات
| Minecraft | المشغّل | الملف | التاريخ | الإجراءات |
|---|---|---|---|---|
| 1.21.1 | NeoForge | ObserverLib-1.21.1-1.10.3.jar112 KB | ||
| 1.18.2 | Forge | ObserverLib-1.18.2-1.7.1.jar143 KB | ||
| 1.18.2 | Forge | ObserverLib-1.18.2-1.6.0.jar144 KB | ||
| 1.15.2 | — | ObserverLib-1.15.2-1.2.0.jar134 KB |
الأسئلة الشائعة
Which Minecraft versions does ObserverLib work on?
There are files for 1.21.1, 1.18.2, 1.15.2. The newest is 1.21.1.
Is ObserverLib for Forge or Fabric?
There are files for Forge: 1.18.2 and for NeoForge: 1.21.1. There are no files for Fabric: a mod for another loader will not start.
Does ObserverLib need other mods?
The author lists no required dependencies: the Forge or NeoForge loader is enough.
Which Java does ObserverLib need?
Minecraft 1.21.1 runs on Java 21. If the game closes right after launch, the usual cause is the wrong Java version in the profile settings.
Where can I download ObserverLib safely?
On this page: the file observerlib-1.10.3.jar (112 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: f8b357513c22b62f0cdbe0259305620541a45fa2.
التقييمات
كن أول من يقيّم ObserverLib

