TimedScriptStateManager

public final class TimedScriptStateManager

Server-thread owner of reversible script and skill mutations and their expiry tasks.

Functions

Link copied to clipboard
public static void applyInvulnerability(Object owner, LivingEntity target, boolean value, int durationTicks)
Link copied to clipboard
public static void applyOwned<T>(Object owner, UUID targetId, String property, T value, int durationTicks, Supplier<T> currentValue, Consumer<T> writer)
Replaces this owner's contribution; a zero duration lasts until releaseOwner.
Link copied to clipboard
public static void discardWorld(World world)
Drops the state of an unloading world's entities without writing to them.
Link copied to clipboard
public static void releaseOwner(Object owner)
Link copied to clipboard
public static boolean releaseProperty(Object owner, UUID targetId, String property)