Expand description
Yog runtime — the native library loaded by the Fabric host.
Exposes JNI entry points (Java_dev_yog_NativeBridge_*) that the host calls,
and a stable C ABI (YogApi / YogServer) that mods program against.
Architecture:
YogServer— a#[repr(C)]table of standalone JNI-calling functions that mods call to mutate the world.YogApi— a#[repr(C)]table of registration functions; mods call them insideyog_mod_registerto subscribe to events.RuntimeHandlers— the runtime’s internal event/handler storage. Filled duringnativeInit(write), read-only after. The scheduler sub- state uses an innerMutexfor safe addition during event dispatch.
Structs§
Functions§
- Java_
dev_ yog_ Native Bridge_ native Client Packet Channels - Java_
dev_ yog_ Native Bridge_ native Command Names - Java_
dev_ yog_ Native Bridge_ native Content - Everything the host registers as one Yog Data blob (see
content_blob), built on the first call and kept. - Java_
dev_ yog_ Native Bridge_ native Generate Chunk - Java_
dev_ yog_ Native Bridge_ native GlInit - Java_
dev_ yog_ Native Bridge_ native HotReload - Java_
dev_ yog_ Native Bridge_ native Init - Java_
dev_ yog_ Native Bridge_ native Item Text - Java_
dev_ yog_ Native Bridge_ native Machine Craft playertook machinedef’s result, made byrecipeofitems(the ingredients still in): whether it may — then the mods take their share.- Java_
dev_ yog_ Native Bridge_ native Machine Result - What machine
defatx y zmakes ofitems(\n-joined, by slot):recipe\nresult\ncount, or null. - Java_
dev_ yog_ Native Bridge_ native OnAdvancement - Java_
dev_ yog_ Native Bridge_ native OnAttack Entity - Java_
dev_ yog_ Native Bridge_ native OnBlock Break - Java_
dev_ yog_ Native Bridge_ native OnBlock Break Pre - Java_
dev_ yog_ Native Bridge_ native OnChat - Java_
dev_ yog_ Native Bridge_ native OnChat Pre - Java_
dev_ yog_ Native Bridge_ native OnClient Packet - Java_
dev_ yog_ Native Bridge_ native OnClient Tick - Java_
dev_ yog_ Native Bridge_ native OnCommand - Java_
dev_ yog_ Native Bridge_ native OnContainer Close - Java_
dev_ yog_ Native Bridge_ native OnContainer Open - Java_
dev_ yog_ Native Bridge_ native OnContainer Open Pre - Java_
dev_ yog_ Native Bridge_ native OnEntity Damage - Java_
dev_ yog_ Native Bridge_ native OnEntity Damage Pre - Java_
dev_ yog_ Native Bridge_ native OnEntity Death - Java_
dev_ yog_ Native Bridge_ native OnEntity Interact - Java_
dev_ yog_ Native Bridge_ native OnEntity Interact Pre - Java_
dev_ yog_ Native Bridge_ native OnEntity Spawn - Java_
dev_ yog_ Native Bridge_ native OnEntity Spawn Pre - Java_
dev_ yog_ Native Bridge_ native OnExplosion - Java_
dev_ yog_ Native Bridge_ native OnExplosion Pre - Java_
dev_ yog_ Native Bridge_ native OnHud Render - Java_
dev_ yog_ Native Bridge_ native OnItem Craft - Java_
dev_ yog_ Native Bridge_ native OnItem Insert - A hopper or dropper offers an item to a block that accepts items:
simulateasks whether it would take it (Pre), else it takes it (Post). - Java_
dev_ yog_ Native Bridge_ native OnItem Pickup - Java_
dev_ yog_ Native Bridge_ native OnItem Pickup Pre - Java_
dev_ yog_ Native Bridge_ native OnKey Press - Java_
dev_ yog_ Native Bridge_ native OnPacket - Java_
dev_ yog_ Native Bridge_ native OnPlace Block - Java_
dev_ yog_ Native Bridge_ native OnPlace Block Pre - Java_
dev_ yog_ Native Bridge_ native OnPlayer Death - Java_
dev_ yog_ Native Bridge_ native OnPlayer Death Pre - Java_
dev_ yog_ Native Bridge_ native OnPlayer Join - Java_
dev_ yog_ Native Bridge_ native OnPlayer Leave - Java_
dev_ yog_ Native Bridge_ native OnPlayer Move - Java_
dev_ yog_ Native Bridge_ native OnPlayer Respawn - Java_
dev_ yog_ Native Bridge_ native OnProjectile Hit - Java_
dev_ yog_ Native Bridge_ native OnProjectile HitPre - Java_
dev_ yog_ Native Bridge_ native OnScreen Close - Java_
dev_ yog_ Native Bridge_ native OnScreen Open - Java_
dev_ yog_ Native Bridge_ native OnServer Started - Java_
dev_ yog_ Native Bridge_ native OnServer Stopping - Java_
dev_ yog_ Native Bridge_ native OnTick - Java_
dev_ yog_ Native Bridge_ native OnUse Block - Java_
dev_ yog_ Native Bridge_ native OnUse Block Pre - Java_
dev_ yog_ Native Bridge_ native OnUse Item - Java_
dev_ yog_ Native Bridge_ native OnUse Item Pre - Java_
dev_ yog_ Native Bridge_ native OnWorld Render - Java_
dev_ yog_ Native Bridge_ native Packet Channels - Java_
dev_ yog_ Native Bridge_ native Typed Command Schemas