TaterzensAPI

open class TaterzensAPI

Class containing static methods to use with Taterzens.

Functions

createTaterzen
Link copied to clipboard
open fun createTaterzen(owner: ServerPlayer, displayName: String): TaterzenNPC
Creates a Taterzen NPC from owner with provided display name.
open fun createTaterzen(world: ServerLevel, displayName: String, pos: Vec3, rotations: Array<Float>): TaterzenNPC
Creates a Taterzen NPC with rotations and custom name.
getPresets
Link copied to clipboard
open fun getPresets(): List<String>
loadPresetTag
Link copied to clipboard
open fun loadPresetTag(preset: File): CompoundTag
Gets the Taterzen data from file.
loadTaterzenFromPreset
Link copied to clipboard
@Nullable
open fun loadTaterzenFromPreset(preset: File, world: Level): @Nullable TaterzenNPC
Loads TaterzenNPC from preset.
registerProfession
Link copied to clipboard
open fun registerProfession(professionId: ResourceLocation, professionInitilizer: (TaterzenNPC) -> TaterzenProfession)
Registers a new TaterzenProfession.
saveTaterzenToPreset
Link copied to clipboard
open fun saveTaterzenToPreset(taterzen: TaterzenNPC, preset: File)
Saves TaterzenNPC to preset file.