Class VelocitySource
java.lang.Object
one.tranic.t.velocity.command.source.VelocitySource
- All Implemented Interfaces:
one.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
public class VelocitySource
extends Object
implements one.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
Constructor Summary
ConstructorsConstructorDescriptionVelocitySource(com.velocitypowered.api.command.CommandSource commandSource) VelocitySource(com.velocitypowered.api.command.SimpleCommand.Invocation invocation) -
Method Summary
Modifier and TypeMethodDescriptionintargSize()@Nullable VelocityPlayerasPlayer()voidvoidString[]getArgs()@Nullable Localeone.tranic.t.base.command.Operatorcom.velocitypowered.api.command.CommandSourcebooleanhasPermission(String permission) voidhideBossBar(@NotNull net.kyori.adventure.bossbar.BossBar bossBar) booleanisPlayer()voidsendMessage(@NotNull net.kyori.adventure.text.Component message) voidsendMessage(String message) voidshowBossBar(@NotNull net.kyori.adventure.bossbar.BossBar bossBar) voidshowTitle(@NotNull net.kyori.adventure.title.Title title) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.tranic.t.base.command.source.CommandSource
isBedrockPlayer
-
Constructor Details
-
VelocitySource
public VelocitySource(com.velocitypowered.api.command.CommandSource commandSource) -
VelocitySource
public VelocitySource(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)
-
-
Method Details
-
getOperator
public one.tranic.t.base.command.Operator getOperator()- Specified by:
getOperatorin interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
getSource
public com.velocitypowered.api.command.CommandSource getSource()- Specified by:
getSourcein interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
isPlayer
public boolean isPlayer()- Specified by:
isPlayerin interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
getArgs
- Specified by:
getArgsin interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
argSize
public int argSize()- Specified by:
argSizein interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
getLocale
- Specified by:
getLocalein interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
hasPermission
- Specified by:
hasPermissionin interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
sendMessage
- Specified by:
sendMessagein interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.text.Component message) - Specified by:
sendMessagein interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
showBossBar
public void showBossBar(@NotNull @NotNull net.kyori.adventure.bossbar.BossBar bossBar) - Specified by:
showBossBarin interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
hideBossBar
public void hideBossBar(@NotNull @NotNull net.kyori.adventure.bossbar.BossBar bossBar) - Specified by:
hideBossBarin interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
clearBossBars
public void clearBossBars()- Specified by:
clearBossBarsin interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
showTitle
public void showTitle(@NotNull @NotNull net.kyori.adventure.title.Title title) - Specified by:
showTitlein interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
clearTitle
public void clearTitle()- Specified by:
clearTitlein interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-
asPlayer
- Specified by:
asPlayerin interfaceone.tranic.t.base.command.source.CommandSource<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
-