Class NbtTypes

java.lang.Object
net.minecraft.nbt.NbtTypes

public class NbtTypes extends Object
A class holding known NBT types.
Mappings:
Namespace Name
named net/minecraft/nbt/NbtTypes
intermediary net/minecraft/class_4615
official vb
  • Field Details

    • VALUES

      private static final NbtType<?>[] VALUES
      Mappings:
      Namespace Name Mixin selector
      named VALUES Lnet/minecraft/nbt/NbtTypes;VALUES:[Lnet/minecraft/nbt/NbtType;
      intermediary field_21048 Lnet/minecraft/class_4615;field_21048:[Lnet/minecraft/class_4614;
      official a Lvb;a:[Lva;
  • Constructor Details

    • NbtTypes

      public NbtTypes()
  • Method Details

    • byId

      public static NbtType<?> byId(int id)
      Gets the associated NBT type for a given id.

      This method does not support id aliases.

      Returns:
      the NBT type, or an invalid type if there is no type with the given id
      Mappings:
      Namespace Name Mixin selector
      named byId Lnet/minecraft/nbt/NbtTypes;byId(I)Lnet/minecraft/nbt/NbtType;
      intermediary method_23265 Lnet/minecraft/class_4615;method_23265(I)Lnet/minecraft/class_4614;
      official a Lvb;a(I)Lva;