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, Identifier key) static <T extends Item>
DeferredItem<T> DeferredItem.createItem(Identifier key) Creates a newDeferredHoldertargeting theItemwith the specified name.static <T extends Item>
DeferredItem<T> DeferredItem.createItem(ResourceKey<Item> key) Creates a newDeferredHoldertargeting the specifiedItem.<I extends Item>
DeferredItem<I> DeferredRegister.Items.register(String name, Function<Identifier, ? extends I> func) Adds a new item to the list of entries to be registered and returns aDeferredItemthat 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 aDeferredItemthat 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 aDeferredItemthat will be populated with the created item automatically.<I extends Item>
DeferredItem<I> DeferredRegister.Items.registerItem(String name, Function<Item.Properties, ? extends I> func, Supplier<Item.Properties> properties) Adds a new item to the list of entries to be registered and returns aDeferredItemthat will be populated with the created item automatically.<I extends Item>
DeferredItem<I> DeferredRegister.Items.registerItem(String name, Function<Item.Properties, ? extends I> func, UnaryOperator<Item.Properties> properties) Adds a new item to the list of entries to be registered and returns aDeferredItemthat 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) Deprecated, for removal: This API element is subject to removal in a future version.DeferredRegister.Items.registerSimpleBlockItem(String name, Supplier<? extends Block> block) Adds a new simpleBlockItemfor the givenBlockto the list of entries to be registered and returns aDeferredItemthat will be populated with the created item automatically.DeferredRegister.Items.registerSimpleBlockItem(String name, Supplier<? extends Block> block, Supplier<Item.Properties> properties) Adds a new simpleBlockItemfor the givenBlockto the list of entries to be registered and returns aDeferredItemthat will be populated with the created item automatically.DeferredRegister.Items.registerSimpleBlockItem(String name, Supplier<? extends Block> block, UnaryOperator<Item.Properties> properties) Adds a new simpleBlockItemfor the givenBlockto the list of entries to be registered and returns aDeferredItemthat will be populated with the created item automatically.DeferredRegister.Items.registerSimpleBlockItem(String name, Supplier<? extends Block> block, Item.Properties properties) Deprecated, for removal: This API element is subject to removal in a future version.DeferredRegister.Items.registerSimpleBlockItem(Holder<Block> block) Adds a new simpleBlockItemfor the givenBlockto the list of entries to be registered and returns aDeferredItemthat will be populated with the created item automatically.DeferredRegister.Items.registerSimpleBlockItem(Holder<Block> block, Supplier<Item.Properties> properties) Adds a new simpleBlockItemfor the givenBlockto the list of entries to be registered and returns aDeferredItemthat will be populated with the created item automatically.DeferredRegister.Items.registerSimpleBlockItem(Holder<Block> block, UnaryOperator<Item.Properties> properties) Adds a new simpleBlockItemfor the givenBlockto the list of entries to be registered and returns aDeferredItemthat will be populated with the created item automatically.DeferredRegister.Items.registerSimpleBlockItem(Holder<Block> block, Item.Properties properties) Deprecated, for removal: This API element is subject to removal in a future version.DeferredRegister.Items.registerSimpleItem(String name) Adds a new simpleItemwith the defaultpropertiesto the list of entries to be registered and returns aDeferredItemthat will be populated with the created item automatically.DeferredRegister.Items.registerSimpleItem(String name, Supplier<Item.Properties> properties) Adds a new simpleItemwith the givenpropertiesto the list of entries to be registered and returns aDeferredItemthat will be populated with the created item automatically.DeferredRegister.Items.registerSimpleItem(String name, UnaryOperator<Item.Properties> properties) Adds a new simpleItemwith the givenpropertiesto the list of entries to be registered and returns aDeferredItemthat will be populated with the created item automatically.DeferredRegister.Items.registerSimpleItem(String name, Item.Properties props) Deprecated, for removal: This API element is subject to removal in a future version.
DeferredRegister.Items.registerItem(String, Function, Supplier)orDeferredRegister.Items.registerItem(String, Function, UnaryOperator)instead.