
walkmc.extensions.Parsers.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
package walkmc.extensions
import org.bukkit.*
import org.bukkit.enchantments.*
import walkmc.extensions.constants.*
/**
* Translates a gamemode to the default portuguese language.
*/
val GameMode.translated: String
get() = when (this) {
GameMode.SPECTATOR -> "Espectador"
GameMode.ADVENTURE -> "Aventura"
GameMode.CREATIVE -> "Criativo"
else -> "Sobrevivência"
}
/**
* Translates a enchantment to the default portuguese language.
*/
val Enchantment.translated: String
get() = when (this) {
PROTECTION_ENVIRONMENTAL -> "Proteção"
PROTECTION_EXPLOSIONS -> "Proteção contra explosões"
PROTECTION_FIRE -> "Proteção contra fogo"
PROTECTION_FALL -> "Peso pena"
PROTECTION_PROJECTILE -> "Proteção contra projéteis"
DIG_SPEED -> "Eficiência"
ARROW_DAMAGE -> "Força"
ARROW_FIRE -> "Chamas"
ARROW_INFINITE -> "Infinidade"
ARROW_KNOCKBACK -> "Impacto"
DAMAGE_ALL -> "Afiação"
DAMAGE_ARTHROPODS -> "Ruína dos artrópodes"
DAMAGE_UNDEAD -> "Julgamento"
KNOCKBACK -> "Repulsão"
DURABILITY -> "Inquebrável"
FIRE_ASPECT -> "Aspecto flamejante"
SILK_TOUCH -> "Toque suave"
OXYGEN -> "Respiração"
THORNS -> "Espinhos"
LOOT_BONUS_MOBS -> "Pilhagem"
LOOT_BONUS_BLOCKS -> "Fortuna"
LUCK -> "Sorte do mar"
LURE -> "Isca"
WATER_WORKER -> "Afinidade aquática"
DEPTH_STRIDER -> "Passos profundos"
else -> name
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy