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 interface
DataPackType.Factory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
persistent()
Gets if resources created by this type will persist even if theplugin
is no longer present (or no longer performs a registration inRegisterDataPackValueEvent
io.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 theplugin
is no longer present (or no longer performs a registration inRegisterDataPackValueEvent
Consult your implementation vendor for more details on exactly what resources are kept.
- Returns:
- True if persistent, false if not
-
-