Skip navigation links

Package li.cil.oc.api.internal

This package provides interfaces that are implemented by OC internal classes so that they can be checked for and used by type checking and casting to these interfaces.

See: Description

Package li.cil.oc.api.internal Description

This package provides interfaces that are implemented by OC internal classes so that they can be checked for and used by type checking and casting to these interfaces.

For example, to determine whether a tile entity is a robot, you can do an instanceof with the Robot interface - and cast to it if you wish to access some of the provided functionality.

The other main use-case is in HostAware drivers, where these interfaces can be used to check if the item can be used inside the specified environment (where the environment class may be assignable to one of the interfaces in this package).

Skip navigation links