blob: 6def0b41c3510497bd2f57300bdc2dbb155b1f10 (
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.world.entity.LivingEntity
import net.minecraft.network.chat.Component
object ModifyName : EntityModifier {
override fun apply(entity: LivingEntity, info: JsonObject): LivingEntity {
entity.customName = Component.literal(info.get("name").asString)
return entity
}
}
|