Interface IRegistryHelper
- All Known Implementing Classes:
NeoForgeRegistryHelper
public interface IRegistryHelper
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceIRegistryHelper.BlockEntitySupplier<T extends net.minecraft.world.level.block.entity.BlockEntity>static interfaceIRegistryHelper.MenuSupplier<T extends net.minecraft.world.inventory.AbstractContainerMenu> -
Method Summary
Modifier and TypeMethodDescriptionSupplier<net.minecraft.world.level.block.Block> registerBlock(String name, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, net.minecraft.world.level.block.Block> factory, net.minecraft.world.level.block.state.BlockBehaviour.Properties properties) <T extends net.minecraft.world.level.block.entity.BlockEntity>
Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> registerBlockEntityType(String name, IRegistryHelper.BlockEntitySupplier<T> factory, Supplier<net.minecraft.world.level.block.Block>... blocks) <T extends net.minecraft.world.level.block.Block>
Supplier<com.mojang.serialization.MapCodec<T>> registerCodec(String name, Supplier<com.mojang.serialization.MapCodec<T>> supplier) Supplier<net.minecraft.world.item.CreativeModeTab> registerCreativeModeTab(String name, net.minecraft.network.chat.Component title, Supplier<net.minecraft.world.item.ItemStack> icon, Supplier<? extends net.minecraft.world.item.Item>... items) <T> Supplier<net.minecraft.core.component.DataComponentType<T>> registerDataComponent(String name, UnaryOperator<net.minecraft.core.component.DataComponentType.Builder<T>> builder) <T extends net.minecraft.world.item.Item>
Supplier<T> registerItem(String name, Function<net.minecraft.world.item.Item.Properties, T> function, net.minecraft.world.item.Item.Properties properties) <T extends net.minecraft.world.inventory.AbstractContainerMenu>
Supplier<net.minecraft.world.inventory.MenuType<T>> registerMenu(String name, IRegistryHelper.MenuSupplier<T> constructor, net.minecraft.world.flag.FeatureFlagSet requiredFeatures) Supplier<net.minecraft.sounds.SoundEvent> registerSound(String name)
-
Method Details
-
registerBlockEntityType
<T extends net.minecraft.world.level.block.entity.BlockEntity> Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> registerBlockEntityType(String name, IRegistryHelper.BlockEntitySupplier<T> factory, Supplier<net.minecraft.world.level.block.Block>... blocks) -
registerBlock
-
registerCodec
-
registerDataComponent
<T> Supplier<net.minecraft.core.component.DataComponentType<T>> registerDataComponent(String name, UnaryOperator<net.minecraft.core.component.DataComponentType.Builder<T>> builder) -
registerItem
-
registerMenu
<T extends net.minecraft.world.inventory.AbstractContainerMenu> Supplier<net.minecraft.world.inventory.MenuType<T>> registerMenu(String name, IRegistryHelper.MenuSupplier<T> constructor, net.minecraft.world.flag.FeatureFlagSet requiredFeatures) -
registerSound
-
registerCreativeModeTab
-