blob: a03da96c7645e9d6a3919646f9a8cfadeee8a19a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package moe.nea.firmament.gui.entity
import com.google.gson.JsonObject
import net.minecraft.entity.LivingEntity
import net.minecraft.text.Text
object ModifyName : EntityModifier {
override fun apply(entity: LivingEntity, info: JsonObject): LivingEntity {
entity.customName = Text.literal(info.get("name").asString)
return entity
}
}
|