Interface IRegistrationUtils
- All Known Implementing Classes:
NeoForgeRegistration
public interface IRegistrationUtils
-
Method Summary
Modifier and TypeMethodDescription<T extends net.minecraft.world.level.block.entity.BlockEntity>
voidaddSupportedBEBlock(Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> blockEntityType, net.minecraft.world.level.block.Block block) <T extends net.minecraft.world.level.block.entity.BlockEntity>
Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> registerBlockEntity(String name, BiFunction<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, T> function, Set<net.minecraft.world.level.block.Block> blocks) <T extends net.minecraft.world.level.block.Block>
Supplier<net.minecraft.world.item.Item> registerBlockItem(String name, Supplier<T> block) <T extends net.minecraft.world.level.block.Block>
Supplier<T> registerBlockWithItem(String name, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, ? extends T> func, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties)
-
Method Details
-
registerBlockEntity
<T extends net.minecraft.world.level.block.entity.BlockEntity> Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> registerBlockEntity(String name, BiFunction<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, T> function, Set<net.minecraft.world.level.block.Block> blocks) -
registerBlockWithItem
-
registerBlockItem
-
addSupportedBEBlock
<T extends net.minecraft.world.level.block.entity.BlockEntity> void addSupportedBEBlock(Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> blockEntityType, net.minecraft.world.level.block.Block block)
-