NbtShort constructor

NbtShort({
  1. required String name,
  2. required int value,
})

Creates a NbtShort with given parent.

Implementation

NbtShort({required String name, required int value})
    : _value = value,
      super(name, NbtTagType.TAG_SHORT);