net.silkmc.silk.persistence.AccessExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of silk-persistence Show documentation
Show all versions of silk-persistence Show documentation
Silk is a Minecraft API for Kotlin
package net.silkmc.silk.persistence
import net.minecraft.server.level.ServerLevel
import net.minecraft.world.entity.Entity
import net.minecraft.world.level.chunk.ChunkAccess
/**
* Returns a persistent [PersistentCompound].
*
* @see CompoundProvider.compound
* @see CompoundProvider
*/
val ChunkAccess.persistentCompound get() = (this as CompoundProvider).compound
/**
* Returns a persistent [PersistentCompound].
*
* @see CompoundProvider.compound
* @see CompoundProvider
*/
val Entity.persistentCompound get() = (this as CompoundProvider).compound
/**
* Returns a persistent [PersistentCompound].
*
* @see CompoundProvider.compound
* @see CompoundProvider
*/
val ServerLevel.persistentCompound get() = (this as CompoundProvider).compound
© 2015 - 2025 Weber Informatics LLC | Privacy Policy