-
Notifications
You must be signed in to change notification settings - Fork 0
26.1.2 API and Addon Integration
π Repository Source Disclaimer: The documentation in this Wiki reflects the current source code state in the repository, which may include recent unreleased commits or developmental features ahead of public release builds on CurseForge and Modrinth.
| API Infobox | Technical Parameters |
|---|---|
| Player State Manager | net.instantgratification.magnet.MagnetPlayerState |
| Entity Interface | net.instantgratification.magnet.IMagnetEntity |
| Core Movement Facade | net.instantgratification.magnet.MagnetMovement |
| GameRule API | net.dasik.social.api.gamerule.DynamicGameRuleManager |
| Vision API | net.dasik.social.api.vision.PlayerVisionTracker |
Third-party mods and Instant Gratification companion addons can interface directly with Magnet, Let me get that! in Minecraft 26.1.2.
Query or modify player magnet preferences directly via static helper methods:
package net.instantgratification.magnet;
public class MagnetPlayerState {
public static boolean isMagnetEnabled(Player player);
public static void setMagnetEnabled(Player player, boolean enabled);
public static boolean toggleMagnet(Player player);
}// Check if player has magnet active
if (MagnetPlayerState.isMagnetEnabled(player)) {
// Custom logic...
}
// Programmatically disable magnet
MagnetPlayerState.setMagnetEnabled(player, false);Cast any Entity instance to IMagnetEntity to manipulate its phase shifting or magnetization flags:
package net.instantgratification.magnet;
public interface IMagnetEntity {
void ig$setMagnetNoClip();
boolean ig$isMagnetNoClip();
void ig$setMagnetized();
boolean ig$isMagnetized();
}Programmatically trigger item or XP pulling towards a player:
public static void pull(Entity entity, Player player, boolean shouldSpawnParticles);
Magnet, Let me get that! β’ Developed by Dasik (Rifaditya) β’ Licensed under GNU GPLv3
Documentation reflects active repository source code. Features may precede public releases on CurseForge/Modrinth.
- π 26.2 Overview
- Gameplay Mechanics
- Administration & Config
- Technical & Development
- π 26.1.2 Overview
- Gameplay Mechanics
- Administration & Config
- Technical & Development