public class VersionConstructors
public Version()Methods
Version fromNbt(NbtCompound)int getId()Returns the id value.String getName()Returns the name value.String getSeries()Returns the series value.boolean isSnapshot()Returns the snapshot value.void setId(int)Sets the id value.void setName(String)Sets the name value.void setSeries(String)Sets the series value.void setSnapshot(boolean)Sets the snapshot value.NbtCompound toNbt()public static Version fromNbt(NbtCompound versionNbt)| Parameters | ||
|---|---|---|
versionNbt | NbtCompound | |
| Returns | ||
Version | ||
public int getId()Returns the id value.
| Returns | ||
|---|---|---|
int | ||
Generated by Lombok's @Getter for the field id
public String getName()getSeries()
lombokSource
public String getSeries()isSnapshot()
lombokSource
public boolean isSnapshot()Returns the snapshot value.
| Returns | ||
|---|---|---|
boolean | ||
Generated by Lombok's @Getter for the field snapshot
setId(int)
lombokSource
public void setId(int id)Sets the id value.
| Parameters | ||
|---|---|---|
id | int | |
Generated by Lombok's @Setter for the field id
setName(String)
lombokSource
public void setName(String name)setSeries(String)
lombokSource
public void setSeries(String series)public void setSnapshot(boolean snapshot)Sets the snapshot value.
| Parameters | ||
|---|---|---|
snapshot | boolean | |
Generated by Lombok's @Setter for the field snapshot
public NbtCompound toNbt()| Returns | ||
|---|---|---|
NbtCompound | ||