TileEntityManager

Functions

Link copied to clipboard
@NotNull
abstract fun getTileEntities(): @NotNull List<@NotNull TileEntity>
Gets all loaded TileEntities.
@NotNull
abstract fun getTileEntities(@NotNull chunk: @NotNull Chunk): @NotNull List<@NotNull TileEntity>
Gets all loaded TileEntities in the specified Chunk.
@NotNull
abstract fun getTileEntities(@NotNull world: @NotNull World): @NotNull List<@NotNull TileEntity>
Gets all loaded TileEntities in the specified World.
Link copied to clipboard
@Nullable
abstract fun getTileEntity(@NotNull location: @NotNull Location): @Nullable TileEntity
Gets the TileEntity at that Location or null if there isn't one.
Link copied to clipboard
@Nullable
open fun getTileEntityAt(@NotNull location: @NotNull Location): @Nullable TileEntity
Gets the TileEntity at that Location or null if there isn't one.