Class VanillaDetailRegistries

java.lang.Object
dan200.computercraft.api.detail.VanillaDetailRegistries

public class VanillaDetailRegistries extends Object
DetailRegistrys for built-in Minecraft types.
  • Field Details

    • ITEM_STACK

      public static final DetailRegistry<net.minecraft.world.item.ItemStack> ITEM_STACK
      Provides details for ItemStacks.

      This instance's DetailRegistry.getBasicDetails(Object) is thread safe (assuming the stack is immutable) and may be called from the computer thread.

      This does not have special handling for empty item stacks, and so the returned details will be an empty stack of air. Callers should generally check for empty stacks before calling this.

    • BLOCK_IN_WORLD

      public static final DetailRegistry<BlockReference> BLOCK_IN_WORLD
      Provides details for BlockReference, a reference to a Block in the world.

      This instance's DetailRegistry.getBasicDetails(Object) is thread safe and may be called from the computer thread.

  • Constructor Details

    • VanillaDetailRegistries

      public VanillaDetailRegistries()