Package net.minecraft.core.component
Interface DataComponentHolder
- All Superinterfaces:
IDataComponentHolderExtension
- All Known Subinterfaces:
MutableDataComponentHolder
- All Known Implementing Classes:
FluidStack
,ItemStack
,SimpleFluidContent
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> T
get
(DataComponentType<? extends T> p_331625_) default <T> T
getOrDefault
(DataComponentType<? extends T> p_331643_, T p_330718_) default boolean
has
(DataComponentType<?> p_330779_) Methods inherited from interface net.neoforged.neoforge.common.extensions.IDataComponentHolderExtension
addToTooltip, addToTooltip, get, getOrDefault, has
-
Method Details
-
getComponents
DataComponentMap getComponents() -
get
-
getOrDefault
-
has
-