API Reference
This page maps the Minecraft 26.1.2 MultiLoader API. Source links use the common/, fabric/ and neoforge/ layout of this branch. Classes marked internal in source are omitted unless they explain a public workflow.
Animatables and controllers
PAnimatable<T>defines animatable objects.PAnimationManager<T>owns regular and graph controller factories, live controllers, and the bound model.PAnimationController<T>plays aPRawAnimationorPAnimationGraph, exposes graph parameters, controls timing, and owns persistent Molang state.InstanceAnimationManager<T>,SingletonAnimationManager<T>, andAnimManagerKeyprovide per-instance and keyed state.ControllerStateisPLAY,PAUSE, orSTOP.
Animation data and graphs
PRawAnimationis a builder for staged playback sequences;PAnimationTypeselects once, hold, or cycle behavior.PAnimationGraph,PAnimationState,PAnimationTransition,PCondition, andPAnimationGraphRuntimeimplement graph states, blend spaces, overlays, transitions, and runtime state.PAnimationParametersstores graph numeric/boolean inputs and one-use triggers.PInterruptionPolicyis used by graph transitions;PTransitionInterruptionPolicyis used by player-animation activation crossfades.PAnimation,PBoneAnimation,PAnimationTrack<T>, andPKeyframe<T>represent parsed animation data.PAnimationChannelType<T>is the generic channel contract.PAnimationChannelsupplies vector and quaternion implementations; PulseLib registers position, rotation, and scale channel types.PInterpolationandPInterpolationTypecontrol keyframe interpolation.PBlendModeandPPoseBlendModecontrol pose blending.PPose,PModelPose, andPAnimationPoseResolverevaluate local and model-space poses.PRootMotionRuntimeandPRootMotionDeltaextract incremental root motion from an animation.PAnimationEvent,PAnimationEventType, andPAnimationEventDispatcherprovide typed sound, particle, camera-shake, locator-callback, and graph-parameter events.
Models and loaders
PModelDataidentifies canonical models throughblock(...),item(...),entity(...),entityLayer(...), anddirect(...)factories.PModel,PBone,PMesh,PMeshPrimitive, andPMaterialare raw data.PBakedModel,PBakedBone, andPBakedMeshare the baked runtime representation.PMeshRenderContextandPMeshRenderResolvercustomize render type, colour, lighting, overlay, deformation, texture, emissive state, and alpha mode for each baked mesh.PMeshRenderMaterialresolves those material overrides.PModelCachemanages loaders, resource reloads, baking, and cache cleanup.PModelLoaderis the extension point.- glTF classes are in
data.gltf:PGltfModelLoader,PGltfModelParser, andPGltfAnimationEventSidecarParser. - Gecko and Molang classes are in
data.gecko:PGeckoModelLoader,PGeckoModelParser,PGeckoAnimationEventParser, andMolangParser.
Rendering, textures, and attachments
PRenderer<T, RS>,PBlockRenderer<T, RS>,PItemRenderer<T, RS>,PEntityRenderer<T, RS>, andPEntityRenderLayer<T, RS>are renderer entry points.PRenderTypesprovides compatible triangle render types;PRenderQueuebatches their submissions.PModelResource,PTextureReference,PResourceCache,RuntimeLoader, andPLibSpriteMetadatamanage model resources, texture-reference normalization, the runtime texture atlas, and its emissive/alpha metadata.PAlphaModeandPTextureAlphaClassifierselect opaque, cutout, or translucent rendering.- Attachments are centered on
PLivingAttachmentDefinition,PLivingAttachments,PAttachmentBinding, andPAttachmentAnchor.
Player animations
PPlayerAnimationDefinitionconfigures bindings, masks, blend modes, weights, activation crossfades, cycle synchronization, controllers, Molang queries, animation-owned mesh deformers throughBuilder.deform(...), and opt-in first-person pose integration throughBuilder.firstPerson(...),Builder.itemRenderPolicy(...), andBuilder.itemVisibility(...).PPlayerAnimations,PPlayerAnimationHandle, andPPlayerAnimationInstanceexpose runtime registration and per-player state.PPlayerPart,PPlayerAnimationMask,PPlayerAnimationBlendMode, andPPlayerAnimationWeightdefine how a player pose is applied.PPlayerAnimationAnchorsprovides the reserved first-person camera and physical-item anchors.PPlayerFirstPersonSettingsenables pose integration and selects animated or vanilla camera handling throughPFirstPersonCameraMode.PFirstPersonRenderMode,PFirstPersonArmPose, andPFirstPersonItemPoserepresent the resulting arm and item commands. The publicPPlayerAnimationDefinition.ItemRenderPolicyandItemVisibilityPolicycontrol first-person held-item visibility.PPlayerAnimatedAttachmentRenderer, registered inIPulseClientPlugin.registerAnimatedAttachments(PAnimatedAttachmentRegistrar), renders custom content at a sampledPPlayerAnimationAnchorin third or first person.PPlayerAnimationDeformer,PPlayerAnimationDeformerValueSource, andPPlayerAnimationDeformerContextattach a deformer stack to a definition and sample channels from its player/controller context.
Mesh deformers
PMeshDeformer,PDeformerInstance,PDeformerStack, andPChannelReferencedefine and evaluate reusable deformations.- Built-in operations are
PBendDeformer,PHingeDeformer,PTwistDeformer,PStretchDeformer,PSquashDeformer,PTaperDeformer, andPWaveDeformer. PMeshDeformation,PGpuDeformedMeshBuffers, andPGpuDeformerBuffersdrive supported shader-side deformation and optional subdivision. Custom prepared operations use CPU dynamic geometry throughPDeformedMeshBuffers.PPlayerMeshDeformersis the independent player-binding API.
Render plans and native boundaries
PGeometryData,PDynamicGeometry,PInstanceHeader,PFrameCompiler<S>,PRenderPlan,PRenderFrame, andPRenderExecutorform the canonical submission/plan contract. See Render types and queue.PGlDynamicGeometry,PGlResourceRegistry, andPGlMultiDrawExecutorprovide the native backend. Canonicallegacy.Gl*facades delegate to these resources and streams.PTransparencyModechooses ordinary alpha or supported OIT separately from the native material.PRenderContextsisolates GUI and offscreen execution from world queues.- Minecraft uses
Identifier,rendertype.RenderType, immutableRenderPipeline, andGuiGraphicsExtractor. Item renderers implementSpecialModelRenderer; renderer classes carry an explicit render-state generic in addition to the animatable type.PItemAnimatable, BEWLR and mutableShaderInstanceintegrations are retired. PLibHelper.renderModelInGui(...)extracts an animated model into the native picture-in-picture GUI path. See GUI rendering.
Events and helpers
- Automatic plugins expose scoped type, model, attachment and player-animation registrars through
@PulsePlugin,IPulseCommonPluginandIPulseClientPlugin. PLibHelper,PLibCodecs, andPLibDatabaseare common integration helpers.