kettle

Kotlin utilities for Quilt mod development


Project maintained by Cypher121 Hosted on GitHub Pages — Theme by mattgraham

//kettle/coffee.cypher.kettle.tickers/cast

cast

[jvm]
fun <T : BlockEntity, E : BlockEntity> BlockEntityTicker<T>.cast(): BlockEntityTicker<E>

Casts a BlockEntityTicker to the specified BlockEntity type E.

Mainly used when returning from BlockWithEntity.getTicker to return the correct generic type, when it’s expected to match this ticker’s.