Add mob drop viewer to item list
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user