Package net.minecraft
Class DetectedVersion
java.lang.Object
net.minecraft.DetectedVersion
- All Implemented Interfaces:
WorldVersion
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Datestatic final WorldVersionprivate final intprivate final Stringprivate static final org.slf4j.Loggerprivate final Stringprivate final intprivate final intprivate final booleanprivate final DataVersion -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateDetectedVersion(com.google.gson.JsonObject p_132489_) -
Method Summary
Modifier and TypeMethodDescriptiongetId()getName()intgetPackVersion(PackType p_265454_) intbooleanisStable()static WorldVersion
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
BUILT_IN
-
id
-
name
-
stable
private final boolean stable -
worldVersion
-
protocolVersion
private final int protocolVersion -
resourcePackVersion
private final int resourcePackVersion -
dataPackVersion
private final int dataPackVersion -
buildTime
-
-
Constructor Details
-
DetectedVersion
private DetectedVersion() -
DetectedVersion
private DetectedVersion(com.google.gson.JsonObject p_132489_)
-
-
Method Details
-
tryDetectVersion
-
getId
- Specified by:
getIdin interfaceWorldVersion
-
getName
- Specified by:
getNamein interfaceWorldVersion
-
getDataVersion
- Specified by:
getDataVersionin interfaceWorldVersion
-
getProtocolVersion
public int getProtocolVersion()- Specified by:
getProtocolVersionin interfaceWorldVersion
-
getPackVersion
- Specified by:
getPackVersionin interfaceWorldVersion
-
getBuildTime
- Specified by:
getBuildTimein interfaceWorldVersion
-
isStable
public boolean isStable()- Specified by:
isStablein interfaceWorldVersion
-