Class PlayerHelper
java.lang.Object
io.github.icrazyblaze.twitchmod.util.PlayerHelper
-
Field Summary
Modifier and TypeFieldDescriptionstatic net.minecraft.server.MinecraftServer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static net.minecraft.server.level.ServerPlayer
player()
This method gets a reference to the player, using the username specified.static void
setUsername(String newname)
-
Field Details
-
defaultServer
public static net.minecraft.server.MinecraftServer defaultServer -
affectedPlayers
-
-
Constructor Details
-
PlayerHelper
public PlayerHelper()
-
-
Method Details
-
player
public static net.minecraft.server.level.ServerPlayer player()This method gets a reference to the player, using the username specified. If the player is not found, it will get the first player in the list.- Returns:
- player
-
getUsername
-
setUsername
-