@ApiStatus.Internal public class FavoriteEntryTypeRegistryImpl extends java.lang.Object implements FavoriteEntryType.Registry
| Constructor and Description |
|---|
FavoriteEntryTypeRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
<A extends FavoriteEntry> |
get(net.minecraft.util.ResourceLocation id) |
@Nullable net.minecraft.util.ResourceLocation |
getId(FavoriteEntryType<?> type) |
static FavoriteEntryTypeRegistryImpl |
getInstance() |
FavoriteEntryType.Section |
getOrCrateSection(net.minecraft.util.text.ITextComponent text) |
void |
register(net.minecraft.util.ResourceLocation id,
FavoriteEntryType<?> type) |
@NotNull java.lang.Iterable<FavoriteEntryType.Section> |
sections() |
public static FavoriteEntryTypeRegistryImpl getInstance()
public void register(net.minecraft.util.ResourceLocation id,
FavoriteEntryType<?> type)
register in interface FavoriteEntryType.Registry@Nullable public <A extends FavoriteEntry> @Nullable FavoriteEntryType<A> get(net.minecraft.util.ResourceLocation id)
get in interface FavoriteEntryType.Registry@Nullable public @Nullable net.minecraft.util.ResourceLocation getId(FavoriteEntryType<?> type)
getId in interface FavoriteEntryType.Registrypublic FavoriteEntryType.Section getOrCrateSection(net.minecraft.util.text.ITextComponent text)
getOrCrateSection in interface FavoriteEntryType.Registry@NotNull public @NotNull java.lang.Iterable<FavoriteEntryType.Section> sections()
sections in interface FavoriteEntryType.Registrypublic void clear()