Interface Registerable.EntryCollector

Enclosing interface:
Registerable

public static interface Registerable.EntryCollector
Interface to collect additional objects that are registered together with a Registerable.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    register(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, T value)
    Registers a new object together with the current one.
    <T> void
    registerNamed(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, String name, T value)
    Registers a new object together with the current one.
  • Method Details

    • register

      <T> void register(@Nullable net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, T value)
      Registers a new object together with the current one.
    • registerNamed

      <T> void registerNamed(@Nullable net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, String name, T value)
      Registers a new object together with the current one.
      Parameters:
      name - A name suffix for the object.