mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-02 16:05:29 +00:00
update ServerCommandSourceMixin
This commit is contained in:
parent
36f89946d4
commit
549edd11ea
@ -37,9 +37,6 @@ import com.dfsek.terra.api.entity.Player;
|
||||
@Mixin(ServerCommandSource.class)
|
||||
@Implements(@Interface(iface = CommandSender.class, prefix = "terra$"))
|
||||
public abstract class ServerCommandSourceMixin {
|
||||
@Shadow
|
||||
public abstract void sendFeedback(Text message, boolean broadcastToOps);
|
||||
|
||||
@Shadow
|
||||
public abstract ServerPlayerEntity getPlayer() throws CommandSyntaxException;
|
||||
|
||||
@ -47,8 +44,11 @@ public abstract class ServerCommandSourceMixin {
|
||||
@Nullable
|
||||
public abstract net.minecraft.entity.@Nullable Entity getEntity();
|
||||
|
||||
@Shadow
|
||||
public abstract void sendMessage(Text message);
|
||||
|
||||
public void terra$sendMessage(String message) {
|
||||
sendFeedback(Text.literal(message), true);
|
||||
sendMessage(Text.literal(message));
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
Loading…
x
Reference in New Issue
Block a user