public final class Beast
extends java.lang.Object
Bestiary
.Modifier and Type | Class and Description |
---|---|
static class |
Beast.Builder |
Modifier and Type | Method and Description |
---|---|
static Beast.Builder |
builder(int id) |
boolean |
equals(java.lang.Object o) |
java.util.OptionalInt |
getAnimation(java.lang.String name)
Gets an
Optional containing an animation's id by its name. |
ImmutableMap<java.lang.String,java.lang.Integer> |
getAnimations()
Gets an
ImmutableMap of animation names to animation ids. |
ImmutableList<java.lang.String> |
getAreas()
Gets an
ImmutableList of areas in which this beast is found. |
int |
getAttackLevel()
Gets the beast's Attack level.
|
int |
getCombatLevel()
Gets the beast's combat level.
|
int |
getDefenceLevel()
Gets the beast's Defence level.
|
java.lang.String |
getDescription()
Gets the beast's description.
|
double |
getExperience()
Gets the amount of experience earned when killing this beast.
|
int |
getId()
Gets the beast's id.
|
int |
getLifePoints()
Gets the amount of life points the beast has.
|
int |
getMagicLevel()
Gets the beast's Magic level.
|
java.lang.String |
getName()
Gets the beast's name.
|
int |
getRangedLevel()
Gets the beast's Ranged level.
|
int |
getRequiredSlayerLevel()
Gets the Slayer level required to attackLevel this beast.
|
int |
getSize()
Gets the amount of tiles this beast occupies in the x and y dimension.
|
java.util.Optional<java.lang.String> |
getSlayerCategory()
Gets an
Optional containing the Slayer category this beast belongs to. |
java.util.Optional<java.lang.String> |
getWeakness()
Gets the beast's weakness.
|
int |
hashCode() |
boolean |
isAggressive()
Checks if the beast is aggressive.
|
boolean |
isAttackable()
Checks if the beast is attackable.
|
boolean |
isMembersOnly()
Checks if this beast is only accessible on members' worlds.
|
boolean |
isPoisonous()
Checks if this beast is poisonous.
|
java.lang.String |
toString() |
public static Beast.Builder builder(int id)
public java.lang.String getName()
public int getId()
public java.lang.String getDescription()
public java.util.Optional<java.lang.String> getWeakness()
public boolean isAttackable()
true
if so, false
otherwise.public boolean isAggressive()
true
if so, false
otherwise.public boolean isPoisonous()
true
if so, false
otherwise.public double getExperience()
public int getLifePoints()
public int getCombatLevel()
public int getDefenceLevel()
public int getAttackLevel()
public int getMagicLevel()
public int getRangedLevel()
public int getRequiredSlayerLevel()
public int getSize()
public boolean isMembersOnly()
true
if so, false
otherwise.public java.util.Optional<java.lang.String> getSlayerCategory()
Optional
containing the Slayer category this beast belongs to.Optional
containing the Slayer category this beast belongs to, or Optional.empty()
if it does not belong to a Slayer category.public ImmutableList<java.lang.String> getAreas()
ImmutableList
of areas in which this beast is found.ImmutableList
of areas in which this beast is found.public ImmutableMap<java.lang.String,java.lang.Integer> getAnimations()
ImmutableMap
of animation names to animation ids.ImmutableMap
of animation names to animation ids.public java.util.OptionalInt getAnimation(java.lang.String name)
Optional
containing an animation's id by its name.name
- The name of the animation.OptionalInt
containing an animation's id, or OptionalInt.empty()
if no animation of that name was found.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object