aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/gui/entity/ModifyInvisible.kt
blob: 8d36991fa786862297153612a3adf21bcbfeb7e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package moe.nea.firmament.gui.entity

import com.google.gson.JsonObject
import net.minecraft.entity.LivingEntity

object ModifyInvisible : EntityModifier {
    override fun apply(entity: LivingEntity, info: JsonObject): LivingEntity {
        entity.isInvisible = info.get("invisible")?.asBoolean ?: true
        return entity
    }

}