com.mattworzala.canvas.ext.ExtCanvas.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of canvas Show documentation
Show all versions of canvas Show documentation
An inventory framework for the Minestom server software
package com.mattworzala.canvas.ext
import com.mattworzala.canvas.CanvasProvider
import com.mattworzala.canvas.Canvas
import net.minestom.server.entity.Player
/**
* An extension for access to a canvas given a Player.
*
* This method requires a map access, so caching it is suggested.
*/
val Player.canvas: Canvas
get() = CanvasProvider.canvas(this)