public abstract class ViaListener extends Object
Constructor and Description |
---|
ViaListener(Class<? extends Protocol> requiredPipeline) |
Modifier and Type | Method and Description |
---|---|
protected Class<? extends Protocol> |
getRequiredPipeline() |
protected @Nullable UserConnection |
getUserConnection(UUID uuid)
Get the UserConnection from an UUID
|
protected boolean |
isOnPipe(UUID uuid)
Checks if the UUID is on the selected pipe
|
protected boolean |
isRegistered() |
abstract void |
register()
Register the event
|
protected void |
setRegistered(boolean registered) |
@Nullable protected @Nullable UserConnection getUserConnection(UUID uuid)
uuid
- UUID objectprotected boolean isOnPipe(UUID uuid)
uuid
- UUID Objectpublic abstract void register()
protected boolean isRegistered()
protected void setRegistered(boolean registered)
Copyright © 2016–2021. All rights reserved.