Package dan200.computercraft.api.detail
Class VanillaDetailRegistries
java.lang.Object
dan200.computercraft.api.detail.VanillaDetailRegistries
DetailRegistry
s for built-in Minecraft types.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DetailRegistry
<BlockReference> Provides details forBlockReference
, a reference to aBlock
in the world.static final DetailRegistry
<net.minecraft.world.item.ItemStack> Provides details forItemStack
s. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ITEM_STACK
Provides details forItemStack
s.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
Provides details forBlockReference
, a reference to aBlock
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()
-