We forgot to add player into ChatEvent#SERVER

This commit is contained in:
shedaniel
2020-11-07 03:39:15 +08:00
parent daa3d4d8a4
commit cd641029c3
3 changed files with 4 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.network.chat.ChatType;
import net.minecraft.network.chat.Component;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.InteractionResultHolder;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -56,6 +57,6 @@ public interface ChatEvent {
interface Server {
@NotNull
InteractionResultHolder<Component> process(String message, Component component);
InteractionResultHolder<Component> process(ServerPlayer player, String message, Component component);
}
}