public interface EntityDriverManager
build(DriverDependentEntity, Location)
.
This will use the registered driver types, or if one is not registered will fallback to the
default strategy.Modifier and Type | Method and Description |
---|---|
<D extends EntityDriver> |
build(DriverDependentEntity<D> entity,
Location location)
Builds a new
EntityDriver for the given entity/location. |
<D extends EntityDriver> |
registerDriver(java.lang.Class<D> driverInterface,
java.lang.Class<? extends Location> locationClazz,
java.lang.Class<? extends D> driverClazz) |
<D extends EntityDriver> D build(DriverDependentEntity<D> entity, Location location)
EntityDriver
for the given entity/location.D
- entity
- the DriverDependentEntity
to create the EntityDriver
for.location
- the Location
where the DriverDependentEntity
is running.<D extends EntityDriver> void registerDriver(java.lang.Class<D> driverInterface, java.lang.Class<? extends Location> locationClazz, java.lang.Class<? extends D> driverClazz)