Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CustomMob

Velt's Custom Mob Utility

Hierarchy

  • CustomMob

Index

Constructors

Methods

Constructors

constructor

  • new CustomMob(opts: CustomMobOpts): CustomMob
  • Initialize a custom mob instance from the given options.

    Parameters

    • opts: CustomMobOpts

      The options to initialize this CustomMob instance with.

    Returns CustomMob

Methods

apply

  • apply(entity: any): any
  • Apply the given properties (like increased health, new equipment, new custom logic with cycle, and etc) to the given entity. Useful if you want to convert naturally spawned mobs to this custom mob type.

    Parameters

    • entity: any

      The entity to apply the CustomMob properties to.

    Returns any

summon

  • summon(loc: any): any
  • Spawn this CustomMob type at a specific location.

    Parameters

    • loc: any

      The location to spawn the custom mob at.

    Returns any

Generated using TypeDoc