public interface PropertyStore<T extends Property<?,?>>
Modifier and Type | Method and Description |
---|---|
Optional<T> |
getFor(DataHolder dataHolder)
Gets the desired property for the provided
DataHolder at present
time. |
Optional<T> |
getFor(Location<?> location)
Gets the desired property for the provided
Location at present
time. |
Optional<T> getFor(DataHolder dataHolder)
DataHolder
at present
time. A property may not be the same throughout the course of the
lifetime of the DataHolder
.dataHolder
- The data holder to get a property fromOptional<T> getFor(Location<?> location)
Location
at present
time. A property may not be the same throughout the course of the
lifetime of the DataHolder
.location
- The data holder to get a property from