Package net.minecraft.core.component
Class DataComponentMap.Builder
java.lang.Object
net.minecraft.core.component.DataComponentMap.Builder
- All Implemented Interfaces:
IDataComponentMapBuilderExtensions
- Enclosing interface:
DataComponentMap
public static class DataComponentMap.Builder
extends Object
implements IDataComponentMapBuilderExtensions
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.Reference2ObjectMap
<DataComponentType<?>, Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAll
(DataComponentMap p_331194_) build()
private static DataComponentMap
buildFromMapTrusted
(Map<DataComponentType<?>, Object> p_338248_) set
(DataComponentType<T> p_330228_, T p_332186_) (package private) <T> void
setUnchecked
(DataComponentType<T> p_338736_, Object p_338594_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.common.extensions.IDataComponentMapBuilderExtensions
set
-
Field Details
-
map
-
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
set
-
setUnchecked
-
addAll
-
build
-
buildFromMapTrusted
-