selectedTaterzenExecutor

open fun selectedTaterzenExecutor(@NotNull entity: @NotNull Entity, npcConsumer: Consumer<TaterzenNPC>): Int

Gets player's selected Taterzen and executes the consumer.

Return

1 if player has npc selected and predicate test passed, otherwise 0

Parameters

entity

player to get Taterzen for or Taterzen itself

npcConsumer

lambda that gets selected Taterzen as argument