ScarpetProfession

open class ScarpetProfession : AbstractProfession

Constructors

ScarpetProfession
Link copied to clipboard
open fun ScarpetProfession(npc: TaterzenNPC)

Properties

ID
Link copied to clipboard
val ID: ResourceLocation

Functions

addTrait
Link copied to clipboard
open fun addTrait(scarpetTrait: String)
Adds a string profession to the taterzen that can be used (mainly) in scarpet.
cancelMeleeAttack
Link copied to clipboard
open fun cancelMeleeAttack(target: Entity): Boolean
cancelRangedAttack
Link copied to clipboard
open fun cancelRangedAttack(target: LivingEntity): Boolean
getTraits
Link copied to clipboard
open fun getTraits(): HashSet<Value>
Gets the set of scarpet professions.
handleAttack
Link copied to clipboard
open fun handleAttack(attacker: Entity): Boolean
interactAt
Link copied to clipboard
open fun interactAt(player: Player, pos: Vec3, hand: InteractionHand): InteractionResult
onBehaviourSet
Link copied to clipboard
open fun onBehaviourSet(behaviourLevel: NPCData.Behaviour)
onMovementSet
Link copied to clipboard
open fun onMovementSet(movement: NPCData.Movement)
onPlayersNearby
Link copied to clipboard
open fun onPlayersNearby(players: List<ServerPlayer>)
onRemove
Link copied to clipboard
open fun onRemove()
readNbt
Link copied to clipboard
open fun readNbt(tag: CompoundTag)
removeTrait
Link copied to clipboard
open fun removeTrait(scarpetTrait: String): Boolean
Tries to remove the scarpet profession from taterzen.
saveNbt
Link copied to clipboard
open fun saveNbt(tag: CompoundTag)
tickMovement
Link copied to clipboard
open fun tickMovement(): InteractionResult
tryPickupItem
Link copied to clipboard
open fun tryPickupItem(itemEntity: ItemEntity): Boolean

Inherited functions

create
Link copied to clipboard
open fun create(taterzen: TaterzenNPC): TaterzenProfession
onProfessionRemoved
Link copied to clipboard
open fun onProfessionRemoved()
skipAttackFrom
Link copied to clipboard
open fun skipAttackFrom(attacker: Entity): Boolean
tick
Link copied to clipboard
open fun tick(): InteractionResult