MindHost

public interface MindHost

Version-independent seam for one logical mind session. A session may outlive its native body across chunk unloads, carrier replacement and phase changes.

Functions

Link copied to clipboard
Link copied to clipboard
public MindHandle open(UUID logicalOwner, MindProgram program)
public abstract MindHandle open(UUID logicalOwner, MindProgram program, MindPersistentState restoredState)
Link copied to clipboard
public abstract Optional<MindBodyRehydration> rehydrateBody(LivingEntity carrier)
Reattaches the Mind session state stored on a carrier restored by Minecraft.
Link copied to clipboard
public MobBody spawnBody(Location location)
Creates the default grounded carrier.
public MobBody spawnBody(Location location, MindBodyProfile profile)
Creates a carrier using the requested native movement and physical profile.
public abstract MobBody spawnBody(Location location, MindBodyProfile profile, Consumer<MobBody> preparation)
Prepares the marked carrier before publishing its CreatureSpawnEvent.
Link copied to clipboard
public abstract void tick()
Advances every attached Mind session once on the server thread.