Kotlin utilities for Quilt mod development
//kettle/coffee.cypher.kettle.world
Name | Summary |
---|---|
onClient | [jvm] inline fun BlockEntity.onClient(toRun: () -> Unit) Runs the given toRun block if this BlockEntity is contained on the logical client. [jvm] inline fun WorldView.onClient(toRun: () -> Unit) Runs the given toRun block if this WorldView represents a world on the logical client. |
onServer | [jvm] inline fun BlockEntity.onServer(toRun: () -> Unit) Runs the given toRun block if this BlockEntity is contained on the logical server. [jvm] inline fun WorldView.onServer(toRun: () -> Unit) Runs the given toRun block if this WorldView represents a world on the logical server. |
typedBlockEntity | [jvm] inline fun <T : BlockEntity> BlockView.typedBlockEntity(pos: BlockPos): T? Returns the BlockEntity contained at the given pos in this BlockView, if it exists and is of type T. |