Class InvalidActor<H>
- java.lang.Object
-
- me.nemo_64.betterinputs.api.platform.InvalidActor<H>
-
- All Implemented Interfaces:
IPlatformActor<H>
public final class InvalidActor<H> extends Object implements IPlatformActor<H>
-
-
Constructor Summary
Constructors Constructor Description InvalidActor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <P> IPlatformActor<P>
as(Class<P> clazz)
Tries to cast this actor to the specified handle typestatic <E> IPlatformActor<E>
get()
H
getHandle()
Gets the platform handle of this actorboolean
isAvailable()
Checks if the actor is validvoid
sendMessage(String message)
Sends a message to the actor
-
-
-
Method Detail
-
get
public static <E> IPlatformActor<E> get()
-
isAvailable
public boolean isAvailable()
Description copied from interface:IPlatformActor
Checks if the actor is valid- Specified by:
isAvailable
in interfaceIPlatformActor<H>
- Returns:
true
if the actor is valid otherwisefalse
-
getHandle
public H getHandle()
Description copied from interface:IPlatformActor
Gets the platform handle of this actor- Specified by:
getHandle
in interfaceIPlatformActor<H>
- Returns:
- the platform handle
-
as
public <P> IPlatformActor<P> as(Class<P> clazz)
Description copied from interface:IPlatformActor
Tries to cast this actor to the specified handle type- Specified by:
as
in interfaceIPlatformActor<H>
- Type Parameters:
P
- the provided handle type- Parameters:
clazz
- the handle type- Returns:
- the same actor casted to the specified handle type or an
me.nemo_64.betterinputs.api.platform.InvalidActor
-
sendMessage
public void sendMessage(String message)
Description copied from interface:IPlatformActor
Sends a message to the actor- Specified by:
sendMessage
in interfaceIPlatformActor<H>
- Parameters:
message
- the message to be sent
-
-