Plex-FAWE/src/main/java/com/sk89q/worldedit/BiomeType.java

44 lines
762 B
Java
Raw Normal View History

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;
}
}