Package com.destroystokyo.paper.util
Class VersionFetcher.DummyVersionFetcher
java.lang.Object
com.destroystokyo.paper.util.VersionFetcher.DummyVersionFetcher
- All Implemented Interfaces:
VersionFetcher
- Enclosing interface:
VersionFetcher
@Internal
public static class VersionFetcher.DummyVersionFetcher
extends Object
implements VersionFetcher
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.destroystokyo.paper.util.VersionFetcher
VersionFetcher.DummyVersionFetcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Amount of time to cache results for in millisecondsGets the version message to cache and show to command senders.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.destroystokyo.paper.util.VersionFetcher
distance, getVersionMessage
-
Constructor Details
-
DummyVersionFetcher
public DummyVersionFetcher()
-
-
Method Details
-
getCacheTime
public long getCacheTime()Description copied from interface:VersionFetcher
Amount of time to cache results for in millisecondsNegative values will never cache.
- Specified by:
getCacheTime
in interfaceVersionFetcher
- Returns:
- cache time
-
getVersionMessage
Description copied from interface:VersionFetcher
Gets the version message to cache and show to command senders.- Specified by:
getVersionMessage
in interfaceVersionFetcher
- Returns:
- the message to show when requesting a version
-