Package net.minecraft
Class MinecraftVersion
java.lang.Object
net.minecraft.MinecraftVersion
- All Implemented Interfaces:
com.mojang.bridge.game.GameVersion
public class MinecraftVersion extends Object implements com.mojang.bridge.game.GameVersion
-
Field Summary
Fields Modifier and Type Field Description private Date
buildTime
private int
dataPackVersion
static com.mojang.bridge.game.GameVersion
GAME_VERSION
private String
id
private static Logger
LOGGER
private String
name
private int
protocolVersion
private String
releaseTarget
private int
resourcePackVersion
private boolean
stable
private int
worldVersion
-
Constructor Summary
Constructors Modifier Constructor Description private
MinecraftVersion()
private
MinecraftVersion(JsonObject jsonObject)
-
Method Summary
Modifier and Type Method Description static com.mojang.bridge.game.GameVersion
create()
Date
getBuildTime()
String
getId()
String
getName()
int
getPackVersion(com.mojang.bridge.game.PackType packType)
int
getProtocolVersion()
String
getReleaseTarget()
int
getWorldVersion()
boolean
isStable()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.bridge.game.GameVersion
getPackVersion
-
Field Details
-
LOGGER
-
GAME_VERSION
public static final com.mojang.bridge.game.GameVersion GAME_VERSION -
id
-
name
-
stable
private final boolean stable -
worldVersion
private final int worldVersion -
protocolVersion
private final int protocolVersion -
resourcePackVersion
private final int resourcePackVersion -
dataPackVersion
private final int dataPackVersion -
buildTime
-
releaseTarget
-
-
Constructor Details
-
MinecraftVersion
private MinecraftVersion() -
MinecraftVersion
-
-
Method Details
-
create
public static com.mojang.bridge.game.GameVersion create() -
getId
- Specified by:
getId
in interfacecom.mojang.bridge.game.GameVersion
-
getName
- Specified by:
getName
in interfacecom.mojang.bridge.game.GameVersion
-
getReleaseTarget
- Specified by:
getReleaseTarget
in interfacecom.mojang.bridge.game.GameVersion
-
getWorldVersion
public int getWorldVersion()- Specified by:
getWorldVersion
in interfacecom.mojang.bridge.game.GameVersion
-
getProtocolVersion
public int getProtocolVersion()- Specified by:
getProtocolVersion
in interfacecom.mojang.bridge.game.GameVersion
-
getPackVersion
public int getPackVersion(com.mojang.bridge.game.PackType packType)- 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
-