JimHooks

object JimHooks

Static entry points that mixins (Java) call into. Kept dependency-light so the mixin classes don't need to know about Kotlin object instances.

Functions

Link copied to clipboard

An action-bar (overlay) message is being shown (Gui.setOverlayMessage). Cancellable.

Link copied to clipboard
fun onChat(formatted: String): Boolean

Incoming chat. Returns true if a script cancelled it (so the mixin can hide the message).

Link copied to clipboard
fun onEntityDeath(entity: Entity)

A living entity died (LivingEntity.die). Observe-only.

Link copied to clipboard

The player is sending a chat message (ClientPacketListener.sendChat). Cancellable.

Link copied to clipboard

An inbound packet (called on the netty thread by MixinConnection). Observe-only.

Link copied to clipboard

An outbound packet (called on the netty thread by MixinConnection). Observe-only.

Link copied to clipboard

A particle being spawned (ClientLevel). Observe-only.

Link copied to clipboard

A sound about to play (SoundEngine). Observe-only.