Show / Hide Table of Contents

Class CustomCreature

Main interface for adding custom creatures to the game.
All custom creatures have to be wrapped inside this class to add it to Jötunns CreatureManager.
Inheritance
object
CustomEntity
CustomCreature
Inherited Members
CustomEntity.SourceMod
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()
Namespace: Jotunn.Entities
Assembly: Jotunn.dll
Syntax
public class CustomCreature : CustomEntity

Constructors

Name Description
CustomCreature(AssetBundle, string, bool, CreatureConfig) Custom creature from a prefab loaded from an AssetBundle with a PieceConfig attached.
The members and references from the PieceConfig will be referenced by Jötunn at runtime.
CustomCreature(GameObject, bool) Custom creature from a prefab.
CustomCreature(GameObject, bool, CreatureConfig) Custom creature from a prefab with a CreatureConfig attached.
CustomCreature(string, string, CreatureConfig) Custom creature created as a copy of a vanilla Valheim creature.
SpawnData is not cloned, you will have to add SpawnConfigs to your CreatureConfig if you want to spawn the cloned creature automatically.

Properties

Name Description
FixReference Indicator if references from mocks will be replaced at runtime.
Prefab The creature prefab.
Spawns Associated list of SpawnSystem.SpawnData of the creature.

Methods

Name Description
Equals(object) Determines whether the specified object is equal to the current object.
GetHashCode() Serves as the default hash function.
IsCustomCreature(string) Helper method to determine if a prefab with a given name is a custom creature created with Jötunn.
IsValid() Checks if a custom creature is valid (i.e. has a prefab and all required components).
ToString() Returns a string that represents the current object.

Extension Methods

PrefabExtension.FixReferences(object)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾