Class SuppliedBlock

java.lang.Object
net.rebel459.unified.api.core.Supplied<net.minecraft.world.level.block.Block>
net.rebel459.unified.api.core.SuppliedBlock
All Implemented Interfaces:
Supplier<net.minecraft.world.level.block.Block>, net.minecraft.world.level.ItemLike, BlockLike

public class SuppliedBlock extends Supplied<net.minecraft.world.level.block.Block> implements BlockLike, net.minecraft.world.level.ItemLike
  • Constructor Details

    • SuppliedBlock

      @Internal public SuppliedBlock(net.minecraft.references.BlockItemId blockItemId, Supplier<? extends net.minecraft.world.level.block.Block> block, Supplier<? extends net.minecraft.core.Holder<net.minecraft.world.level.block.Block>> holder)
  • Method Details

    • defaultBlockState

      public net.minecraft.world.level.block.state.BlockState defaultBlockState()
    • defaultTemplate

      public net.minecraft.world.item.ItemStackTemplate defaultTemplate()
    • blockItemId

      public net.minecraft.references.BlockItemId blockItemId()
    • asBlock

      public net.minecraft.world.level.block.Block asBlock()
      Specified by:
      asBlock in interface BlockLike
    • asItem

      public @NonNull net.minecraft.world.item.Item asItem()
      Specified by:
      asItem in interface net.minecraft.world.level.ItemLike