Class DataComponents.Builder
java.lang.Object
eu.sculkpowered.server.container.item.data.DataComponents.Builder
- Enclosing class:
DataComponents
-
Method Summary
Modifier and TypeMethodDescription@NotNull DataComponents
build()
@NotNull DataComponents.Builder
enable
(@NotNull DataComponentType<Unit> type) <T> @Nullable Optional
<T> get
(@NotNull DataComponentType<T> type) @NotNull DataComponents.Builder
reset
(@NotNull DataComponentType<?> type) <T> @NotNull DataComponents.Builder
set
(@NotNull DataComponentType<T> type, T t) @NotNull DataComponents.Builder
unset
(@NotNull DataComponentType<?> type)
-
Method Details
-
set
@NotNull public <T> @NotNull DataComponents.Builder set(@NotNull @NotNull DataComponentType<T> type, @NotNull T t) -
enable
@NotNull public @NotNull DataComponents.Builder enable(@NotNull @NotNull DataComponentType<Unit> type) -
unset
-
reset
-
get
-
build
-