Uses of Class
net.neoforged.neoforge.registries.DeferredItem
Packages that use DeferredItem
-
Uses of DeferredItem in net.neoforged.neoforge.registries
Methods in net.neoforged.neoforge.registries that return DeferredItemModifier and TypeMethodDescriptionprotected <I extends Item>
DeferredItem<I> DeferredRegister.Items.createHolder
(ResourceKey<? extends Registry<Item>> registryKey, ResourceLocation key) static <T extends Item>
DeferredItem<T> DeferredItem.createItem
(ResourceKey<Item> key) Creates a newDeferredHolder
targeting the specifiedItem
.static <T extends Item>
DeferredItem<T> DeferredItem.createItem
(ResourceLocation key) Creates a newDeferredHolder
targeting theItem
with the specified name.<I extends Item>
DeferredItem<I> DeferredRegister.Items.register
(String name, Function<ResourceLocation, ? extends I> func) Adds a new item to the list of entries to be registered and returns aDeferredItem
that will be populated with the created item automatically.<I extends Item>
DeferredItem<I> Adds a new item to the list of entries to be registered and returns aDeferredItem
that will be populated with the created item automatically.<I extends Item>
DeferredItem<I> DeferredRegister.Items.registerItem
(String name, Function<Item.Properties, ? extends I> func) Adds a new item to the list of entries to be registered and returns aDeferredItem
that will be populated with the created item automatically.<I extends Item>
DeferredItem<I> DeferredRegister.Items.registerItem
(String name, Function<Item.Properties, ? extends I> func, Item.Properties props) Adds a new item to the list of entries to be registered and returns aDeferredItem
that will be populated with the created item automatically.DeferredRegister.Items.registerSimpleBlockItem
(String name, Supplier<? extends Block> block) Adds a new simpleBlockItem
for the givenBlock
to the list of entries to be registered and returns aDeferredItem
that will be populated with the created item automatically.DeferredRegister.Items.registerSimpleBlockItem
(String name, Supplier<? extends Block> block, Item.Properties properties) Adds a new simpleBlockItem
for the givenBlock
to the list of entries to be registered and returns aDeferredItem
that will be populated with the created item automatically.DeferredRegister.Items.registerSimpleBlockItem
(Holder<Block> block) Adds a new simpleBlockItem
for the givenBlock
to the list of entries to be registered and returns aDeferredItem
that will be populated with the created item automatically.DeferredRegister.Items.registerSimpleBlockItem
(Holder<Block> block, Item.Properties properties) Adds a new simpleBlockItem
for the givenBlock
to the list of entries to be registered and returns aDeferredItem
that will be populated with the created item automatically.DeferredRegister.Items.registerSimpleItem
(String name) Adds a new simpleItem
with the defaultproperties
to the list of entries to be registered and returns aDeferredItem
that will be populated with the created item automatically.DeferredRegister.Items.registerSimpleItem
(String name, Item.Properties props) Adds a new simpleItem
with the givenproperties
to the list of entries to be registered and returns aDeferredItem
that will be populated with the created item automatically.