aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/gui/entity/ModifyCharged.kt
blob: 23fd49564b387f875da2f3cb07789c2848967ef9 (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.world.entity.monster.Creeper

object ModifyCharged : EntityModifier {
    override fun apply(entity: LivingEntity, info: JsonObject): LivingEntity {
        require(entity is Creeper)
        entity.entityData.set(Creeper.DATA_IS_POWERED, true)
        return entity
    }
}