Package net.minecraft.core.component
Interface DataComponentHolder
- All Known Implementing Classes:
ItemStack
public interface DataComponentHolder
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> T
get
(DataComponentType<? extends T> p_331483_) default <T> T
getOrDefault
(DataComponentType<? extends T> p_328483_, T p_333219_) default boolean
has
(DataComponentType<?> p_333597_)
-
Method Details
-
getComponents
DataComponentMap getComponents() -
get
-
getOrDefault
-
has
-