aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/gui/entity/ModifyCharged.kt
blob: d22f6e35e8601e3727b2507d420c1229ee7fc041 (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.entity.mob.CreeperEntity

object ModifyCharged : EntityModifier {
    override fun apply(entity: LivingEntity, info: JsonObject): LivingEntity {
        require(entity is CreeperEntity)
        entity.dataTracker.set(CreeperEntity.CHARGED, true)
        return entity
    }
}