Class BlockRegistries<T extends net.minecraft.world.level.block.Block,E extends net.minecraft.world.item.BlockItem>

java.lang.Object
net.tearpelato.craftcorelib.api.registry.ObjectRegistries<T>
net.tearpelato.craftcorelib.api.registry.BlockRegistries<T,E>
All Implemented Interfaces:
Supplier<T>

public class BlockRegistries<T extends net.minecraft.world.level.block.Block,E extends net.minecraft.world.item.BlockItem> extends ObjectRegistries<T>
  • Field Details

    • function

      protected final Function<T extends net.minecraft.world.level.block.Block,E extends net.minecraft.world.item.BlockItem> function
    • intance

      protected E extends net.minecraft.world.item.BlockItem intance
  • Constructor Details

    • BlockRegistries

      public BlockRegistries(net.minecraft.core.Registry<? super T> registry, net.minecraft.resources.ResourceLocation id, Supplier<T> supplier, Function<T,E> function)
  • Method Details

    • create

      protected T create()
      Overrides:
      create in class ObjectRegistries<T extends net.minecraft.world.level.block.Block>