Reference
API reference
Every public type plugins and mods build against, in Obsidian.API and Obsidian.API.Client, with the documentation written in their code. Read from c0e9adc, 12 November 2026.
No types match.
Obsidian.API
- AdvancementProgress record Vanilla's AdvancementProgress.
- AdvancementRequirements record Vanilla's AdvancementRequirements.
- AdvancementType enum Vanilla's AdvancementType.
- Angle struct An angle packed into one byte, in 256ths of a turn, as the protocol sends entity rotations in spawn, move, look and head rotation packets.
- ArgumentParserAttribute class
- ArgumentSignature record struct
- Attachment enum
- AttributeModifierOperation enum Vanilla's AttributeModifier.Operation.
- Axis enum
- BannerPatternLayer record
- BaseArgumentParser class
- BaseArgumentParser<T> class
- BaseContainer class
- BaseExecutionCheckAttribute class Decides whether a sender may run a command. Checks on a group also apply to its subcommands, and checks on a command to all of its overloads.
- BaseSuggestionProviderAttribute class Supplies suggestions for one command parameter. Subclass it for suggestions computed at typing time, such as names of things that exist on the server; use SuggestionsAttribute for a fixed list.
- BitSet class
- BlockFace enum
- BlockFaceExtensions class
- BlockHalf enum
- BlockInteraction enum
- BlockStateArgument record A block and some of its properties as a command names them, like minecraft:oak_stairs[facing=east].
- BlockStateProperty record
- BossEventOperationType enum Vanilla's ClientboundBossEventPacket.OperationType.
- BoundingBox struct
- ChatColor record struct
- ChatMessage record
- ChatVisibility enum Vanilla's ChatVisiblity.
- ChestType enum
- ChunkGenStage enum
- ClickAction enum
- ClickComponent class
- ClickComponentValue interface
- ClickType enum Vanilla's ContainerInput.
- ClientboundLevelChunkPacketData record Vanilla's ClientboundLevelChunkPacketData.
- ClientCommandAction enum Vanilla's ServerboundClientCommandPacket.Action.
- ClientInformation record Vanilla's ClientInformation.
- ClientState enum
- ClientSuggestionsAttribute class Has the client suggest values for a command parameter with one of its own suggestion providers, instead of asking the server.
- ClockNetworkState record Vanilla's ClockNetworkState.
- CollisionRule enum
- CommandAttribute class
- CommandBlockEntityMode enum Vanilla's CommandBlockEntity.Mode.
- CommandContext class
- CommandContextAttribute class
- CommandGroupAttribute class
- CommandInfoAttribute class
- CommandIssuers enum
- CommandOverloadAttribute class Marks a method as another overload of the CommandAttribute method with the same name in its module.
- CommandSuggestionsEntry record Vanilla's ClientboundCommandSuggestionsPacket.Entry.
- CommonPlayerSpawnInfo record struct
- ComparatorMode enum
- ConfiguredFeatureAttribute class
- ConfiguredFeatureClassAttribute class
- ConfiguredFeaturePropertyAttribute class
- Container class
- ContainmentType enum
- CookingBookCategory enum
- CopperGolemPose enum
- CraftingBookCategory enum
- CreakingHeartState enum
- CriterionProgress record Vanilla's CriterionProgress.
- CustomChatCompletionsAction enum Vanilla's ClientboundCustomChatCompletionsPacket.Action.
- DamageEffects enum
- DamageScaling enum
- DataComponentType enum
- DataKept enum
- DeathLocation record struct
- DeathMessageType enum
- DensityFunctionAttribute class
- Difficulty enum Vanilla's Difficulty.
- Dimension enum
- DisplaySlot enum The position of the scoreboard. 0: list, 1: sidebar, 2: below name, 3 - 18: team specific sidebar, indexed as 3 + team color.
- DisplayType enum
- DraggingState enum
- Dye enum
- EitherHolder<TValueA, TValueB> record struct
- EmptyArgumentParser class
- EntityAnchorArgumentAnchor enum Vanilla's EntityAnchorArgument.Anchor.
- EntityBitMask enum
- EntityDimension record struct
- EntityEffectFlags enum
- EntityMetadataType enum
- EntityType enum
- EventPriorityAttribute class Marks an event handler and selects its order within a dispatch.
- EventResult enum
- EventType enum
- Face enum
- Facing enum
- FireworkExplosion record
- FireworkExplosionShape enum
- GameEvent enum
- GameMode enum Vanilla's GameType.
- GlobalPos record Vanilla's GlobalPos.
- GroupCommandAttribute class
- HashedPatchMap record Vanilla's HashedPatchMap.
- Heightmap class
- HeightmapType enum
- HeightmapTypes enum Vanilla's Heightmap.Types.
- HexColor record struct
- Hinge enum
- HopperFace enum
- HorizontalAxis enum
- HoverAction enum
- HoverChatContent record
- HoverComponent record
- HoverEntityComponent record
- HoverItemContent record
- HumanoidArm enum Vanilla's HumanoidArm.
- IAgeable interface A mob that can be a baby, like vanilla's isBaby. Animals and villagers grow up; zombies, piglins and zoglins stay babies.
- IBlock interface
- IBlockEntity interface A block entity: what the world keeps for one block besides its state. Every block entity the server stores is a BlockEntity.
- IBlockState interface
- IBlockStateProvider interface Chooses a block state for a position, like vanilla's BlockStateProvider.
- IBossBar interface
- IChunk interface
- IClient interface
- IClientboundPacket interface Represents a network packet that can be sent to the client by the server.
- IClientPlayer interface A player that is backed by an active Minecraft client connection.
- ICodec interface
- ICommandHandler interface
- ICommandSender interface
- ICustomSurfaceCondition interface A surface condition type a plugin adds, like a NeoForge mod's SurfaceRules.ConditionSource: surface rules' conditions (if_true, invert) name it in their type. Register it with IPluginRegistry.RegisterWorldgenType<ISurfaceCondition, TCondition>.
- ICustomSurfaceRule interface A surface rule type a plugin adds, like a NeoForge mod's SurfaceRules.RuleSource: noise settings' surface rules name it in their type. Register it with IPluginRegistry.RegisterWorldgenType<ISurfaceRule, TRule>.
- IDensityFunction interface
- IDensityFunctionVisitor interface Transforms a density function tree through IDensityFunction.MapAll.
- IDimension interface
- IEntity interface
- IEventDispatcher interface Registers and dispatches Minecraft event handlers.
- IFeature interface
- IFloatProvider interface Samples a float, like vanilla's FloatProvider.
- IHashedItemStack interface
- IHoverContent interface
- IIntProvider interface Samples an int, like vanilla's IntProvider.
- IItemSteerable interface A rideable mob its rider speeds up with an item on a stick, like vanilla's ItemSteerable: a pig with a carrot on a stick, or a strider with a warped fungus on a stick.
- ILiving interface
- INbtSerializable interface
- INetStream interface
- INetStreamReader interface
- INetStreamWriter interface
- INetworkSerializable<TValue> interface Interface for network serializable objects. Due to the nature of Obsidian being a server-side only software, both INetworkSerializable.Write and INetworkSerializable.Read methods are not always necessary to implement. In that case, a NotImplementedException is thrown when the method is unintendedly called.
- INoise interface
- Instrument enum
- InstrumentData record
- InteractionHand enum Vanilla's InteractionHand.
- IntProviderRangeValue record struct
- IntProviderTypes class
- InventoryType enum
- IOperatorList interface
- IPacket interface Represents a network packet that can be transferred between the client and the server.
- IPacketBroadcaster interface
- IPaletteValue<TSelf> interface
- IParticle interface
- IPlayer interface
- IRegion interface
- IRegistryResource interface
- IRideable interface A mob players ride and steer, like vanilla's PlayerRideable. A player boards it through IEntity.StartRiding, or by interacting with it once it's ready, like a saddled pig.
- IRideableJumping interface A rideable mob its rider makes leap, like vanilla's PlayerRideableJumping: a camel's or nautilus's dash.
- IScoreboard interface
- IScoreboardManager interface
- IServer interface
- ISoundEffect interface
- IssuerScopeAttribute class
- IStateBuilder<TState> interface
- ISuggestionProvider interface Supplies suggestions for a command argument while a player types it. Implement it on a BaseSuggestionProviderAttribute for one parameter, or on an argument parser for every parameter of its type; a parameter's attribute takes precedence over its parser.
- ISurfaceCondition interface
- ISurfaceContext interface The block a surface rule is evaluated for, like vanilla's SurfaceRules.Context: surface building walks each column of a chunk down from its surface and evaluates the noise settings' rule for every block of the default block (usually stone) it finds.
- ISurfaceRule interface
- ITeam interface
- ItemAnimation enum
- ITextDisplay interface A text display, like vanilla's Display.TextDisplay: floating text with no hitbox. Changing any property sends the new state to players who are tracking it.
- IWorld interface
- IWorldFeature interface
- IWorldManager interface
- JukeboxSong record
- KnownPack record Vanilla's KnownPack.
- LeavesType enum
- LevelChunkPacketDataBlockEntityInfo record Vanilla's ClientboundLevelChunkPacketData.BlockEntityInfo.
- LevelData class https://minecraft.wiki/w/Java_Edition_level_format
- LevelDataRespawnData record Vanilla's LevelData.RespawnData.
- LevelParticlesRandomizationType enum Vanilla's ClientboundLevelParticlesPacket.RandomizationType.
- LightType enum
- LivingBitMask enum
- MapDecorationType enum
- MapId record Vanilla's MapId.
- MenuContainer class A plugin's menu (see MenuDefinition), opened with IPlayer.OpenInventoryAsync, like a NeoForge mod's AbstractContainerMenu: its slots, then the player's main inventory and hotbar, numbered in that order. Players move items in and out of it like a chest's; ContainerClickEventArgs lets the plugin cancel or handle their clicks.
- MenuDefinition class A menu type a plugin registered with IPluginRegistry.RegisterMenu, like a NeoForge mod's MenuType: a grid of MenuDefinition.Rows by MenuDefinition.Columns slots above the player's inventory. Open one with IPlayer.OpenInventoryAsync and a MenuContainer of the type.
- MenuSlot class Where a slot of a plugin's menu keeps its item, and the rules players' clicks follow in it, like vanilla's Slot and NeoForge's SlotItemHandler (see MenuContainer.Slots).
- MenuSlotRange record struct A range of a menu window's slots that a shift-click moves a stack into (see MenuContainer.QuickMove), like the bounds vanilla's moveItemStackTo takes.
- MessageSignature record struct
- MessageType enum
- MinecraftArgumentTypes class
- MinecraftEntityAttribute class
- MinecraftEventHandler class A module of event handlers marked with EventPriorityAttribute.
- MinecraftTime record struct
- Mirror enum Vanilla's Mirror.
- MobEffect enum
- Mode enum
- MovementAbilities record struct Ways a player can move beyond vanilla's rules, which mods grant with IPlayer.SetMovementAbilities. The server and the Obsidian client's prediction both honour them, so a player using one isn't corrected.
- MovementFlags enum
- NameTagVisibility enum
- NewMinecartBehaviorMinecartStep record Vanilla's NewMinecartBehavior.MinecartStep.
- ObjectiveCriteriaRenderType enum Vanilla's ObjectiveCriteria.RenderType.
- Orientation enum
- Page record
- Painting record struct
- PaintingDirection enum
- PaintingType enum
- Part enum
- ParticleData class
- ParticleDefinition class A particle type a plugin registered with IPluginRegistry.RegisterParticle, like a NeoForge mod's SimpleParticleType: a particle without options, sent as it is with ILevel.SpawnParticles.
- ParticleStatus enum Vanilla's ParticleStatus.
- ParticleType enum
- PermissionCheckType enum
- PistonType enum
- PlayerAbility enum
- PlayerActionAction enum Vanilla's ServerboundPlayerActionPacket.Action.
- PlayerBitMask enum
- PlayerCommandAction enum Vanilla's ServerboundPlayerCommandPacket.Action.
- PlayerInfoUpdateEntry record Vanilla's ClientboundPlayerInfoUpdatePacket.Entry.
- PlayerInput enum
- Pose enum
- PositionFlags enum
- PositionMoveRotation record Vanilla's PositionMoveRotation.
- Potion enum
- PotionEffect enum
- PotionEffectData record The potion effect data holds additional information about an active PotionEffect.
- Priority enum
- ProtocolVersion enum
- RailShape enum
- RecipeBookSettings record Vanilla's RecipeBookSettings.
- RecipeBookSettingsTypeSettings record Vanilla's RecipeBookSettings.TypeSettings.
- RecipeBookType enum Vanilla's RecipeBookType.
- RecipeDisplayId record Vanilla's RecipeDisplayId.
- Relative enum Vanilla's Relative.
- RemainingAttribute class
- RemoteDebugSampleType enum Vanilla's RemoteDebugSampleType.
- RequirePermissionAttribute class
- ResourceKey record Vanilla's ResourceKey.
- ResourceLocation record struct A namespaced identifier, like minecraft:entity.pig.ambient. One read without a namespace is vanilla's.
- ResourcePackAction enum Vanilla's ServerboundResourcePackPacket.Action.
- ResultContainer class
- Rotation record struct
- Score class
- ScoreboardObjective class
- ScoreHolderArgument record The score holders a command names: those a selector selects, every tracked holder for *, or one by name.
- SculkSensorPhase enum
- SecureMessageSignature record struct
- SeenAdvancementsAction enum Vanilla's ServerboundSeenAdvancementsPacket.Action.
- ServerDescription struct
- ServerPlayers class
- ServerStatus class
- ServerVersion record struct
- SetGameRuleEntry record Vanilla's ServerboundSetGameRulePacket.Entry.
- SideChain enum
- SignatureData record struct
- SignedMessage record struct
- SignTextSlot enum Vanilla's SignTextSlot.
- SimpleBlockState class
- SkinProperty class
- SlabType enum
- SlotDifference record struct
- SoundCategory enum https://gist.github.com/konwboj/7c0c380d3923443e9d55
- SoundEffect class
- SoundEvent record struct
- SoundId class
- SoundId.Ambient class
- SoundId.Block class
- SoundId.Enchant class
- SoundId.Entity class
- SoundId.Event class
- SoundId.Item class
- SoundId.Music class
- SoundId.MusicDisc class
- SoundId.Particle class
- SoundId.Ui class
- SoundId.Weather class
- SoundPosition record struct
- SoundSource enum Vanilla's SoundSource.
- SpecialRailShape enum
- StairHalf enum
- StairsShape enum
- StructureBlockEntityUpdateType enum Vanilla's StructureBlockEntity.UpdateType.
- StructureMode enum
- StructureTypeAttribute class Marks the class that implements a vanilla structure type (e.g. minecraft:jigsaw) or a type used inside structure data (placements, pool elements...), so the worldgen registries can be generated from vanilla's JSON.
- SuggestionsAttribute class Suggests a fixed set of values for a command parameter.
- SulfurState enum
- SurfaceConditionAttribute class
- SurfaceRuleAttribute class
- SwingAnimation record Vanilla's SwingAnimation.
- SwingAnimationType enum Vanilla's SwingAnimationType.
- Tag record A tag: a named group of a registry's entries, like the blocks a pickaxe mines (minecraft:mineable/pickaxe).
- TagNetworkSerializationNetworkPayload record Vanilla's TagNetworkSerialization.NetworkPayload.
- TeamCollisionRule enum Vanilla's Team.CollisionRule.
- TeamColor enum
- TeamVisibility enum Vanilla's Team.Visibility.
- TestBlockMode enum Vanilla's TestBlockMode.
- TestInstanceBlockActionAction enum Vanilla's ServerboundTestInstanceBlockActionPacket.Action.
- TestInstanceBlockEntityStatus enum Vanilla's TestInstanceBlockEntity.Status.
- TextDisplayAlignment enum How a text display's lines are aligned, like vanilla's TextDisplay.Align.
- TextDisplayBillboard enum How a text display turns to face the viewer, like vanilla's Display.BillboardConstraints.
- Thickness enum
- Tilt enum
- TradeEntry record Represents a trade entry offered by a villager or wandering trader.
- TradeItem record Represents an item stack supplied as the "price" in a TradeEntry.
- Traverse class
- TreePropertyAttribute class
- TrialSpawnerState enum
- VaultState enum
- Vec3i record Vanilla's Vec3i.
- Vector struct Represents a three-dimensional vector. Uses Int32.
- VectorD struct Represents a three-dimensional vector. Uses Double, like vanilla's positions and movement (Vec3), which keep their precision far from the world's origin where a VectorF doesn't.
- VectorF struct Represents a three-dimensional vector. Uses Single.
- Velocity struct Represents velocity of an entity in the world.
- VerticalDirection enum
- WallConnection enum
- WhitelistedPlayer record struct
- WireShape enum
- WorldClocks class A world's shared clocks, independent of the elapsed simulation time.
- WorldClockState class The persistent state of a 26.3 world clock.
- WorldType enum
Obsidian.API.AI
- IGoal interface
- IGoalController interface
- INavigator interface
- IPathBody interface The body a path search runs for: its position, size, world view and movement capabilities. Mobs supply one through their navigator; plugins may supply their own to compute paths for any body (see IPathfinder).
- IPathfinder interface Computes the path a mob would walk, using the same search as its navigator. Implemented by the server's navigator; cast IEntity.Navigator to use it. Call on the server tick thread, like the rest of a mob's AI.
- IPathTerrain interface The block view a path search reads.
- NavigationPath record A computed path: the nodes in walking order, and whether the last node is the target's block.
- PathNodeType enum Vanilla's path node types. Generated from the asset generator's path_type_malus.json.
- TargetType enum
Obsidian.API.Advancements
- Advancement class
- AdvancementConditionsCodec<TInstance> record A plugin condition decoder. Throw for unsupported conditions; those criteria never fire.
- AdvancementDisplay class
- AdvancementFlags enum
- AdvancementFrameType enum
- AdvancementReward class
- AdvancementTrigger<TInstance> class A registered trigger. Fire with a predicate comparing decoded conditions with your event.
- Criteria class Criteria for advancements. Runtime progress belongs to each player's IAdvancements; these legacy fields are only for callers building packets.
- IAdvancements interface Persistent criteria progress. Granting the last requirement awards the advancement's rewards.
Obsidian.API.BlockEntities
- BlockEntity class The data and behaviour the world keeps for one block besides its state, like vanilla's and NeoForge's block entities: a chest's items, a spawner's timers, or a plugin's machine. Subclass it and register the subclass for blocks with IPluginRegistry.RegisterBlockEntity.
- BlockEntityType class A block entity type a plugin registered with IPluginRegistry.RegisterBlockEntity, like a NeoForge mod's BlockEntityType: the blocks that have one, and the class created for them.
- ContainerBlockEntity class A block entity holding items, like vanilla's chests, barrels, furnaces and brewing stands: its ContainerBlockEntity.Inventory is what players see when they open its block, and is saved like vanilla's containers.
Obsidian.API.Blocks
- BlockBreakContext class A player's attempt to break a plugin block, before removal and drops.
- BlockContext class A block a hook of IBlockBehavior runs for: where it is and its state.
- BlockPlaceContext class A player placing a block (see IBlockBehavior.GetStateForPlacement), like vanilla's BlockPlaceContext.
- BlockPlacedContext class A block placed, or changed to another of its states (see IBlockBehavior.OnPlaced).
- BlockProperties class What a plugin's block is like: its states, how it collides, lights and breaks, and what it does when used.
- BlockRemovedContext class A block another replaced (see IBlockBehavior.OnRemoved). BlockContext.State is the removed block's state.
- BlockShapeHit record struct The nearest outline box hit, including its index and the hit location relative to the block.
- BlockShapes class Immutable collision and selection boxes, in block-local coordinates. Empty lists mean no shape; a null shape override uses the block state's usual shapes. Boxes must fit inside the block's unit cube.
- BlockSoundProperties record A block's break, step, place, hit and fall events, with the base volume and pitch used by block interactions. Declare the same sounds in ConfigureRegistry on both sides. Reloading replaces them; unloading uses stone.
- BlockType class A block a plugin registered with IPluginRegistry.RegisterBlock, and its states.
- BlockUpdateFlags enum What else happens when a block changes, like vanilla's Block.UPDATE_* flags (with vanilla's values).
- BlockUseContext class A player using a block.
- EntityBlockContext class An entity touching a block (see IBlockBehavior.EntityInsideAsync).
- IBlockBehavior interface What a plugin's block does: when a player uses or places it, when it or a neighbour changes, when it ticks and when entities touch it, and the redstone power it gives. Implement the methods the block needs; the others leave the block to Obsidian's default handling, which does nothing.
- IBlockLevel interface The level as a block's hooks see it, like the level vanilla passes its blocks: reads and changes blocks at once, with the level's block updates held for the hook, so what it reads stays as it read it until it returns.
- ISignalReader interface Reads redstone power, like vanilla's SignalGetter. A block gives each neighbour a weak signal (it powers the neighbour, like a lit torch powers the dust beside it) and a strong one (it also powers through the neighbour when that's a conductor, like a torch powers the block above it). A conductor, like stone, passes on the strong signals it gets as a weak signal to its own neighbours.
- NeighborChangedContext class A block whose neighbour changed (see IBlockBehavior.NeighborChanged).
- ShapeUpdateContext class A block whose neighbour changed shape (see IBlockBehavior.UpdateShape).
- SignalContext class A block asked for its redstone output (see IBlockBehavior.GetSignal, IBlockBehavior.GetDirectSignal and IBlockBehavior.GetAnalogOutput).
- StateProperty class A property a plugin's block varies by, like a lamp's lit or a crop's age: the block has one state per combination of its properties' values.
- SupportType enum The area of a block face required for support, matching vanilla's support tests.
- TickPriority enum Which of the block ticks due the same game tick run first, like vanilla's TickPriority: lower first, then in the order they were scheduled. Saved with the tick, as vanilla saves it.
- TreeGrower record The trees a sapling grows into, like vanilla's TreeGrower: configured features named by identifier, vanilla's (minecraft:oak) or a plugin's or data pack's (from worldgen/configured_feature files), looked up when the sapling grows, so that a reload or override applies at once.
- WeightedFeature record A configured feature, by identifier, and its weight in a list picked from by weight.
Obsidian.API.Boss
Obsidian.API.Builders
Obsidian.API.Builders.Interfaces
Obsidian.API.ChunkData
Obsidian.API.Client
- BlockEntityModelProperties class Model parts a mod's block entity type adds to its block's model from its synced data, like NeoForge's model data: a cable's connections, the parts attached to its sides, facades. Register it with IClientRegistry.RegisterBlockEntityModel.
- BlockEntityRendererProperties class How a mod's block entity type is drawn each frame, on top of its block's model, like vanilla's block entity renderers: parts that move without meshing the world again, such as a machine's spinning gear. Register it with IClientRegistry.RegisterBlockEntityRenderer.
- BlockEntityRenderPart record A part of a block entity's renderer: a declared model, faces, or both, scaled and turned about BlockEntityRenderPart.Pivot, then moved by BlockEntityRenderPart.Offset. Positions are in sixteenths of a block, like a block model's elements.
- BlockModelData record What a block entity's BlockEntityModelProperties.Provider adds to its block's model: models from resource packs, and faces with any block texture, for textures chosen by data such as a facade's.
- BlockModelFace record A face drawn in a block, like a face of a block model's element: the Face side of the box from From to To, in sixteenths of a block, with its texture mapped like a model face without uv.
- BlockModelPart record struct A model drawn in a block, turned like a blockstate file's model: X then Y degrees clockwise (0, 90, 180 or 270) looking along the axis, its faces' cull faces turning with it; then moved by BlockModelPart.Offset.
- BlockTint record The colour a block's faces are tinted with, like vanilla's block colours: faces whose model gives them a tintindex are multiplied by its colour for that index. Register it with IClientRegistry.RegisterBlockTint.
- BlockTintSource enum Where a block's tint comes from.
- ClientBlockEntityExtensions class Client world access for block entities, without making their server-side Level a client level.
- ClientEntityData class Reads a plugin entity type's synced data fields (see EntityProperties.DataFields) from the metadata the client received.
- ClientPayloadHandler<TPayload> delegate Handles a payload the server sent on a mod's channel. It runs on the connection's packet thread, so hand work for the game over to it rather than blocking.
- DimensionAtmosphere record struct A frame's sky, fog and clouds in a dimension, which IDimensionEffects.Adjust may change. Colours are red, green and blue (and alpha) from 0 to 1; distances are in blocks from the camera.
- DimensionEffectsProperties class How the client draws a mod's dimension type's sky, clouds and fog beyond what the type's synced data says, like NeoForge's dimension special effects. Register it with IClientRegistry.RegisterDimensionEffects.
- EntityLayerAppearance record struct How an EntityRenderLayer looks for an entity's synced metadata.
- EntityRenderContext record struct A mod entity as a frame shows it, for an IEntityRenderer: interpolated between its last two ticks.
- EntityRendererProperties class How the Obsidian client draws a mod's entity type: a model layer and a texture from the mod's assets, the keyframed animations it plays, layers drawn over it, and code drawing anything else. Register it with IClientRegistry.RegisterEntityRenderer.
- EntityRenderLayer record A layer drawn over a mod entity's model (see EntityRendererProperties.Layers), like vanilla's render layers: a model layer with a texture, posed like the entity's model.
- EntityRenderType enum How a layer or a part drawn by code is drawn, like vanilla's entity render types.
- GuiPosition record struct A position on a screen, in the GUI's pixels.
- IBlockEntityRenderBuffer interface What an IBlockEntityRenderer draws into for one block entity in a frame. Transforms are in blocks, from the block's lowest corner, like vanilla's pose stack at the block entity; the light is the block's.
- IBlockEntityRenderer interface Code that draws a mod's block entities each frame, like vanilla's BlockEntityRenderer.render: for animations BlockEntityRendererProperties.Provider's parts can't describe, such as ones following state the block entity keeps on the client. Give it as BlockEntityRendererProperties.Renderer.
- IClientConnection interface The client's connection to a server, which a mod sends its payloads on.
- IClientEntity interface One detached entity snapshot. Its properties and metadata table are read-only. Metadata values keep the client's decoded CLR types; mutable values (arrays, NBT dictionaries/lists and item stacks) are deep copies owned by the caller. Retaining or changing them affects neither the client nor subsequent queries.
- IClientPlugin interface A plugin with a client side: implemented by a mod's PluginBase subclass to register what the Obsidian client does with it, like its payload handlers, key bindings, block tints and entity renderers.
- IClientRegistry interface What a mod's IClientPlugin.ConfigureClient registers its client side with.
- IClientSounds interface Local sound playback for a mod, obtained from IClientRegistry.Sounds and usable in screens and client ticks. Calls may come from any thread: playback is queued onto the game thread, and OpenAL runs on its audio worker. Returns false when this mod is inactive or audio is unavailable. Missing assets are silently ignored. Queued requests and this facade stop working when the mod unloads; obtain a new facade on reload.
- IClientWorld interface Read-only access to the dimension the client is viewing. It contains only what the server sent, including local block prediction; queries never load chunks. Obtain it from IClientConnection.World or ClientBlockEntityExtensions.GetClientWorld.
- IDimensionEffects interface Code that adjusts or draws a mod's dimension type's sky, fog and clouds each frame, like NeoForge's DimensionSpecialEffects, for what the type's data can't say (see DimensionEffectsProperties). Give it as DimensionEffectsProperties.Effects; implement either method, or both.
- IDimensionSkyBuffer interface What an IDimensionEffects draws the sky with in a frame. The sky is centred on the camera and doesn't move with it; vanilla's sun and moon are 100 blocks away. The world and the clouds are drawn over it.
- IEntityRenderBuffer interface What an IEntityRenderer draws into for one entity in a frame, with the light at the entity.
- IEntityRenderer interface Code that draws a mod's entities each frame, like vanilla's EntityRenderer.render: for what the model, its animations and layers can't describe. Give it as EntityRendererProperties.Renderer.
- IItemRenderBuffer interface What an IItemRenderer draws into for one stack in a frame. Transforms are in blocks, in the item's model space: the box from (0, 0, 0) to (1, 1, 1) its base model's elements fill at sixteenths, which the base model's display transform for the context then places, like vanilla's special models.
- IItemRenderer interface Code that draws a mod's special item model type, like NeoForge's SpecialModelRenderer. Give it as ItemRendererProperties.Renderer.
- IKeyBinding interface A mod's key binding, which players rebind in the key binds screen like vanilla's. Register it with IClientRegistry.RegisterKeyBinding.
- ItemDisplayContext enum Where an item is drawn, like vanilla's ItemDisplayContext: the names an item model definition's minecraft:display_context property and a model's display transforms use, in snake case (thirdperson_righthand, gui, ...).
- ItemModelContext record struct What an item is drawn for, besides its stack: given to a mod's item model properties (see IClientRegistry.RegisterItemCondition) and item renderers (see IItemRenderer).
- ItemRendererProperties class How a mod's special item model type is drawn, like NeoForge's special model renderers: an item model definition's minecraft:special model naming the type draws with ItemRendererProperties.Renderer. Register it with IClientRegistry.RegisterItemRenderer.
- MenuScreenProperties class How the Obsidian client shows a mod's menu type, like a NeoForge mod's container screen: a background texture from the mod's assets with the menu's slots and the player's inventory on it. Register it with IClientRegistry.RegisterMenuScreen; without one, the menu shows like a chest, with its rows of slots centred.
- ParticleProviderProperties class How the Obsidian client moves and draws a mod's particle type, like a NeoForge mod's particle provider making a sprite particle. Register it with IClientRegistry.RegisterParticleProvider; without one, the type's particles behave like vanilla's base particle.
Obsidian.API.Client.Razor
- Button class Vanilla's button with its text, like Button: 200 by 20 pixels unless sized.
- Image class A GuiImage at the part's size, like Image.
- ItemGrid class Stacks that aren't the menu's slots, like ItemGrid: ItemGrid.Items row by row, ItemGrid.Columns by ItemGrid.Rows from ItemGrid.FirstRow, with their tooltips. Its size is its cells', 18 pixels each.
- Label class A line of text, like Label: dark grey without a shadow like container labels, unless its Label.Color and Label.Shadow say otherwise. Its natural size is its text's.
- ModComponent class The base of a mod's Razor components, in place of Blazor's ComponentBase, with the same lifecycle: put @inherits ModComponent in the mod's _Imports.razor. The client renders mods' components only if they inherit it.
- Panel class A box holding parts, its child content: placed by their positions, or stacked in a column or a row.
- PanelAlign enum Where a Panel places stacked parts across the stack, or a Label its text within its width.
- PanelFlow enum How a Panel places its parts.
- ProgressBar class A GuiImage cut to its progress, like ProgressBar.
- ScreenContext class A Razor screen as its components see it, the cascading value the client gives them: take it with [CascadingParameter] public ScreenContext Screen { get; set; }. It's the screen's panel, like a ModScreen's, the menu it shows, and its translations.
- ScreenPart class A building block of a mod's Razor screen, like a Panel, a Label or a SlotGrid: the Razor counterparts of the widgets in Client.Screens, which the client draws with its own widgets, like vanilla's.
- ScrollBar class A vertical scroll bar the player drags, or scrolls with the wheel over it, like ScrollBar: 12 pixels wide unless sized. Bind its row with @bind-Row, to the same field as an ItemGrid's @bind-FirstRow to scroll a list.
- SlotGrid class The menu's slots from SlotGrid.FirstSlot, SlotGrid.Columns by SlotGrid.Rows, 18 pixels apart, like SlotGrid. Its position is where its first item goes from the top left of the screen's panel, wherever it is in the markup: the menu's container screen draws the slots, which the player clicks, drags, shift-clicks and swaps with hotbar keys like any container's.
- TextField class Vanilla's edit box, like TextField: 200 by 20 pixels unless sized. Bind its text with @bind-Value.
Obsidian.API.Client.Screens
- Button class Vanilla's button: its text on the button sprite, highlighted under the mouse and greyed out while inactive. 200 by 20 pixels unless sized otherwise.
- GuiImage record An image from a mod's (or vanilla's) assets, drawn at a widget's size: a GUI sprite, or a region of a whole texture like vanilla's container backgrounds.
- IClientScreens interface Opens a mod's screens: IClientRegistry.Screens.
- Image class An image, drawn at the widget's size.
- IScreenMenu interface The client's side of a menu the server opened, as a ModMenuScreen sees it: what the server sends with it (its slots' stacks, its data slots' values and the extra data it was opened with), and its buttons.
- ItemGrid class A grid of item stacks that aren't the menu's slots, like an AE2 terminal's network contents or a list of recipes: the client draws them 18 pixels apart, with their tooltips, and raises ItemGrid.Clicked when the player clicks one; the mod decides what that does. Scroll it with a ScrollBar by setting ItemGrid.FirstRow.
- ItemGridClick record struct A click on an ItemGrid's cell.
- Label class A line of text in vanilla's font. It's as big as its text unless Label.Centered.
- ModMenuScreen class A mod's screen for one of its menu types, like a NeoForge mod's AbstractContainerScreen: a ModScreen with the menu's title and the player's inventory, whose SlotGrids show the menu's slots, and whose ModMenuScreen.Menu gives the menu's data and sends its buttons. Register it with IClientRegistry.RegisterMenuScreen; the client makes one each time the server opens the menu.
- ModOverlay class Widgets a mod draws on the HUD, like a NeoForge mod's GUI layer: a box of ModOverlay.Width by ModOverlay.Height pixels placed at its ModOverlay.Anchor, moved by ModOverlay.X and ModOverlay.Y, with the widgets the mod adds, placed from the box's top left. Register it with IClientRegistry.RegisterOverlay.
- ModScreen class A mod's screen, built in code from widgets like a NeoForge mod's Screen: a panel of ModScreen.Width by ModScreen.Height pixels centred on the darkened game, with an optional ModScreen.Background and the widgets the mod adds in ModScreen.Init. Open one with IClientScreens.Open; a screen for a menu type is a ModMenuScreen.
- OverlayAnchor enum Where a ModOverlay is placed on the screen.
- OverlayLayer enum Which of vanilla's HUD a ModOverlay is drawn over, like the vanilla layer a NeoForge mod registers its GUI layer below or above.
- ProgressBar class An image shown in part, like a furnace's arrow and flame: the part ProgressBar.Progress says, from the side ProgressBar.Direction starts at.
- ProgressDirection enum Which way a ProgressBar fills.
- ScrollBar class A vertical scroll bar, like the creative inventory's: a handle the player drags along the bar's height, or moves with the mouse wheel over the bar or its ScrollBar.WheelArea, to pick a row. The screen shows what the row says, for example as an ItemGrid's ItemGrid.FirstRow. 12 pixels wide unless sized otherwise.
- SlotGrid class A grid of the open menu's slots, 18 pixels apart, which the player clicks, drags and shift-clicks like any container's: the client draws their stacks and tooltips and sends the clicks to the server. Only a ModMenuScreen shows it.
- TextField class Vanilla's edit box: a line of text the player types, with a caret, selection and the clipboard. 200 by 20 pixels unless sized otherwise.
- Widget class A piece of a mod's screen, like a label, a button or a grid of slots: the mod adds it to its screen (see WidgetGroup.Add) and changes its properties whenever it likes, and the client draws it as they are each frame, with its own widgets, like vanilla's.
- WidgetGroup class Widgets drawn together: a screen's (see ModScreen).
Obsidian.API.Commands
- Command class
- CommandCompletion record Suggestions for the word at the end of a partly typed command line.
- CommandCoordinates class Reads vanilla's command coordinates: absolute numbers, ~ offsets from where the command runs, or ^ offsets along the way it faces (left, up, forwards).
- CommandModuleBase class
- CommandSender class
- CommandSuggestion record struct A value offered to a player while they type a command argument.
- EntitySelector class A target selector, like @e[type=zombie,distance=..10,limit=3], or a player's name or UUID, as vanilla's entity arguments read them.
Obsidian.API.Commands.ArgumentParsers
- BlockPositionArgumentParser class Reads a block's position like vanilla's block_pos arguments: three coordinates, each a whole number, ~ relative or all ^ local, naming the block they fall in.
- BlockStateArgumentParser class Reads a block state like vanilla's block_state arguments, minecraft:oak_stairs[facing=east], which the client completes from its block registry. Whether the block exists is checked where it's placed.
- BoolArgumentParser class
- DecimalArgumentParser class
- DoubleArgumentParser class
- EnchantmentArgumentParser class Reads an enchantment by its identifier, like minecraft:sharpness, which the client completes from the enchantments the server sent it.
- EntitiesArgumentParser class Reads the entities a target selector selects, or a player by name or UUID (see EntitySelector).
- EntityArgumentParser class Reads one entity from a target selector, or a player's name or UUID (see EntitySelector).
- EntityFilter enum What an entity argument accepts, which the client checks selectors against.
- EntityTypeArgumentParser class Reads an entity type by its identifier, like minecraft:zombie, which the client completes from its entity type registry.
- EnumArgumentParser class Reads a member of an enum by name. The command handler makes one for any enum parameter type without a registered parser, so enum parameters need no setup and suggest their members while a player types.
- FloatArgumentParser class
- GuidArgumentParser class
- ItemArgumentParser class Reads an item like vanilla's item_stack arguments, which the client completes from its item registry.
- LocationArgumentParser class Reads a position like vanilla's vec3 arguments: three coordinates, each absolute, ~ relative or all ^ local (see CommandCoordinates).
- MinecraftTimeArgumentParser class
- NumberFlags enum
- NumericArgumentParser<TNumber> class
- ParticleTypeArgumentParser class Reads a particle type like vanilla's particle arguments, which the client completes from its particle type registry.
- PlayerArgumentParser class Reads an online player by name or UUID, or the first player a target selector like @p selects.
- PlayersArgumentParser class Reads the players a target selector selects, or a player by name or UUID (see EntitySelector).
- PotionEffectArgumentParser class Reads a mob effect by its identifier, like minecraft:speed, which the client completes from its mob effect registry.
- ResourceLocationArgumentParser class Reads an identifier like vanilla's resource_location arguments.
- ScoreHolderArgumentParser class Reads vanilla's score_holder arguments: a target selector, a name, or * for every tracked holder. Commands resolve it, since * depends on the scoreboard.
- SignedByteArgumentParser class
- SignedIntArgumentParser class
- SignedLongArgumentParser class
- SignedShortArgumentParser class
- StringArgumentParser class
- StringType enum
- UnsignedByteArgumentParser class
- UnsignedIntArgumentParser class
- UnsignedLongArgumentParser class
- UnsignedShortArgumentParser class
Obsidian.API.Commands.Exceptions
Obsidian.API.Configuration
- IntegratedConfiguration class Settings of the Integrated section, used when a game client runs the server for one singleplayer world and controls it over standard input and output (see docs/integrated-server.md).
- MessagesConfiguration record
- NetworkConfiguration record
- NewWorldConfiguration class Settings of the NewWorld section: how an integrated server creates its world when the world folder has no level.dat yet. They're ignored for existing worlds.
- RconConfiguration record
- ServerConfiguration class
- ServerListQuery enum
- ServerWorld class
- WhitelistConfiguration class
Obsidian.API.Containers
- AnvilContainer class An anvil's window, like vanilla's AnvilMenu: the item, what's combined with it, and the result, which costs AnvilContainer.Cost levels.
- BeaconContainer class A beacon's window, like vanilla's BeaconMenu: its payment slot, which takes one of the beacon's payment items to choose its powers.
- BrewingStand class A brewing stand's block entity, whose slots vanilla's brewing menu numbers: the three bottles (0 to 2), the ingredient (3) and the fuel (4). The server brews in it while its chunk ticks.
- CartographyTable class A cartography table's window, like vanilla's CartographyTableMenu: the map, the paper, empty map or glass pane that changes it, and the result.
- CrafterContainer class A crafter's grid, like vanilla's CrafterBlockEntity: nine slots, each of which can be disabled while empty, and whether it's powered.
- CraftingTable class
- EnchantmentTable class
- Grindstone class A grindstone's window, like vanilla's GrindstoneMenu: two inputs and the result.
- LecternContainer class A lectern's book, which its window shows a page of, like vanilla's LecternMenu.
- Loom class A loom's window, like vanilla's LoomMenu: the banner, the dye, the pattern item and the result.
- SmeltingContainer class
- SmithingTable class A smithing table's window, like vanilla's SmithingMenu: the template, the base item, the addition and the result.
- Stonecutter class A stonecutter's window, like vanilla's StonecutterMenu: the input and the result of the chosen recipe.
Obsidian.API.Crafting
- BrewingRecipe class A brewing stand recipe (minecraft:brewing, 26.3): BrewingRecipe.Reagent in the ingredient slot brews each bottle BrewingRecipe.Input matches into a new BrewingRecipe.Output.
- CraftingEvaluation record A detached evaluation of one craft. Slot lists use the input grid's row-major, zero-based indexes. Consumed counts describe one craft, and remainders are the items left by those consumed ingredients. Compare RecipeRevision with IServer.CraftingRecipeRevision before committing a cached evaluation.
- CraftingType enum
- CuttingRecipe class
- DyeRecipe class Dyes an item (minecraft:crafting_dye, 26.1): one DyeRecipe.Target and any number of DyeRecipe.Dye items with a dye color craft DyeRecipe.Result, which keeps the target's components and mixes the dyes into its minecraft:dyed_color, like vanilla's leather armour.
- ICraftingRecipe interface A recipe crafting grids craft, which the recipe book shows: ShapedRecipe, ShapelessRecipe, or one of 26.1's configurable special recipes (DyeRecipe, ImbueRecipe and TransmuteRecipe), whose result depends on the grid's items.
- ImbueRecipe class Imbues items with a potion (minecraft:crafting_imbue, 26.1): a full 3x3 grid of ImbueRecipe.Material around a ImbueRecipe.Source crafts ImbueRecipe.Result, holding the source's minecraft:potion_contents, like vanilla's tipped arrows.
- Ingredient class
- IRecipe interface
- IRecipeSerializer<TRecipe> interface Reads and matches a plugin's machine recipes. Implementations and their values go on unload.
- IRecipeWithResult interface
- PotionIngredient record One side of a BrewingRecipe (vanilla's PotionIngredient): one of PotionIngredient.Items, holding one of PotionIngredient.Potions when that's set.
- RecipeType<TRecipe> class A server-side machine recipe type, registered during a plugin's ConfigureRegistry.
- ShapedRecipe class
- ShapelessRecipe class
- SmeltingRecipe class
- SmithingTransformRecipe class Recipe for smithing netherite gear
- SmithingTrimRecipe class Used for applying armor trims
- TransmuteRecipe class Turns an item into another, keeping its components (minecraft:crafting_transmute): one TransmuteRecipe.Input and TransmuteRecipe.MinMaterialCount to TransmuteRecipe.MaxMaterialCountTransmuteRecipe.Material items, anywhere in the grid, craft TransmuteRecipe.ResultCount of TransmuteRecipe.ResultItem, with TransmuteRecipe.ResultComponents set and TransmuteRecipe.RemovedResultComponents removed over the input's components. Vanilla dyes shulker boxes and bundles, and clones maps, with it.
Obsidian.API.Crafting.Builders
Obsidian.API.Crafting.Builders.Interfaces
- IBaseIngredientRecipe<TRecipe> interface
- ICookingRecipe interface
- IGroupedRecipe<TRecipe> interface
- IIngredientRecipe<TBuilder> interface
- INamedRecipe<TRecipe> interface
- IOutputCountRecipe<TRecipe> interface
- IPatternedRecipe interface
- IRecipeBuilder<TRecipe> interface
- IRecipeResult<TRecipe> interface
- IShapelessIngredientRecipe<TRecipe> interface
- ITemplateIngredientRecipe<TRecipe> interface
- IUpgradeIngredientRecipe<TRecipe> interface
Obsidian.API.Data
- AttachmentExtensions class Persistent attachments. Holders keep NBT only, including unknown and unloaded types.
- AttachmentType<TValue> class A player, entity or chunk attachment registration. Values are detached: mutate a Get result and Set it again. Codecs run under the plugin call guard; they must not block or mutate shared plugin state.
- ContextFloatProvider class A single-precision context expression. Arithmetic failures and non-finite final values return zero.
- ContextIntProvider class An integer context expression. Arithmetic failures return zero at the evaluation boundary, as in 26.3.
- ContextNumberProviders class Reads 26.3 integer and float expressions. String values are registry references, numbers are constants, and objects have a namespaced type. The generated Ints/Floats dictionaries contain vanilla's definitions.
- IAttachmentHolder interface An entity (players included) or chunk that can hold plugin data. Reads return detached values. Set and Remove publish changes atomically and throw InvalidOperationException after the holder retires for removal or its final save. Synchronize the source object yourself when setting it from outside its level tick.
- ItemAttachments class Items kept in an attachment, like a player's extra slots for accessories: register an attachment with ItemAttachments.Codec (and ItemAttachments.NetworkCodec to sync it), then reach its slots with ItemAttachments.GetItemAccess, from a menu's MenuSlots or the plugin's own code.
- NumberContext class Inputs shared by context number providers in loot, recipes and other data-driven systems. Create one context per evaluation; providers themselves are immutable and reusable.
- SavedData<TValue> class A live saved value. Access Value on its owning level's tick, or with your own synchronization. MarkDirty publishes a detached saved snapshot; world saves never call plugin code. Never retain this handle across plugin reloads.
- SavedDataScope enum The lifetime scope of a saved data instance.
- SavedDataType<TValue> class A saved data registration. Register once during ConfigureRegistry; handles expire on unload.
Obsidian.API.Effects
Obsidian.API.Entities
- DamageSource record What damaged an entity, like vanilla's DamageSource.
- EntityDamage class Damage about to be dealt to an entity, which IEntityBehavior.HurtAsync may change or cancel.
- EntityDataField class A synced data field of a plugin's entity type, like a field of vanilla's SynchedEntityData: a value per entity that the server sends modded Obsidian clients, read there through IClientEntity.Metadata at EntityDataField.Index. Make one with EntityDataFields, list it in EntityProperties.DataFields, and read and write it with IEntity.GetData and IEntity.SetData.
- EntityDataField<T> class A synced data field holding a T.
- EntityDataFields class Makes synced data fields with vanilla's serializers, which modded clients read without knowing the plugin.
- EntityDefinition class A kind of entity a plugin registered with IPluginRegistry.RegisterEntity: mobs, projectiles or objects (see EntityKind).
- EntityHit class What a projectile hit.
- EntityKind enum What a plugin's entity type's entities are. A client mod's entity should be the same kind, so that the entity data the server sends matches what it reads.
- EntityMovementMode enum How a plugin's mob moves (see EntityProperties.Movement).
- EntityProperties class What a plugin's entity type is like: its size, health and speed, and what its entities do.
- IEntityBehavior interface What the entities of a plugin's entity type do. Implement the methods the entity needs.
- IEntitySpawner interface Can be used to spawn entities. Can be retrieved from ILevel.GetNewEntitySpawner.
- MobCategory enum Vanilla's mob categories: which natural spawning pass spawns a mob, and whose cap it counts against.
- SpawnPlacementType enum Where natural spawning may place a mob, like vanilla's SpawnPlacementTypes.
Obsidian.API.Events
- AsyncEventArgs class Represents the base class for classes that contain event data, where events are invoked asynchronously.
- BaseMinecraftEventArgs class Represents the base class for classes that contain minecraft event data.
- BlockBreakEventArgs class
- BlockEventArgs class
- BlockPlaceEventArgs class A player placing a block, raised before the block is placed and the item used up. Cancelling it keeps the block from being placed, and the player keeps the item.
- ContainerClickEventArgs class A player's click in their open window, raised before the server applies it.
- ContainerClosedEventArgs class A player's open container closing, by the player or the server. A handler may open another container for the player instead; the server then closes only the one this event is about.
- ContainerEventArgs class
- DialogActionEventArgs class Untrusted client input from a custom dialog or text click action.
- EntityEventArgs class
- EntityInteractEventArgs class
- ICancellable interface Provides a mechanism for cancelling default behaviour.
- IncomingChatMessageEventArgs class
- PacketReceivedEventArgs class
- PermissionGrantedEventArgs class
- PermissionRevokedEventArgs class
- PlayerAttackEntityEventArgs class
- PlayerEventArgs class
- PlayerInteractEventArgs class An event for when a player interacts with a item and/or block. You can get which hand was used by the player when interacting by checking PlayerInteractEventArgs.Hand
- PlayerJoinEventArgs class
- PlayerLeaveEventArgs class
- PlayerTeleportEventArgs class
- ServerStatusRequestEventArgs class
Obsidian.API.Inventory
- AttributeIds class The ids of attributes that items' attribute modifiers change, for AttributeModifier.Id.
- AttributeModifier record struct
- AttributeOperation enum
- AttributeSlot enum
- CreativeTabProperties class A plugin's creative tab, given when registering it (see IPluginRegistry.RegisterCreativeTab): its title, its icon, where it goes among the tabs and the items it shows.
- DataComponent record An immutable item component. Replace it on the stack to change its value.
- Enchantment record struct
- EnchantmentType enum
- Equipment record
- EquipmentSlot enum
- IItemAccess interface A way into the items of something, from one side: a chest's slots, a furnace's slots as a hopper on a given face reaches them, or a plugin machine's buffers. Like NeoForge's item handler capability: what a hopper, a dropper, a pipe or a storage network moves items through. Get one with IBlockLevel.GetItemAccess or ILevel.GetItemAccess.
- IItemAccessProvider interface Something with items other code can reach from a side (see IItemAccess): implement it on a block entity to expose its items. ContainerBlockEntity implements it already.
- IItemBehavior interface What a plugin's item does when a player uses it. Implement the methods the item needs; the others leave the item to Obsidian's default handling, which for an item without vanilla behaviour is nothing.
- Item class A kind of item, like a diamond or a bow, which item stacks hold. Vanilla's items are the static properties of ItemsRegistry; plugins register more with IPluginRegistry.RegisterItem.
- ItemAccessContext class A plugin block asked for access to its items from a side (see IBlockBehavior.GetItemAccess).
- ItemInventoryTickContext class A stack of an item ticking in a player's inventory.
- ItemMaterial enum
- ItemProperties class How a plugin's item behaves, given when registering it (see IPluginRegistry.RegisterItem).
- ItemRarity enum
- ItemStack class
- ItemType enum
- ItemUseContext class A player using an item.
- ItemUseOnBlockContext class A player using an item on a block.
- ItemUseOnEntityContext class A player using an item on a living entity.
Obsidian.API.Inventory.DataComponents
- AttributeModifiersDataComponent record Attribute modifiers and the 1.21.11 per-modifier display override.
- BannerPatternsDataComponent record Banner layers with either a connection registry ID or inline pattern data.
- BeesDataComponent record
- BlockPredicate record struct
- BlockPredicatesDataComponent record
- BlockProperty record struct
- BucketEntityDataComponent record
- CanBreakDataComponent record
- CanPlaceOnDataComponent record
- ComponentBuilder class
- ComponentCodec<TValue> record How a plugin's component type saves its values: like vanilla's DataComponentType.codec(), to the NBT stacks are saved with, under the type's identifier in their components.
- ComponentConsumeEffect record The five 26.3 consume-effect payloads, selected by their registry ID.
- ComponentFloatValue record struct A constant or a context float provider key.
- ComponentHash class Vanilla HashOps value hashing: CRC32C, little-endian scalar payloads and sorted map-entry hashes.
- ComponentIntValue record struct A constant or a context int provider key. Evaluation belongs to the consuming gameplay system.
- ComponentNetworkCodec<TValue> record How a plugin's component type sends its values to clients, like vanilla's DataComponentType.streamCodec(). A client mod registering the same type must read and write the same bytes.
- ComponentPredicate record struct A partial component predicate: a minecraft:data_component_predicate_type id if ComponentPredicate.IsPredicateType, otherwise the id of the data component type that must be present.
- ConsumableDataComponent record
- CustomModelDataComponent record
- DataComponentsStorage class
- EntityDataComponent record Entity or block-entity type registry ID followed by its custom NBT.
- EquipmentAssets enum
- EquippableDataComponent record
- FireworksDataComponent record
- FoodDataComponent record Makes the item consumable.
- FuelComponentData record Cooking burn time or brewing uses, with the processing speed multiplier.
- IdSet record struct A set of a registry's entries, like vanilla's HolderSet stream codec: a tag, or ids that a connection may number differently (INetStreamReader.ReadRegistryId).
- InstrumentDataComponent record Inline instrument value or holder ID in the current connection's registry.
- JukeboxPlayableDataComponent record
- LodestoneTrackerDataComponent record
- MapDecoration record struct
- MapDecorationDataComponent record
- MapPostProcessingType enum
- MobVisibilityData record The entity types affected by an equipped item's targeting visibility multiplier.
- OpaqueDataComponent record A component's complete network value, excluding its type ID and any untrusted-codec length prefix.
- PluginComponentType<TValue> class A plugin's data component type, from IPluginRegistry.RegisterComponentType: read, set and remove its values on a stack with ItemStack.TryGet, ItemStack.Set and ItemStack.Remove.
- PluginDataComponent record A plugin component on a stack, kept in its saved form, so that the stack holds nothing of the plugin's. It outlives the plugin unloading, saved as it was, and its plugin reads it again once it's back.
- PotionContentsDataComponent record
- ProfileDataComponent record
- SimpleDataComponent record
- SimpleDataComponent<TValue> record A component whose payload is immutable, or isolated with a defensive copy function.
- ToolDataComponent record
- ToolRule record struct
- TrimDataComponent record
- UseCooldownDataComponent record
- WrittenBookDataComponent record
Obsidian.API.Loot
- EnchantmentCost record struct An enchanting power that grows linearly with the enchantment level.
- EnchantmentDefinition class The part of a vanilla enchantment definition that decides where it can be applied and at which level, used to enchant generated loot. The vanilla enchantments are in EnchantmentsRegistry.
- EnchantmentHelper class Vanilla's enchanting logic (EnchantmentHelper) for item stacks: picking enchantments for an enchanting power and adding them to a stack.
- ExplorationMapRequest record The parameters of a minecraft:exploration_map loot function.
- IExplorationMapFactory interface Creates explorer maps for loot, like vanilla's ExplorationMapFunction does with its level.
- InstrumentDefinition class A vanilla instrument (the sound a goat horn plays). The vanilla instruments are in InstrumentsRegistry.
- ItemSet class A set of items, like a vanilla item HolderSet (a list of ids or an item tag) resolved to item ids.
- LootContext class The state shared while generating loot from a table, like vanilla's LootContext: the random source every draw comes from, the luck and the optional context parameters.
- LootPool class A set of weighted entries rolled a number of times, like vanilla's LootPool.
- LootTable class A vanilla loot table: pools of weighted entries that generate item stacks. The vanilla tables are in LootTables.
- LootTableJson class Reads data pack block loot into the same evaluator used by container loot.
- LootTypeAttribute class Marks the class that implements a vanilla loot type (an entry, function, condition or number provider), e.g. [LootType("minecraft:set_count")]. The loot table source generator instantiates the class whose resource location matches the JSON discriminator and that is assignable to the property being filled.
- RandomSequences class A world's named random sequences, like vanilla's RandomSequences: each id gets one random source, seeded from the world seed and the id, that continues where the previous use left off. Unseeded loot tables draw from the sequence named by their LootTable.RandomSequence.
Obsidian.API.Loot.Conditions
Obsidian.API.Loot.Entries
- EmptyEntry class Generates nothing; its weight makes the other entries of the pool less likely.
- ItemEntry class Generates one item of ItemEntry.Name.
- LootPoolEntry class An entry of a loot pool, like vanilla's LootPoolEntryContainer.
- LootPoolSingletonEntry class An entry that can be picked by a pool roll, like vanilla's LootPoolSingletonContainer.
- LootTableEntry class Generates the items of another loot table, resolved by id through LootContext.ResolveTable.
Obsidian.API.Loot.Functions
- EnchantRandomlyFunction class Adds one random enchantment at a random level. A book becomes a single enchanted book.
- EnchantWithLevelsFunction class Enchants the stack like an enchanting table at EnchantWithLevelsFunction.Levels levels. A book becomes a single enchanted book.
- ExplorationMapFunction class Adds explorer map data for the nearest structure of ExplorationMapFunction.Destination.
- LootFunction class Modifies a generated item stack, like vanilla's LootItemConditionalFunction. Functions run in order and each receives the stack the previous one returned.
- NameTarget enum The name component SetNameFunction writes.
- SetCountFunction class Sets the stack size, or adds to it when SetCountFunction.Add is set. A result of 0 or less empties the stack.
- SetDamageFunction class Sets the remaining durability of a damageable item as a fraction of its max damage (1 = undamaged), or adds to it when SetDamageFunction.Add is set. Other items are left alone.
- SetEnchantmentsFunction class Sets the levels of the given enchantments (a level of 0 removes it), or adds to them when SetEnchantmentsFunction.Add is set. A book becomes an enchanted book with the same count.
- SetInstrumentFunction class Gives the stack an instrument picked at random from SetInstrumentFunction.Options.
- SetNameFunction class Sets the stack's custom name or item name.
- SetOminousBottleAmplifierFunction class Sets an ominous bottle's amplifier, clamped to 0..4.
- SetPotionFunction class Sets the potion of the stack's potion contents, keeping any custom color and effects.
- SetStewEffectFunction class Adds one of SetStewEffectFunction.Effects, picked at random, to a suspicious stew. Other items are left alone.
- StewEffect class An effect a suspicious stew can get, with its duration in seconds.
Obsidian.API.Loot.Numbers
- ConstantNumber class
- INumberProvider interface The programmatic plugin loot number API. Loot JSON uses the shared typed context providers through LootNumberProviders; existing plugins can still construct ConstantNumber values.
- LootNumberProviders class Adapts the shared typed context providers to the existing plugin loot API.
- UniformNumber class A uniformly distributed number between UniformNumber.Min and UniformNumber.Max, both inclusive for integers.
Obsidian.API.Networking
- ICustomPayload<TSelf> interface A custom payload sent over a plugin channel (a minecraft:custom_payload packet). Register it with IPluginRegistry.MapPayload and send it with IClient.SendPayloadAsync.
- PayloadContext class Where a received payload came from.
- PayloadDirection enum Which way a payload channel carries payloads. A NeoForge mod must declare the same direction for the channel, or the connection is refused.
- PayloadHandler<TPayload> delegate Handles a payload a client sent on a registered channel.
- PayloadPhase enum The connection phase a payload channel is used in.
Obsidian.API.Noise
- BiomeSelector class
- BitShiftInput class Usefull for zooming. Should be cached.
- Blend class
- BlendedNoise class Vanilla BlendedNoise (the minecraft:old_blended_noise density function): a main noise selects between two high-octave limit noises, giving pre-1.18 style terrain.
- Blur class
- DensityNoiseMapBuilder class Builds a density noise map.
- HeightNoiseMapBuilder class Builds a density noise map.
- ImprovedNoise class A single octave of vanilla Perlin noise (ImprovedNoise). Usually used through PerlinNoise.
- MathUtils class
- MojangPerlin class
- NormalNoise class Vanilla NormalNoise: the sum of two PerlinNoise instances (the second sampled at a slightly larger scale), normalized so the result has a deviation of about 1/3. This is what worldgen/noise definitions (firstOctave + amplitudes) instantiate.
- PerlinNoise class Multi-octave Perlin noise (vanilla PerlinNoise). Octave i samples at frequency 2^(FirstOctave + i) and is weighted by Amplitudes[i]; zero amplitudes skip the octave.
- PerlinSimplexNoise class Multi-octave 2D simplex noise (vanilla PerlinSimplexNoise), used for biome temperature variation: new PerlinSimplexNoise(new WorldgenRandom(new LegacyRandomSource(1234L)), [0]).
- RiverSelector class
- SimplexNoise class Vanilla simplex noise (SimplexNoise), used by PerlinSimplexNoise and the End islands.
- SplitScaleBias class Scale Results, then Apply Bias.
- VoronoiTunnels class
Obsidian.API.Particles
Obsidian.API.Plugins
- AliasAttribute class Specifies the property/field name that is used for dependency injection.
- InjectAttribute class Indicates that the property should be injected with a service.
- IPluginContainer interface
- IPluginInfo interface
- IPluginRegistry interface
- PluginBase class Provides the base class for a plugin.
- PluginDependency record struct Another plugin that a plugin depends on, modelled on a NeoForge mod dependency.
- PluginDependencyOrdering enum
- PluginDependencyType enum How a plugin relates to one it names as a dependency. Matches the dependency types of NeoForge's mod metadata.
- PluginSide enum Where a plugin or a dependency applies, like NeoForge's side.
- ValueTaskContextDelegate<TContext> delegate
Obsidian.API.Progress
Obsidian.API.Registries
- BannerPatternsRegistry class Vanilla's banner patterns (the minecraft:banner_pattern registry), numbered by identifier like a data pack's registry, and the tags that say which the loom offers: no_item_required's without a pattern item, a pattern_item/... tag's with one.
- BlockIds class Vanilla's block ids (IBlock.RegistryId), as constants to match blocks by in switches and patterns. Plugins' blocks have no constant: compare them by their block type.
- CodecRegistry class
- CodecRegistry.Biomes class
- CodecRegistry.CatVariant class
- CodecRegistry.ChatType class
- CodecRegistry.ChickenVariant class
- CodecRegistry.CowVariant class
- CodecRegistry.DamageType class
- CodecRegistry.Dialog class
- CodecRegistry.Dimensions class
- CodecRegistry.FrogVariant class
- CodecRegistry.PaintingVariant class
- CodecRegistry.PigVariant class
- CodecRegistry.TrimMaterial class
- CodecRegistry.TrimPattern class
- CodecRegistry.WolfSoundVariant class
- CodecRegistry.WolfVariant class
- CodecRegistry.ZombieNautilusVariant class
- DialogRegistration record A registered dialog.
- DialogRegistry class Custom dialogs synchronized when players configure. Register them during plugin initialization.
- EnchantmentsRegistry class Vanilla enchantments, generated from Assets/enchantments.json.
- InstrumentsRegistry class Vanilla instruments, generated from Assets/instruments.json.
- ItemIds class Vanilla's item ids (Item.Id), as constants to match items by in switches and patterns. Plugins' items have no constant: compare them by instance.
- ItemsRegistry class Every item: vanilla's, as static properties and in vanilla's id order, then the ones plugins registered.
- LootTables class Vanilla loot tables, generated from Assets/loot_table. Each nested class holds one category (the first folder of the id), e.g. minecraft:chests/simple_dungeon is LootTables.Chests.SimpleDungeon.
- LootTables.Archaeology class
- LootTables.Blocks class
- LootTables.Carve class
- LootTables.Chests class
- LootTables.Dispensers class
- LootTables.Entities class
- LootTables.Equipment class
- LootTables.Gameplay class
- LootTables.Harvest class
- LootTables.Pots class
- LootTables.Spawners class
- TagKey record struct Names a tag by its registry and identifier, like Fabric's and NeoForge's tag keys; looking it up gives the tag as it is now, with what plugins added to it.
- TagsRegistry class
- TagsRegistry.BannerPattern class
- TagsRegistry.BannerPattern.PatternItem class
- TagsRegistry.Block class
- TagsRegistry.Block.Mineable class
- TagsRegistry.DamageType class
- TagsRegistry.Dialog class
- TagsRegistry.Enchantment class
- TagsRegistry.Enchantment.ExclusiveSet class
- TagsRegistry.EntityType class
- TagsRegistry.Fluid class
- TagsRegistry.GameEvent class
- TagsRegistry.Instrument class
- TagsRegistry.Item class
- TagsRegistry.Item.Enchantable class
- TagsRegistry.Item.SulfurCubeArchetype class
- TagsRegistry.PaintingVariant class
- TagsRegistry.PointOfInterestType class
- TagsRegistry.Potion class
- TagsRegistry.Timeline class
- TagsRegistry.VillagerTrade class
- TagsRegistry.VillagerTrade.Armorer class
- TagsRegistry.VillagerTrade.Butcher class
- TagsRegistry.VillagerTrade.Cartographer class
- TagsRegistry.VillagerTrade.Cleric class
- TagsRegistry.VillagerTrade.CommonSmith class
- TagsRegistry.VillagerTrade.Farmer class
- TagsRegistry.VillagerTrade.Fisherman class
- TagsRegistry.VillagerTrade.Fletcher class
- TagsRegistry.VillagerTrade.Leatherworker class
- TagsRegistry.VillagerTrade.Librarian class
- TagsRegistry.VillagerTrade.Mason class
- TagsRegistry.VillagerTrade.Shepherd class
- TagsRegistry.VillagerTrade.Toolsmith class
- TagsRegistry.VillagerTrade.WanderingTrader class
- TagsRegistry.VillagerTrade.Weaponsmith class
- TagsRegistry.Worldgen class
- TagsRegistry.Worldgen.Biome class
- TagsRegistry.Worldgen.Feature class
- TagsRegistry.Worldgen.FlatLevelGeneratorPreset class
- TagsRegistry.Worldgen.Structure class
- TagsRegistry.Worldgen.WorldPreset class
- TimelinesRegistry class Vanilla's timelines (the minecraft:timeline registry), numbered by identifier like a data pack's registry, and the tags dimension types name: clients take a dimension's day and night, its moon and its villager schedule from the timelines its tag holds, so without them the overworld's sky never darkens.
Obsidian.API.Registry.Codecs
Obsidian.API.Registry.Codecs.ArmorTrims
Obsidian.API.Registry.Codecs.ArmorTrims.TrimMaterial
Obsidian.API.Registry.Codecs.ArmorTrims.TrimPattern
Obsidian.API.Registry.Codecs.Biomes
- BiomeCodec record
- BiomeEffect record A 1.21.11 biome's effects (vanilla's BiomeSpecialEffects). Colours are hex strings like #3f76e4, as vanilla writes them; sky and fog colours, particles and sounds became environment attributes in 1.21.11.
- BiomeElement record The parts of a 26.3 biome the server uses. Vanilla's entries are generated with their climate and effects; plugins' are read whole from their data files. Server rules retain the full environment map; clients receive only its synced attributes.
- SpawnCost class
- SpawnerMob class
Obsidian.API.Registry.Codecs.Chat
Obsidian.API.Registry.Codecs.DamageTypes
Obsidian.API.Registry.Codecs.Dialogs
Obsidian.API.Registry.Codecs.Dimensions
- DimensionCodec record
- DimensionElement record The parts of a 1.21.11 dimension type the server uses. Its environment attributes, timelines, skybox and cardinal light are only sent to clients, for plugins' entries.
- MonsterSpawnLightLevel record A dimension type's monster spawn light level: a constant, or a provider with a range.
- MonsterSpawnLightLevelValue record struct
Obsidian.API.Registry.Codecs.PaintingVariant
Obsidian.API.Registry.Codecs.WolfSoundVariant
Obsidian.API.Registry.Codecs.WolfVariant
Obsidian.API.Registry.Codecs.ZombieNautilusVariant
Obsidian.API.Utilities
Obsidian.API.Utilities.Concurrency
Obsidian.API.Utilities.Interfaces
Obsidian.API.World
- IConfigurableLevelGenerator interface A level generator that takes settings from the level stem naming it as its generator, like {"type": "ruby:sky_islands", "island_size": 12} in data/ruby/dimension/islands.json.
- ILevel interface
- ILevelFactory interface
- ILevelGenerator interface
- ISpline interface A cubic spline used for terrain shaping.
- PortalProperties record A rectangular portal, registered during ConfigureRegistry.
- PortalType class Process-lifetime portal identity. Unload releases its behaviour, leaving placed blocks inert. Register the identifier again on reload to reactivate them.
- Spline class Multipoint cubic spline over a density function coordinate.
- SplineConstant record struct
- SplinePoint record struct
- WorldGenSetting class
Obsidian.API.World.DimensionSettings
Obsidian.API.World.Features
- BiomeSet class A set of biomes written like vanilla's biome holder sets: biome ids and #-prefixed biome tags, resolved on first use and again once plugins' tags change.
- BlockSet class A set of blocks written as block ids and block tags (#minecraft:logs), like vanilla's HolderSet<Block>.
- ConfiguredFeatureBase class A feature type together with its settings, like vanilla's ConfiguredFeature.
- FeatureContext class Everything a configured feature needs to place itself, like vanilla's FeaturePlaceContext.
- GeneratedEntity record An entity placed by world generation (end crystals, structure mobs...), spawned once its chunk is complete.
- IBlockPredicate interface Tests the block at a position, like vanilla's BlockPredicate.
- IHeightProvider interface Samples a Y level, like vanilla's HeightProvider.
- IRuleTest interface Decides whether a block may be replaced, used by ore targets. Like vanilla's RuleTest.
- IWorldGenLevel interface Synchronous block access used while generating a chunk, like vanilla's WorldGenLevel.
- PlacedFeature class A configured feature plus the placement modifiers that decide where and how often it's placed, like vanilla's PlacedFeature.
- PlacementContext class State shared by the placement modifiers of one placed feature.
- PlacementFilterBase class A modifier that keeps or drops the position, like vanilla's PlacementFilter.
- PlacementModifierBase class Turns one candidate position into zero or more positions (counts, spreads, filters), like vanilla's PlacementModifier.
- SinglePlacementModifierBase class A modifier that gives at most one position: it moves the position, or drops it.
- VerticalAnchor record struct A Y level that is absolute or relative to the bottom or top of the generated area.
- WeightedEntry<T> class An entry of a vanilla weighted list ({"data": ..., "weight": n}).
- WorldGenerationContext record struct Vertical range the chunk generator works in, used to resolve VerticalAnchors.
Obsidian.API.World.Features.Trees
- AboveRootPlacement class Blocks occasionally placed on top of roots (moss carpet for mangroves), like vanilla's AboveRootPlacement.
- FeatureSize class How much free space a tree needs around its trunk at each height, like vanilla's FeatureSize: a tree's minimum_size. Plugins add types with RegisterWorldgenType<FeatureSize, T>.
- FoliageAttachment record struct Where a foliage placer should place leaves, like vanilla's FoliagePlacer.FoliageAttachment.
- FoliagePlacer class Places a tree's leaves around each FoliageAttachment, like vanilla's FoliagePlacer. Plugins add types with RegisterWorldgenType<FoliagePlacer, T>.
- RootPlacer class Places roots below a raised trunk, like vanilla's RootPlacer (only mangroves use one). Plugins add types with RegisterWorldgenType<RootPlacer, T>.
- TreeContext class One tree being placed by a minecraft:tree feature, which it passes to its trunk, foliage and root placers.
- TreeDecorator class Adds extras (vines, beehives, cocoa, ground cover...) to a placed tree, like vanilla's TreeDecorator. Plugins add types with RegisterWorldgenType<TreeDecorator, T>.
- TreeDecoratorContext class What a TreeDecorator sees of the placed tree, like vanilla's TreeDecorator.Context. Only the server creates contexts.
- TrunkPlacer class Places a tree's trunk and reports where foliage attaches, like vanilla's TrunkPlacer. Plugins add types with RegisterWorldgenType<TrunkPlacer, T>.
Obsidian.API.World.Generator
- BiomeSourceBase class A biome source type a plugin adds, like a NeoForge mod's BiomeSource: a level stem's biome_source names it in its type, and the object's other keys set its properties. Register it with IPluginRegistry.RegisterWorldgenType<BiomeSourceBase, TSource>.
- ClimateBiome record A biome and the climate it's picked in, like an entry of a minecraft:multi_noise biome source's biomes: where a column's climate is nearest to these ranges, the biome generates.
- ClimatePoint record struct The router's climate values at a position, before vanilla quantizes them to pick a multi-noise biome: mostly from -1 to 1, the range of vanilla's biome parameters.
- ClimateRange record struct A range of a climate parameter, from -2 to 2. A single value converts to the range of that value alone.
- IClimateSampler interface Samples the climate of the noise settings' router, like vanilla's Climate.Sampler.
- SimpleBlockStateExtensions class Extension methods for converting SimpleBlockState to IBlock. Since ChunkBuilder is in the API project and can't access BlocksRegistry directly, we use a delegate pattern to provide the conversion logic.
Obsidian.API.World.Generator.DensityFunctions
- AbsDensityFunction class
- AddDensityFunction class
- BlendAlphaDensityFunction class Blending weight used when blending into pre-1.18 chunks. Always 1 without blending data, as in vanilla.
- BlendDensityFunction class Blends density into pre-1.18 chunks. Without blending data this passes the argument through, as in vanilla.
- BlendOffsetDensityFunction class Terrain offset used when blending into pre-1.18 chunks. Always 0 without blending data, as in vanilla.
- Cache2DDensityFunction class Caches the last value per block column.
- CacheOnceDensityFunction class Caches the last value per sampled position.
- ClampDensityFunction class
- ConstantDensityFunction class
- CubeDensityFunction class
- EndIslandsDensityFunction class Height field of the main End island and the outer islands.
- FindTopSurface class Scans down from FindTopSurface.UpperBound in steps of FindTopSurface.CellHeight and returns the first Y where FindTopSurface.Density is positive, or FindTopSurface.LowerBound if none is found.
- FlatCacheDensityFunction class Caches the argument per quart column (sampled at y = 0) for the chunk being generated.
- HalfNegativeDensityFunction class
- InterpolatedDensityFunction class Samples the argument at cell corners and trilinearly interpolates between them during terrain fill.
- InvertDensityFunction class
- MaxDensityFunction class
- MinDensityFunction class
- MulDensityFunction class
- NoiseDensityFunction class
- OldBlendedNoiseDensityFunction class The pre-1.18 3D terrain noise, still used as the base of overworld and nether terrain.
- QuarterNegativeDensityFunction class
- RangeChoiceDensityFunction class
- ShiftADensityFunction class Samples the noise at (x / 4, 0, z / 4), scaled by 4. Used for x offsets.
- ShiftBDensityFunction class Samples the noise at (z / 4, x / 4, 0), scaled by 4. Used for z offsets.
- ShiftDensityFunction class Samples the noise at a quarter of the block position, scaled by 4.
- ShiftedNoiseDensityFunction class
- SplineDensityFunction class
- SquareDensityFunction class
- SqueezeDensityFunction class
- WeirdScaledSamplerDensityFunction class
- YClampedGradientDensityFunction class
Obsidian.API.World.Generator.Noise
Obsidian.API.World.Generator.RandomSources
- BitRandomSource class Base for sources that produce values from a BitRandomSource.Next bit generator, with the same derivations as java.util.Random (vanilla BitRandomSource).
- IPositionalRandomFactory interface Port of vanilla's PositionalRandomFactory: derives independent, deterministic randoms from a block position, a name (e.g. "minecraft:terrain") or a seed.
- IRandomSource interface Port of vanilla's RandomSource. Implementations produce exactly the same sequence as Minecraft for the same seed, so world generation can match vanilla bit-for-bit. Implementations are not thread-safe.
- LegacyPositionalRandomFactory class Positional factory produced by LegacyRandomSource.ForkPositional.
- LegacyRandomSource class 48-bit linear congruential generator identical to java.util.Random (vanilla LegacyRandomSource). Used by legacy noises, features and structure placement.
- Mth class The subset of vanilla's Mth needed for bit-exact world generation and entity rotation. Argument order matches vanilla (the interpolation factor comes first).
- RandomSupport class Seed helpers shared by the random sources (vanilla RandomSupport).
- Seed128Bit record struct A 128-bit seed split into two 64-bit halves.
- WorldgenRandom class Wraps another source and adds vanilla's feature/decoration seeding helpers (vanilla WorldgenRandom). All values are derived from the wrapped source: a LegacyRandomSource supplies bits directly, any other source supplies the top bits of IRandomSource.NextLong.
- XoroshiroPositionalRandomFactory class Positional factory produced by XoroshiroRandomSource.ForkPositional.
- XoroshiroRandomSource class xoroshiro128++ random source used by modern (1.18+) world generation.
Obsidian.API.World.Generator.SurfaceConditions
- AbovePreliminarySurfaceCondition class
- BiomeSurfaceCondition record
- HoleSurfaceCondition class
- NoiseThresholdSurfaceCondition record
- NotSurfaceCondition record
- SteepSurfaceCondition class
- StoneDepthSurfaceCondition record
- TemperatureSurfaceCondition class
- VerticalAnchor record struct
- VerticalGradient record
- WaterSurfaceCondition record
- YAboveSurfaceCondition record
Obsidian.API.World.Generator.SurfaceRules
Obsidian.API.World.Structures
- BlockArea record struct A box of blocks, from BlockArea.Min to BlockArea.Max inclusive.
- CustomPieceContext class What a CustomStructurePiece or CustomPoolElement sees while it's placed in the chunk being decorated. Only the server creates contexts.
- CustomPoolElement class A pool element type a plugin adds in code, like a NeoForge mod's pool element type: template pools name it in an element's element_type. Register it with RegisterWorldgenType<CustomPoolElement, T>.
- CustomStructure class A structure type a plugin adds in code, like a NeoForge mod's structure type: structure files name it in their type. Register it with RegisterWorldgenType<CustomStructure, T>.
- CustomStructurePiece class A piece of a CustomStructure: an area of blocks, placed by each chunk it reaches as that chunk is decorated.
- PieceRotation enum How a structure's pool element is turned around its origin, clockwise seen from above.
- PoolJigsaw record struct A jigsaw of a CustomPoolElement, like a jigsaw block a structure block saves in a template.
- StructureBlockInfo record struct One block of a structure template, like vanilla's StructureTemplate.StructureBlockInfo.
- StructureProcessor class Changes or drops template blocks as they're placed, like vanilla's StructureProcessor. Data names a processor by its processor_type; plugins add types with RegisterWorldgenType<StructureProcessor, T>.
- StructureStartContext class What a CustomStructure sees while it decides whether and how it starts in a chunk, before any chunk exists. Only the server creates contexts.
- TemplatePlacement class What a StructureProcessor sees of how its template is placed, like the parts of vanilla's StructurePlaceSettings processors use. Only the server creates placements.
Not listed:
Obsidian.API.BlockStates (884 types). A generated state type for each vanilla block.Obsidian.API.BlockStates.Builders (884 types). A generated builder for each vanilla block's states.