24w39a
This commit is contained in:
1 parent
ad8680826d
commit
85d848c488
21 files changed
+80
-32
No files matched your search
@@ -10,6 +10,7 @@ import net.minecraft.network.chat.HoverEvent;
|
||||
import net.minecraft.network.chat.Style;
|
||||
import net.minecraft.network.chat.TextColor;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.server.level.ServerPlayer;
|
||||
import net.minecraft.world.entity.MobCategory;
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
@@ -243,7 +244,7 @@ public class Messenger
|
||||
}
|
||||
public static void m(Player player, Object ... fields)
|
||||
{
|
||||
player.sendSystemMessage(Messenger.c(fields));
|
||||
((ServerPlayer)player).sendSystemMessage(Messenger.c(fields));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -287,7 +288,7 @@ public class Messenger
|
||||
|
||||
public static void send(Player player, Collection<Component> lines)
|
||||
{
|
||||
lines.forEach(message -> player.sendSystemMessage(message));
|
||||
lines.forEach(message -> ((ServerPlayer)player).sendSystemMessage(message));
|
||||
}
|
||||
public static void send(CommandSourceStack source, Collection<Component> lines)
|
||||
{
|
||||
@@ -301,7 +302,7 @@ public class Messenger
|
||||
LOG.error("Message not delivered: "+message);
|
||||
server.sendSystemMessage(Component.literal(message));
|
||||
Component txt = c("gi "+message);
|
||||
for (Player entityplayer : server.getPlayerList().getPlayers())
|
||||
for (ServerPlayer entityplayer : server.getPlayerList().getPlayers())
|
||||
{
|
||||
entityplayer.sendSystemMessage(txt);
|
||||
}
|
||||
@@ -311,7 +312,7 @@ public class Messenger
|
||||
if (server == null)
|
||||
LOG.error("Message not delivered: "+message.getString());
|
||||
server.sendSystemMessage(message);
|
||||
for (Player entityplayer : server.getPlayerList().getPlayers())
|
||||
for (ServerPlayer entityplayer : server.getPlayerList().getPlayers())
|
||||
{
|
||||
entityplayer.sendSystemMessage(message);
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import net.minecraft.commands.CommandSourceStack;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.network.chat.Component;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.server.level.ServerPlayer;
|
||||
import net.minecraft.tags.BlockTags;
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.item.DyeColor;
|
||||
@@ -60,7 +61,7 @@ public class WoolTool
|
||||
* <li>Green - Prints the contents of the counter of the colour of wool underneath the carpet</li>
|
||||
* </ul>
|
||||
*/
|
||||
public static void carpetPlacedAction(DyeColor color, Player placer, BlockPos pos, ServerLevel worldIn)
|
||||
public static void carpetPlacedAction(DyeColor color, ServerPlayer placer, BlockPos pos, ServerLevel worldIn)
|
||||
{
|
||||
if (!CarpetSettings.carpets)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user