NbtFloat constructor

NbtFloat({
  1. required String name,
  2. required double value,
})

Creates a NbtFloat with given parent.

Implementation

NbtFloat({required String name, required double value})
    : _value = value,
      super(name, NbtTagType.TAG_FLOAT);