blob: 51fcfaec54d23ad613e2ed7fa3f3b96e61d710c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package moe.nea.firmament.gui.entity
import com.google.gson.JsonObject
import net.minecraft.world.entity.LivingEntity
object ModifyRiding : EntityModifier {
override fun apply(entity: LivingEntity, info: JsonObject): LivingEntity {
val newEntity = EntityRenderer.constructEntity(info)
require(newEntity != null)
newEntity.startRiding(entity, true, false)
return entity
}
}
|