Package net.minecraft
Class DetectedVersion
java.lang.Object
net.minecraft.DetectedVersion
- All Implemented Interfaces:
WorldVersion
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Date
static final WorldVersion
private final int
private final String
private static final org.slf4j.Logger
private final String
private final int
private final int
private final boolean
private final DataVersion
-
Constructor Summary
ModifierConstructorDescriptionprivate
private
DetectedVersion
(com.google.gson.JsonObject p_132489_) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getName()
int
getPackVersion
(PackType p_265454_) int
boolean
isStable()
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:
getId
in interfaceWorldVersion
-
getName
- Specified by:
getName
in interfaceWorldVersion
-
getDataVersion
- Specified by:
getDataVersion
in interfaceWorldVersion
-
getProtocolVersion
public int getProtocolVersion()- Specified by:
getProtocolVersion
in interfaceWorldVersion
-
getPackVersion
- Specified by:
getPackVersion
in interfaceWorldVersion
-
getBuildTime
- Specified by:
getBuildTime
in interfaceWorldVersion
-
isStable
public boolean isStable()- Specified by:
isStable
in interfaceWorldVersion
-