Package net.minecraft
Class DetectedVersion
java.lang.Object
net.minecraft.DetectedVersion
- All Implemented Interfaces:
com.mojang.bridge.game.GameVersion,WorldVersion
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Datestatic final WorldVersionprivate final intprivate final Stringprivate static final org.slf4j.Loggerprivate final Stringprivate final intprivate final Stringprivate final intprivate final booleanprivate final DataVersion -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateDetectedVersion(com.google.gson.JsonObject p_132489_) -
Method Summary
Modifier and TypeMethodDescriptiongetId()getName()intgetPackVersion(com.mojang.bridge.game.PackType p_179764_) intbooleanisStable()static WorldVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.bridge.game.GameVersion
getPackVersionMethods 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
-
releaseTarget
-
-
Constructor Details
-
DetectedVersion
private DetectedVersion() -
DetectedVersion
private DetectedVersion(com.google.gson.JsonObject p_132489_)
-
-
Method Details
-
tryDetectVersion
-
getId
- Specified by:
getIdin interfacecom.mojang.bridge.game.GameVersion
-
getName
- Specified by:
getNamein interfacecom.mojang.bridge.game.GameVersion
-
getReleaseTarget
- Specified by:
getReleaseTargetin interfacecom.mojang.bridge.game.GameVersion
-
getDataVersion
- Specified by:
getDataVersionin interfaceWorldVersion
-
getProtocolVersion
public int getProtocolVersion()- Specified by:
getProtocolVersionin interfacecom.mojang.bridge.game.GameVersion
-
getPackVersion
public int getPackVersion(com.mojang.bridge.game.PackType p_179764_) - Specified by:
getPackVersionin interfacecom.mojang.bridge.game.GameVersion
-
getBuildTime
- Specified by:
getBuildTimein interfacecom.mojang.bridge.game.GameVersion
-
isStable
public boolean isStable()- Specified by:
isStablein interfacecom.mojang.bridge.game.GameVersion
-