mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-09-18 21:48:15 +00:00
44 lines
762 B
Java
44 lines
762 B
Java
|
package com.sk89q.worldedit;
|
||
|
|
||
|
public class BiomeType {
|
||
|
|
||
|
private String name;
|
||
|
|
||
|
public BiomeType(String name) {
|
||
|
this.name = name;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the name of the player.
|
||
|
*
|
||
|
* @return String
|
||
|
*/
|
||
|
public String getName() {
|
||
|
return name;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Gets the hash code.
|
||
|
*
|
||
|
* @return hash code
|
||
|
*/
|
||
|
@Override
|
||
|
public int hashCode() {
|
||
|
return name.hashCode();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Returns true if equal.
|
||
|
*
|
||
|
* @param other
|
||
|
* @return whether the other object is equivalent
|
||
|
*/
|
||
|
@Override
|
||
|
public boolean equals(Object obj) {
|
||
|
if (obj instanceof BiomeType) {
|
||
|
return ((BiomeType) obj).name.equals(name);
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
}
|