Interface DataComponent.Holder
- All Known Subinterfaces:
DataComponentMap
,DataComponentMap.Builder
,DataComponentMap.PatchBuilder
,ItemStack
- All Known Implementing Classes:
Entity
,EntityCreature
,EntityProjectile
,ExperienceOrb
,ItemEntity
,LivingEntity
,Player
- Enclosing interface:
DataComponent<T>
public static interface DataComponent.Holder
Represents any type which can hold data components. Represents a finalized view of a component, that is to say
an implementation may represent a patch on top of another Holder, however the return values of this type
will always represent the merged view.
-
Method Summary
Modifier and TypeMethodDescription<T> T
get
(@NotNull DataComponent<T> component) default <T> T
get
(@NotNull DataComponent<T> component, T defaultValue) default boolean
has
(@NotNull DataComponent<?> component)
-
Method Details
-
has
-
get
-
get
-