MonitoringMinecraft MonitoringMinecraft

Piggy Lib

Мод Fabric

Библиотека-зависимость для модов Piggy в Майнкрафт.

213 скачиваний 0 подписчиков
Оцените первым

build release

Piggy Lib

A shared library providing the core infrastructure and high-performance utilities for all Piggy mods. It centralizes common systems to ensure consistency, stability, and anti-cheat compliance.


⚡ Central Piggy Action Queue

The most critical component of the Piggy suite. All player interactions (clicking slots, placing blocks, using items) must be routed through this queue.

  • Stateful Actions: Interactions are wrapped in IAction objects (e.g., InteractBlockAction, MoveItemAction).
  • Verification over Assumption: Actions are not considered "done" when the packet is sent. They use an onExecute phase to trigger and a verify phase to poll for success (e.g., checking if an item actually moved to the destination slot).
  • Rate Limiting & CPS: A global Clicks-Per-Second (CPS) limiter follows configurable server rules. Routine actions (sorting) are throttled, while life-saving actions (MLG) use ActionPriority.HIGHEST to bypass the limiter.
  • Packet Bundling: Groups related interactions into single-tick executions when safe, minimizing network overhead.

📊 Performance & Telemetry

PerfMonitor

A robust utility for tracking server-side health and network conditions.

  • Dynamic TPS Tracking: Calculates real-time Server Ticks Per Second.
  • Latency Calculation: Provides stable, smoothed ping data used by piggy-build for preemptive action triggering.

Meta-Action Sessions

A sophisticated telemetry engine for diagnosing complex failures.

  • Contextual Logging: Captures inventory states, player positions, and world metadata before and after actions.
  • Forensic Reports: Generates detailed JSON/Markdown reports for failed operations (like a failed inventory sort or a missed MLG).
  • Rich Formatting: Uses PiggyTelemetryFormatter to provide interactive, clickable chat components for administrative review.

🎒 Inventory API

InventorySearcher

A modular, high-performance engine for finding items across multiple containers.

  • Condition-Based Search: Filter items by Type, Tag, NBT, or custom predicates.
  • Multi-Slot Resolution: Handles complex searches involving split stacks or "mega-stacks" (>64 items).

🎨 UI & Configuration

  • Unified Radial Menus: Standardized GenericRadialMenuScreen for consistent selection interfaces.
  • YACL Config Wrappers: A simplified factory pattern for building beautiful, categorized configuration screens using Yet Another Config Lib.
  • Anti-Cheat Feedback: Hud overlays and floating notifications that inform players when features are restricted by the server.

Dependencies

License

CC0-1.0

Смотри также

Похожие подборки моды — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

Battle Mine
Battle Mine Java + BE
5 онлайн
1.21.4 — 26.2 версия
ОТКРЫТИЕ! 20 + различных ивентов, 10+ различных боссов, много интересных механник
ReallyWorld КОПИЯ ВСЕМ АДМИНКА
5 онлайн
1.16.5 — 1.21.1 версия
ПвП, Гриферство, бесплатный донат Dragon, AIR DROP
EnergyMC
8 онлайн
1.20.5 — 26.2 версия
🔥 Гибрид | ⚔️ Кланы | 🏰 Рейды | 🤺 Дуэли
Minestory
10 онлайн
1.21 — 26.2 версия
Выживание • Экономика • Кланы • Приваты • Ивенты • PVP • Работа
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.4. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат