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()HgetHandle()Gets the platform handle of this actorbooleanisAvailable()Checks if the actor is validvoidsendMessage(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:IPlatformActorChecks if the actor is valid- Specified by:
isAvailablein interfaceIPlatformActor<H>- Returns:
trueif the actor is valid otherwisefalse
-
getHandle
public H getHandle()
Description copied from interface:IPlatformActorGets the platform handle of this actor- Specified by:
getHandlein interfaceIPlatformActor<H>- Returns:
- the platform handle
-
as
public <P> IPlatformActor<P> as(Class<P> clazz)
Description copied from interface:IPlatformActorTries to cast this actor to the specified handle type- Specified by:
asin 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:IPlatformActorSends a message to the actor- Specified by:
sendMessagein interfaceIPlatformActor<H>- Parameters:
message- the message to be sent
-
-