Object PlayerExt
-
- All Implemented Interfaces:
public class PlayerExt
-
-
Method Summary
Modifier and Type Method Description final BooleanisLookingAt(Player $self, Entity entity)final UnitsendTo(Player $self, ResourceKey<Level> dest)final UnitawardAdvancement(Player $self, ResourceLocation location)final BooleanisMultiplayer(Player $self)final UnittrySendOverlay(Player $self, ResourceLocation texture, Integer duration)final UnittrySendOverlay(Player $self, String texture, Integer duration)final UnittryClearOverlays(Player $self)final UnittryShowAlert(Player $self, String title, String message)final <P extends CustomPacketPayload> UnittrySendCustomPacket(Player $self, P packet)final UnittrySendSound(Player $self, SoundEvent sound, Float volume, Float pitch, SoundSource source, Vec3 pos, Long seed)final UnittrySendSound(Player $self, Holder<SoundEvent> sound, Float volume, Float pitch, SoundSource source, Vec3 pos, Long seed)final UnitsendSound(ServerPlayer $self, SoundEvent sound, Float volume, Float pitch, SoundSource source, Vec3 pos, Long seed)final UnitsendSound(ServerPlayer $self, Holder<SoundEvent> sound, Float volume, Float pitch, SoundSource source, Vec3 pos, Long seed)final UnitupdateAltConsoleCommand(ServerPlayer $self, String value)final UnitsetActionBar(Player $self, Component text)final Unitkick(ServerPlayer $self, Component text)final UnitstopAllSounds(ServerPlayer $self)final GameTypegetGameMode(Player $self)final UnitsetGameMode(Player $self, GameType gameMode)final PlayerVariablesgetVars(Player $self)final UnitsetVars(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)
-
-
-
-