Object PlayerExt
-
- All Implemented Interfaces:
public class PlayerExt
-
-
Method Summary
Modifier and Type Method Description final Boolean
isLookingAt(Player $self, Entity entity)
final Unit
sendTo(Player $self, ResourceKey<Level> dest)
final Unit
awardAdvancement(Player $self, ResourceLocation location)
final Boolean
isMultiplayer(Player $self)
final Unit
trySendOverlay(Player $self, ResourceLocation texture, Integer duration)
final Unit
trySendOverlay(Player $self, String texture, Integer duration)
final Unit
tryClearOverlays(Player $self)
final Unit
tryShowAlert(Player $self, String title, String message)
final <P extends CustomPacketPayload> Unit
trySendCustomPacket(Player $self, P packet)
final Unit
trySendSound(Player $self, SoundEvent sound, Float volume, Float pitch, SoundSource source, Vec3 pos, Long seed)
final Unit
trySendSound(Player $self, Holder<SoundEvent> sound, Float volume, Float pitch, SoundSource source, Vec3 pos, Long seed)
final Unit
sendSound(ServerPlayer $self, SoundEvent sound, Float volume, Float pitch, SoundSource source, Vec3 pos, Long seed)
final Unit
sendSound(ServerPlayer $self, Holder<SoundEvent> sound, Float volume, Float pitch, SoundSource source, Vec3 pos, Long seed)
final Unit
updateAltConsoleCommand(ServerPlayer $self, String value)
final Unit
setActionBar(Player $self, Component text)
final Unit
kick(ServerPlayer $self, Component text)
final Unit
stopAllSounds(ServerPlayer $self)
final GameType
getGameMode(Player $self)
final Unit
setGameMode(Player $self, GameType gameMode)
final PlayerVariables
getVars(Player $self)
final Unit
setVars(Player $self, PlayerVariables vars)
-
-
Method Detail
-
isLookingAt
final Boolean isLookingAt(Player $self, Entity entity)
-
awardAdvancement
final Unit awardAdvancement(Player $self, ResourceLocation location)
-
isMultiplayer
final Boolean isMultiplayer(Player $self)
-
trySendOverlay
final Unit trySendOverlay(Player $self, ResourceLocation texture, Integer duration)
-
trySendOverlay
final Unit trySendOverlay(Player $self, String texture, Integer duration)
-
tryClearOverlays
final Unit tryClearOverlays(Player $self)
-
tryShowAlert
final Unit tryShowAlert(Player $self, String title, String message)
-
trySendCustomPacket
final <P extends CustomPacketPayload> Unit trySendCustomPacket(Player $self, P packet)
-
trySendSound
final Unit trySendSound(Player $self, SoundEvent sound, Float volume, Float pitch, SoundSource source, Vec3 pos, Long seed)
-
trySendSound
final Unit trySendSound(Player $self, Holder<SoundEvent> sound, Float volume, Float pitch, SoundSource source, Vec3 pos, Long seed)
-
sendSound
final Unit sendSound(ServerPlayer $self, SoundEvent sound, Float volume, Float pitch, SoundSource source, Vec3 pos, Long seed)
-
sendSound
final Unit sendSound(ServerPlayer $self, Holder<SoundEvent> sound, Float volume, Float pitch, SoundSource source, Vec3 pos, Long seed)
-
updateAltConsoleCommand
final Unit updateAltConsoleCommand(ServerPlayer $self, String value)
-
setActionBar
final Unit setActionBar(Player $self, Component text)
-
stopAllSounds
final Unit stopAllSounds(ServerPlayer $self)
-
getGameMode
final GameType getGameMode(Player $self)
-
setGameMode
final Unit setGameMode(Player $self, GameType gameMode)
-
getVars
final PlayerVariables getVars(Player $self)
-
setVars
final Unit setVars(Player $self, PlayerVariables vars)
-
-
-
-