public class RegistryEntityDriverFactory extends java.lang.Object implements EntityDriverManager
| Constructor and Description |
|---|
RegistryEntityDriverFactory() |
| Modifier and Type | Method and Description |
|---|---|
<D extends EntityDriver> |
build(DriverDependentEntity<D> entity,
Location location)
Builds a new
EntityDriver for the given entity/location. |
boolean |
hasDriver(DriverDependentEntity<?> entity,
Location location) |
<D extends EntityDriver> |
registerDriver(java.lang.Class<D> driverInterface,
java.lang.Class<? extends Location> locationClazz,
java.lang.Class<? extends D> driverClazz) |
public <D extends EntityDriver> D build(DriverDependentEntity<D> entity, Location location)
EntityDriverManagerEntityDriver for the given entity/location.build in interface EntityDriverManagerentity - the DriverDependentEntity to create the EntityDriver for.location - the Location where the DriverDependentEntity is running.public boolean hasDriver(DriverDependentEntity<?> entity, Location location)
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