-
Notifications
You must be signed in to change notification settings - Fork 0
Dynamic Enchantments and Vision
Rifa edited this page Aug 9, 2026
·
1 revision
| Component | Class |
|---|---|
| Enchantment Manager | net.dasik.social.api.enchantment.DynamicEnchantmentManager |
| Vision Tracker | net.dasik.social.api.vision.PlayerVisionTracker |
| Vision Query Method | PlayerVisionTracker.canSee(ServerPlayer player, Entity target) |
| Listener Registration | PlayerVisionTracker.registerListener(String modId, double radius) |
PlayerVisionTracker performs efficient spatial sweep raycasting to determine whether entities are within a player's line of sight without causing server lag.
// Register listener for 16-block vision sweeps
PlayerVisionTracker.registerListener("mymod", 16.0D);
// Check if player can see target entity
boolean isVisible = PlayerVisionTracker.canSee(serverPlayer, targetEntity);Allows mods to evaluate dynamic enchantment effects or inject temporary runtime enchantment levels onto entity armor/weapons without mutating persistent NBT tags.
Dasik Library | Social AI & Infrastructure Engine
Developed with โค๏ธ by Dasik (Rifaditya) | Licensed under LGPL-3.0
๐ Documentation reflects active repository source code state.
- Hive Mind Social System
- Social Scheduler & Events
- Animal Genetics Engine
- Genetics API & Pedigree
- Genetics Loot Modifiers
- Leader Follower & Flocking
- Dynamic GameRules Manager
- GameRule Codec & Serialization
- Client GameRule & GUI Helpers
- Dynamic Enchantments & Vision
- Stochastic & Math Utilities
- Stale Attribute Purging & Scale
- ModVersionGuard & Startup Safety
- Developer Setup & Building
- Architecture & Package Layout
- Mixin Reference & Hooks
- Behavior Profiles & Conditions
- Consumer Mods Integration Guide