Update to 22w17a

This commit is contained in:
shedaniel
2022-04-28 14:01:55 +08:00
parent d6a12573ab
commit e901cc953f
7 changed files with 40 additions and 30 deletions

View File

@@ -24,6 +24,7 @@ import dev.architectury.event.Event;
import dev.architectury.event.EventFactory;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.network.chat.ChatSender;
import net.minecraft.network.chat.ChatType;
import net.minecraft.network.chat.Component;
import org.jetbrains.annotations.Nullable;
@@ -63,10 +64,10 @@ public interface ClientChatEvent {
*
* @param type Where was the message emitted from.
* @param message The chat message.
* @param sender The packet sender. Can be {@code null}, but probably is the sending player UUID or {@link net.minecraft.Util#NIL_UUID}
* @param sender The packet sender. Can be {@code null}, but probably is the sending player UUID or null for system messages.
* @return A {@link CompoundEventResult} determining the outcome of the event,
* if an outcome is set, the received message is overridden.
*/
CompoundEventResult<Component> process(ChatType type, Component message, @Nullable UUID sender);
CompoundEventResult<Component> process(ChatType type, Component message, @Nullable ChatSender sender);
}
}