@ApiStatus.Internal public class EntryRegistryImpl extends java.lang.Object implements EntryRegistry
| Constructor and Description |
|---|
EntryRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
alreadyContain(EntryStack stack)
Checks if a stack is already registered
|
@NotNull java.util.List<net.minecraft.item.ItemStack> |
appendStacksForItem(@NotNull net.minecraft.item.Item item) |
void |
finishReload() |
@NotNull net.minecraft.item.ItemStack[] |
getAllStacksFromItem(@NotNull net.minecraft.item.Item item)
Gets all possible stacks from an item
|
@NotNull java.util.stream.Stream<EntryStack> |
getEntryStacks() |
@NotNull java.util.List<EntryStack> |
getPreFilteredList() |
void |
refilter() |
void |
registerEntriesAfter(@Nullable EntryStack afterEntry,
@NotNull java.util.Collection<? extends EntryStack> stacks)
Registers multiple stacks to the item list
|
void |
registerEntryAfter(@Nullable EntryStack afterEntry,
@NotNull EntryStack stack)
Registers an new stack to the entry list
|
void |
removeEntry(EntryStack stack) |
void |
removeEntryIf(java.util.function.Predicate<EntryStack> stackPredicate) |
void |
resetToReloadStart() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstance, getStacksList, queueRegisterEntryAfter, registerEntries, registerEntriesAfter, registerEntry, registerEntryAfterpublic void finishReload()
@NotNull public @NotNull java.util.stream.Stream<EntryStack> getEntryStacks()
getEntryStacks in interface EntryRegistry@NotNull public @NotNull java.util.List<EntryStack> getPreFilteredList()
getPreFilteredList in interface EntryRegistry@ApiStatus.Experimental public void refilter()
refilter in interface EntryRegistrypublic void resetToReloadStart()
@NotNull
public @NotNull java.util.List<net.minecraft.item.ItemStack> appendStacksForItem(@NotNull
@NotNull net.minecraft.item.Item item)
appendStacksForItem in interface EntryRegistry@NotNull
public @NotNull net.minecraft.item.ItemStack[] getAllStacksFromItem(@NotNull
@NotNull net.minecraft.item.Item item)
EntryRegistrygetAllStacksFromItem in interface EntryRegistryitem - the item to findpublic void registerEntryAfter(@Nullable
@Nullable EntryStack afterEntry,
@NotNull
@NotNull EntryStack stack)
EntryRegistryregisterEntryAfter in interface EntryRegistryafterEntry - the stack to put afterstack - the stack to registerpublic void registerEntriesAfter(@Nullable
@Nullable EntryStack afterEntry,
@NotNull
@NotNull java.util.Collection<? extends EntryStack> stacks)
EntryRegistryregisterEntriesAfter in interface EntryRegistryafterEntry - the stack to put afterstacks - the stacks to registerpublic boolean alreadyContain(EntryStack stack)
EntryRegistryalreadyContain in interface EntryRegistrystack - the stack to checkpublic void removeEntry(EntryStack stack)
removeEntry in interface EntryRegistrypublic void removeEntryIf(java.util.function.Predicate<EntryStack> stackPredicate)
removeEntryIf in interface EntryRegistry