Schnittstelle DataComponentTypeRegister

Alle Superschnittstellen:
Iterable<RegistryEntry<net.minecraft.core.component.DataComponentType<?>>>

public interface DataComponentTypeRegister extends Iterable<RegistryEntry<net.minecraft.core.component.DataComponentType<?>>>
  • Methodendetails

    • create

      static DataComponentTypeRegister create(String modid)
    • register

      <T> RegistryEntry<net.minecraft.core.component.DataComponentType<T>> register(String name, Function<net.minecraft.resources.ResourceLocation,net.minecraft.core.component.DataComponentType.Builder<T>> function)
    • register

      <T> RegistryEntry<net.minecraft.core.component.DataComponentType<T>> register(String name, Supplier<net.minecraft.core.component.DataComponentType.Builder<T>> supplier)
    • register

      void register()
    • getModid

      String getModid()
    • getRegistryKey

      net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<net.minecraft.core.component.DataComponentType<?>>> getRegistryKey()
    • getEntries

      Collection<RegistryEntry<net.minecraft.core.component.DataComponentType<?>>> getEntries()
    • entryIterable

      Iterable<net.minecraft.core.component.DataComponentType<?>> entryIterable()
    • getCommonRegister

      CommonRegister<net.minecraft.core.component.DataComponentType<?>> getCommonRegister()