TaterzenProfession
interface TaterzenProfession
Content copied to clipboard
Profession interface, providing hooks for Taterzen's behaviour.
Booleans instead of voids are there to allow you to cancel the base Taterzen method.
Functions
cancelMeleeAttack
Link copied to clipboard
Whether to cancel melee attack.
cancelRangedAttack
Link copied to clipboard
Whether to cancel ranged attack.
create
Link copied to clipboard
Method used for creating the new profession for given taterzen.
handleAttack
Link copied to clipboard
Called when Taterzen is attacked.
interactAt
Link copied to clipboard
open fun interactAt(player: Player, pos: Vec3, hand: InteractionHand): InteractionResult
Content copied to clipboard
Called on Taterzen interaction.
onBehaviourSet
Link copied to clipboard
Called when Taterzen's behaviour changes.
onMovementSet
Link copied to clipboard
Called when Taterzen's movement changes.
onPlayersNearby
Link copied to clipboard
Called every tick if players are nearby.
onProfessionRemoved
Link copied to clipboard
open fun onProfessionRemoved()
Content copied to clipboard
Called when taterzen "loses" this profession.
skipAttackFrom
Link copied to clipboard
Called when Taterzen is attacked.
tick
Link copied to clipboard
Called on Taterzen entity tick.
tickMovement
Link copied to clipboard
Called on movement tick.
tryPickupItem
Link copied to clipboard
Called when Taterzen has a chance to pickup an item.
Inheritors
AbstractProfession
Link copied to clipboard