RebarGroupCulledBlock

A variant of RebarCulledBlock that defines groups of RebarGroupCulledBlocks that should be culled together. (i.e. all blocks in the group must be culled for any of the blocks in the group to be culled)

For an example use case, see RebarEntityGroupCulledBlock

Inheritors

Types

Link copied to clipboard
open class CullingGroup(val id: String, val blocks: MutableSet<RebarGroupCulledBlock> = mutableSetOf())

Properties

Link copied to clipboard

If onVisible and onCulled should be called asynchronously instead of scheduled to be called on the main thread.

Functions

Link copied to clipboard
abstract fun isVisible(player: Player): Boolean

If the block is currently visible to the player. Used only to determine which io.github.pylonmc.rebar.culling.PlayerCullingConfig interval to use

Link copied to clipboard
open override fun onCulled(player: Player)

Does not do anything for group culled blocks, see onGroupCulled

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onVisible(player: Player)

Does not do anything for group culled blocks, see onGroupVisible