Package com.github.alex1304.jdash.entity
Class GDLevel
- java.lang.Object
-
- com.github.alex1304.jdash.entity.GDLevel
-
-
Constructor Summary
Constructors Constructor Description GDLevel(long id, String name, long creatorID, String description, Difficulty difficulty, DemonDifficulty demonDifficulty, int stars, int featuredScore, boolean isEpic, int downloads, int likes, Length length, java.util.function.Supplier<reactor.core.publisher.Mono<GDSong>> song, int coinCount, boolean hasCoinsVerified, int levelVersion, int gameVersion, int objectCount, boolean isDemon, boolean isAuto, long originalLevelID, int requestedStars, String creatorName, java.util.function.Supplier<reactor.core.publisher.Mono<GDLevelData>> downloader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<GDLevelData>
download()
Gets the level download data, which includes binary data of the level, the upload an d last updated dates, and the copy passcode.boolean
equals(Object obj)
int
getCoinCount()
long
getCreatorID()
String
getCreatorName()
DemonDifficulty
getDemonDifficulty()
String
getDescription()
Difficulty
getDifficulty()
int
getDownloads()
int
getFeaturedScore()
int
getGameVersion()
long
getId()
The unique identifier for the entity.Length
getLength()
int
getLevelVersion()
int
getLikes()
String
getName()
int
getObjectCount()
long
getOriginalLevelID()
int
getRequestedStars()
reactor.core.publisher.Mono<GDSong>
getSong()
Gets the song that this level uses.int
getStars()
boolean
hasCoinsVerified()
int
hashCode()
boolean
isAuto()
boolean
isDemon()
boolean
isEpic()
String
toString()
-
-
-
Constructor Detail
-
GDLevel
public GDLevel(long id, String name, long creatorID, String description, Difficulty difficulty, DemonDifficulty demonDifficulty, int stars, int featuredScore, boolean isEpic, int downloads, int likes, Length length, java.util.function.Supplier<reactor.core.publisher.Mono<GDSong>> song, int coinCount, boolean hasCoinsVerified, int levelVersion, int gameVersion, int objectCount, boolean isDemon, boolean isAuto, long originalLevelID, int requestedStars, String creatorName, java.util.function.Supplier<reactor.core.publisher.Mono<GDLevelData>> downloader)
-
-
Method Detail
-
getName
public String getName()
-
getCreatorName
public String getCreatorName()
-
getCreatorID
public long getCreatorID()
-
getDescription
public String getDescription()
-
getDifficulty
public Difficulty getDifficulty()
-
getDemonDifficulty
public DemonDifficulty getDemonDifficulty()
-
getStars
public int getStars()
-
getFeaturedScore
public int getFeaturedScore()
-
isEpic
public boolean isEpic()
-
getDownloads
public int getDownloads()
-
getLikes
public int getLikes()
-
getLength
public Length getLength()
-
getSong
public reactor.core.publisher.Mono<GDSong> getSong()
Gets the song that this level uses.- Returns:
- a Mono emitting the song. If the song is not allowed for use in
Geometry Dash, a
SongNotAllowedForUseException
is emitted.
-
getCoinCount
public int getCoinCount()
-
hasCoinsVerified
public boolean hasCoinsVerified()
-
getLevelVersion
public int getLevelVersion()
-
getGameVersion
public int getGameVersion()
-
getObjectCount
public int getObjectCount()
-
isDemon
public boolean isDemon()
-
isAuto
public boolean isAuto()
-
getOriginalLevelID
public long getOriginalLevelID()
-
getRequestedStars
public int getRequestedStars()
-
download
public reactor.core.publisher.Mono<GDLevelData> download()
Gets the level download data, which includes binary data of the level, the upload an d last updated dates, and the copy passcode.- Returns:
- a Mono emitting the download data for this level.
-
equals
public boolean equals(Object obj)
-
getId
public final long getId()
Description copied from interface:GDEntity
The unique identifier for the entity.
-
-