INNER CODE UNIT · JavaScript

loader

PrismarineJS/mineflayer · lib/bossbar.js:4

function loader (registry) {
  const ChatMessage = require('prismarine-chat')(registry)
  return class BossBar {
    constructor (uuid, title, health, dividers, color, flags) {
      this._entityUUID = uuid
      this.title = title
      this._health = health
      this._dividers = divisions[dividers]
      this._color = colors[color]
      this._shouldDarkenSky = flags & 0x1
      this._isDragonBar = flags & 0x2
      this._createFog = flags & 0x4
    }

    set entityUUID (uuid) {
      this._entityUUID = uuid
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…