Class InvalidActor<H>

    • Constructor Detail

      • InvalidActor

        public InvalidActor()
    • Method Detail

      • isAvailable

        public boolean isAvailable()
        Description copied from interface: IPlatformActor
        Checks if the actor is valid
        Specified by:
        isAvailable in interface IPlatformActor<H>
        Returns:
        true if the actor is valid otherwise false
      • getHandle

        public H getHandle()
        Description copied from interface: IPlatformActor
        Gets the platform handle of this actor
        Specified by:
        getHandle in interface IPlatformActor<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 interface IPlatformActor<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 interface IPlatformActor<H>
        Parameters:
        message - the message to be sent