mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-12 08:58:02 -04:00
improve entity easter egg performance
This commit is contained in:
parent
70f762128e
commit
fb02f46121
@ -175,8 +175,7 @@ abstract class Entity(
|
||||
open val hasGravity: Boolean get() = !_hasNoGravity
|
||||
|
||||
@get:SynchronizedEntityData
|
||||
val ticksFrozen: Int
|
||||
get() = data.get(TICKS_FROZEN_DATA, 0)
|
||||
val ticksFrozen: Int by data(TICKS_FROZEN_DATA, 0)
|
||||
|
||||
open val hitboxColor: RGBColor?
|
||||
get() = ChatColors.WHITE
|
||||
|
@ -20,8 +20,7 @@ import de.bixilon.minosoft.data.entities.entities.player.PlayerEntity
|
||||
import de.bixilon.minosoft.data.entities.entities.player.SkinParts
|
||||
|
||||
object EntityEasterEggs {
|
||||
private val FLIPPED = setOf("Dinnerbone", "Grumm")
|
||||
val FLIP_ROTATION = Vec3(0, 0.0f, 180.0f.rad)
|
||||
val FLIP_ROTATION = Vec3(180.0f.rad, 0.0f, 0.0f)
|
||||
const val FLIP_ENABLED = true
|
||||
|
||||
fun Entity.isFlipped(): Boolean {
|
||||
|
Loading…
x
Reference in New Issue
Block a user