public class BasicEntityDriverManager extends java.lang.Object implements EntityDriverManager
Constructor and Description |
---|
BasicEntityDriverManager() |
Modifier and Type | Method and Description |
---|---|
<D extends EntityDriver> |
build(DriverDependentEntity<D> entity,
Location location)
Builds a new
EntityDriver for the given entity/location. |
ReflectiveEntityDriverFactory |
getReflectiveDriverFactory()
driver override mechanism; experimental @since 0.7.0
|
<D extends EntityDriver> |
registerDriver(java.lang.Class<D> driverInterface,
java.lang.Class<? extends Location> locationClazz,
java.lang.Class<? extends D> driverClazz) |
@Beta public ReflectiveEntityDriverFactory getReflectiveDriverFactory()
public <D extends EntityDriver> void registerDriver(java.lang.Class<D> driverInterface, java.lang.Class<? extends Location> locationClazz, java.lang.Class<? extends D> driverClazz)
registerDriver
in interface EntityDriverManager
public <D extends EntityDriver> D build(DriverDependentEntity<D> entity, Location location)
EntityDriverManager
EntityDriver
for the given entity/location.build
in interface EntityDriverManager
entity
- the DriverDependentEntity
to create the EntityDriver
for.location
- the Location
where the DriverDependentEntity
is running.