All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.silkmc.silk.persistence.AccessExtensions.kt Maven / Gradle / Ivy

There is a newer version: 1.10.7
Show newest version
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