From 7eb4b673b765b3b79d9548010554c76d5cc322f5 Mon Sep 17 00:00:00 2001 From: melontini <104443436+melontini@users.noreply.github.com> Date: Tue, 30 Apr 2024 23:39:53 +0700 Subject: [PATCH] Update Events.md --- docs/develop/Events.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/develop/Events.md b/docs/develop/Events.md index aa89d0c..d0921e1 100644 --- a/docs/develop/Events.md +++ b/docs/develop/Events.md @@ -20,7 +20,7 @@ EventType.builder() .build(new Identifier("modid", "custom_event")); ``` -Events can aceepts additional parameters using `extension()`. After specifying an extension you can return a custom type. +Events can accept additional parameters using `extension()`. After specifying an extension you can return a custom type. ```java EventType.builder() @@ -53,7 +53,7 @@ private static LootContext makeContext(ServerWorld world, Entity entity, Vec3d o If you did specify an extension, or are using an unsupported return type, you'll have to write custom resolution logic. -To do that you'll simple have to create an `EventContext`. `EventContext` is used to pass execution parameters to commands. +To do that you'll simply have to create an `EventContext`. `EventContext` is used to pass execution parameters to commands. ```java EventContext context = EventContext.builder(type) @@ -66,4 +66,4 @@ To get the return value, you can call `getReturnValue(def)`, the default value c ```java boolean val = context.getReturnValue(def); if (val != def) return val; -``` \ No newline at end of file +``` -- 2.51.2