Package net.nikdo53.tinymultiblocklib
Class TinyMultiblockLibForge
java.lang.Object
net.nikdo53.tinymultiblocklib.TinyMultiblockLibForge
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.level.block.entity.BlockEntityType<?>>static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.level.block.Block>static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddBEBlocks(net.minecraftforge.event.entity.SpawnPlacementRegisterEvent event) static voidstatic <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, net.minecraft.world.level.block.Block... blocks)
-
Field Details
-
ITEMS
public static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> ITEMS -
BLOCK_ENTITIES
public static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.level.block.entity.BlockEntityType<?>> BLOCK_ENTITIES -
BLOCKS
public static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.level.block.Block> BLOCKS
-
-
Constructor Details
-
TinyMultiblockLibForge
public TinyMultiblockLibForge()
-
-
Method Details
-
addBEBlocks
public static void addBEBlocks(net.minecraftforge.event.entity.SpawnPlacementRegisterEvent event) -
registerAll
public static void registerAll() -
registerBlockEntity
public static <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, net.minecraft.world.level.block.Block... blocks)
-