mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 16:35:50 +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)
|
@Mixin(ServerCommandSource.class)
|
||||||
@Implements(@Interface(iface = CommandSender.class, prefix = "terra$"))
|
@Implements(@Interface(iface = CommandSender.class, prefix = "terra$"))
|
||||||
public abstract class ServerCommandSourceMixin {
|
public abstract class ServerCommandSourceMixin {
|
||||||
@Shadow
|
|
||||||
public abstract void sendFeedback(Text message, boolean broadcastToOps);
|
|
||||||
|
|
||||||
@Shadow
|
@Shadow
|
||||||
public abstract ServerPlayerEntity getPlayer() throws CommandSyntaxException;
|
public abstract ServerPlayerEntity getPlayer() throws CommandSyntaxException;
|
||||||
|
|
||||||
@ -47,8 +44,11 @@ public abstract class ServerCommandSourceMixin {
|
|||||||
@Nullable
|
@Nullable
|
||||||
public abstract net.minecraft.entity.@Nullable Entity getEntity();
|
public abstract net.minecraft.entity.@Nullable Entity getEntity();
|
||||||
|
|
||||||
|
@Shadow
|
||||||
|
public abstract void sendMessage(Text message);
|
||||||
|
|
||||||
public void terra$sendMessage(String message) {
|
public void terra$sendMessage(String message) {
|
||||||
sendFeedback(Text.literal(message), true);
|
sendMessage(Text.literal(message));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user