Skip to content

Commit

Permalink
fix(docs): an item is not an event bus
Browse files Browse the repository at this point in the history
  • Loading branch information
ChampionAsh5357 authored May 26, 2024
1 parent 40bc937 commit 7a7b960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/networking/streamcodecs.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public static final StreamCodec<ByteBuf, Item> UNIT_STREAM_CODEC =
Sometimes, a stream codec may rely on data that is not present when it is constructed. In these situations `NeoForgeStreamCodecs#lazy` can be used for a stream codec to construct itself on first read/write. The method takes in a supplied stream codec.

```java
public static final StreamCodec<ByteBuf, IEventBus> LAZY_STREAM_CODEC =
public static final StreamCodec<ByteBuf, Item> LAZY_STREAM_CODEC =
NeoForgeStreamCodecs.lazy(
() -> StreamCodec.unit(Items.AIR)
);
Expand Down

1 comment on commit 7a7b960

@neoforged-pages-deployments
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploying with Cloudflare Pages

Name Result
Last commit: 7a7b96027c6beb2c81aca0927e45983d9ada96c9
Status: ✅ Deploy successful!
Preview URL: https://ac11b85d.neoforged-docs-previews.pages.dev
PR Preview URL: https://pr-80.neoforged-docs-previews.pages.dev

Please sign in to comment.