net.minecraft.nbt

public record NbtShort

implements AbstractNbtNumber

net.minecraft.nbt.ShortTag
net.minecraft.class_2516
net.minecraft.nbt.NbtShort

Field summary

Modifier and TypeField
private final short
value
comp_3822
value
private static final int
SELF_SIZE_IN_BYTES
field_41728
SIZE
public static final NbtType<NbtShort>
TYPE
field_21043
TYPE

Constructor summary

ModifierConstructor
public (short value)

Method summary

Modifier and TypeMethod
public static NbtShort
valueOf(short i)
method_23254(short arg0)
of(short value)
public void
write(DataOutput output)
method_10713(DataOutput arg0)
write(DataOutput arg0)
public int
sizeInBytes()
method_47988()
getSizeInBytes()
public byte
getId()
method_10711()
getType()
public NbtType<NbtShort>
getType()
method_23258()
getNbtType()
public NbtShort
copy()
method_10707()
copy()
public void
accept(TagVisitor visitor)
method_32289(class_5627 arg0)
accept(NbtElementVisitor arg0)
public long
longValue()
method_10699()
longValue()
public int
intValue()
method_10701()
intValue()
public short
shortValue()
method_10696()
shortValue()
public byte
byteValue()
method_10698()
byteValue()
public double
doubleValue()
method_10697()
doubleValue()
public float
floatValue()
method_10700()
floatValue()
public Number
box()
method_10702()
numberValue()
public NbtScanner$Result
accept(StreamTagVisitor visitor)
method_39850(class_6836 arg0)
doAccept(NbtScanner arg0)
public short
value()
comp_3822()
value()
public NbtElement
copy()
method_10707()
copy()