Interface UnifiedRegistries.Blocks

All Known Implementing Classes:
NeoForgeUnifiedRegistries.Blocks, StagedRegistries.StagedBlocks
Enclosing class:
UnifiedRegistries

public static interface UnifiedRegistries.Blocks
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAlias(net.minecraft.resources.Identifier convertedFrom, net.minecraft.resources.Identifier convertedTo)
     
    create(String modId)
     
     
    <T extends net.minecraft.world.level.block.Block>
    SuppliedBlock
    register(String path, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> function, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> blockProperties)
     
    <T extends net.minecraft.world.level.block.Block, Y extends net.minecraft.world.level.block.entity.BlockEntity>
    SuppliedBlock
    register(String path, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> function, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> blockProperties, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<Y>> type)
     
    <T extends net.minecraft.world.level.block.Block>
    SuppliedBlock
    registerWithoutItem(String blockPath, String itemPath, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> function, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties)
     
    <T extends net.minecraft.world.level.block.Block, Y extends net.minecraft.world.level.block.entity.BlockEntity>
    SuppliedBlock
    registerWithoutItem(String blockPath, String itemPath, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> function, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<Y>> type)
     
    <T extends net.minecraft.world.level.block.Block>
    SuppliedBlock
    registerWithoutItem(String path, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> function, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties)
     
    <T extends net.minecraft.world.level.block.Block, Y extends net.minecraft.world.level.block.entity.BlockEntity>
    SuppliedBlock
    registerWithoutItem(String path, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> function, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<Y>> type)
     
  • Method Details

    • modId

      String modId()
    • register

      <T extends net.minecraft.world.level.block.Block> SuppliedBlock register(String path, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> function, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> blockProperties)
    • register

      <T extends net.minecraft.world.level.block.Block, Y extends net.minecraft.world.level.block.entity.BlockEntity> SuppliedBlock register(String path, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> function, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> blockProperties, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<Y>> type)
    • registerWithoutItem

      <T extends net.minecraft.world.level.block.Block> SuppliedBlock registerWithoutItem(String path, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> function, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties)
    • registerWithoutItem

      <T extends net.minecraft.world.level.block.Block, Y extends net.minecraft.world.level.block.entity.BlockEntity> SuppliedBlock registerWithoutItem(String path, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> function, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<Y>> type)
    • registerWithoutItem

      <T extends net.minecraft.world.level.block.Block> SuppliedBlock registerWithoutItem(String blockPath, String itemPath, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> function, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties)
    • registerWithoutItem

      <T extends net.minecraft.world.level.block.Block, Y extends net.minecraft.world.level.block.entity.BlockEntity> SuppliedBlock registerWithoutItem(String blockPath, String itemPath, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> function, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<Y>> type)
    • addAlias

      void addAlias(net.minecraft.resources.Identifier convertedFrom, net.minecraft.resources.Identifier convertedTo)
    • create

      static UnifiedRegistries.Blocks create(String modId)