Class StagedRegistries.StagedBlocks

java.lang.Object
net.rebel459.unified.impl.core.StagedRegistries.StagedBlocks
All Implemented Interfaces:
UnifiedRegistries.Blocks
Enclosing class:
StagedRegistries

public static final class StagedRegistries.StagedBlocks extends Object implements UnifiedRegistries.Blocks
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAlias(net.minecraft.resources.Identifier from, net.minecraft.resources.Identifier to)
     
     
    <T extends net.minecraft.world.level.block.Block>
    SuppliedBlock
    register(String path, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> factory, 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
    register(String path, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> factory, 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 blockPath, String itemPath, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> factory, 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> factory, 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> factory, 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> factory, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<Y>> type)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StagedBlocks

      public StagedBlocks(String modId)
  • Method Details

    • modId

      public String modId()
      Specified by:
      modId in interface UnifiedRegistries.Blocks
    • register

      public <T extends net.minecraft.world.level.block.Block> SuppliedBlock register(String path, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> factory, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties)
      Specified by:
      register in interface UnifiedRegistries.Blocks
    • register

      public <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> factory, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<Y>> type)
      Specified by:
      register in interface UnifiedRegistries.Blocks
    • registerWithoutItem

      public <T extends net.minecraft.world.level.block.Block> SuppliedBlock registerWithoutItem(String path, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> factory, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties)
      Specified by:
      registerWithoutItem in interface UnifiedRegistries.Blocks
    • registerWithoutItem

      public <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> factory, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<Y>> type)
      Specified by:
      registerWithoutItem in interface UnifiedRegistries.Blocks
    • registerWithoutItem

      public <T extends net.minecraft.world.level.block.Block> SuppliedBlock registerWithoutItem(String blockPath, String itemPath, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, T> factory, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties)
      Specified by:
      registerWithoutItem in interface UnifiedRegistries.Blocks
    • registerWithoutItem

      public <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> factory, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<Y>> type)
      Specified by:
      registerWithoutItem in interface UnifiedRegistries.Blocks
    • addAlias

      public void addAlias(net.minecraft.resources.Identifier from, net.minecraft.resources.Identifier to)
      Specified by:
      addAlias in interface UnifiedRegistries.Blocks