Package net.minecraft
Class DetectedVersion
java.lang.Object
net.minecraft.DetectedVersion
- All Implemented Interfaces:
com.mojang.bridge.game.GameVersion
,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
(com.mojang.bridge.game.PackType p_179764_) int
boolean
isStable()
static WorldVersion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.WorldVersion
getSeriesId, getWorldVersion
-
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 interfacecom.mojang.bridge.game.GameVersion
-
getName
- Specified by:
getName
in interfacecom.mojang.bridge.game.GameVersion
-
getDataVersion
- Specified by:
getDataVersion
in interfaceWorldVersion
-
getProtocolVersion
public int getProtocolVersion()- Specified by:
getProtocolVersion
in interfacecom.mojang.bridge.game.GameVersion
-
getPackVersion
public int getPackVersion(com.mojang.bridge.game.PackType p_179764_) - Specified by:
getPackVersion
in interfacecom.mojang.bridge.game.GameVersion
-
getBuildTime
- Specified by:
getBuildTime
in interfacecom.mojang.bridge.game.GameVersion
-
isStable
public boolean isStable()- Specified by:
isStable
in interfacecom.mojang.bridge.game.GameVersion
-