Package org.spongepowered.api.datapack
Interface DataPackType<T>
-
@CatalogedBy(DataPackTypes.class) public interface DataPackType<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceDataPackType.Factory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanpersistent()Gets if resources created by this type will persist even if thepluginis no longer present (or no longer performs a registration inRegisterDataPackValueEventio.leangen.geantyref.TypeToken<T>type()
-
-
-
Method Detail
-
type
io.leangen.geantyref.TypeToken<T> type()
-
persistent
boolean persistent()
Gets if resources created by this type will persist even if thepluginis no longer present (or no longer performs a registration inRegisterDataPackValueEventConsult your implementation vendor for more details on exactly what resources are kept.
- Returns:
- True if persistent, false if not
-
-