Class BlueprintUtils

java.lang.Object
com.ldtteam.structurize.blueprints.v1.BlueprintUtils

public final class BlueprintUtils extends Object
Utility functions for blueprints.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable net.minecraft.world.level.block.entity.BlockEntity
    constructTileEntity(BlockInfo info, net.minecraft.world.level.Level beLevel, net.minecraft.core.HolderLookup.Provider provider)
     
    static List<net.minecraft.world.entity.Entity>
    instantiateEntities(Blueprint blueprint, net.minecraft.world.level.Level entityLevel)
    Creates a list of entities located in the blueprint, placed inside that blueprints block access world.
    static Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.entity.BlockEntity>
    instantiateTileEntities(Blueprint blueprint, net.minecraft.world.level.Level beLevel, Map<net.minecraft.core.BlockPos,net.neoforged.neoforge.client.model.data.ModelData> teModelData)
    Creates a list of tileentities located in the blueprint, placed inside that blueprints block access world.

    Methods inherited from class java.lang.Object

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

    • instantiateTileEntities

      public static Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.entity.BlockEntity> instantiateTileEntities(Blueprint blueprint, net.minecraft.world.level.Level beLevel, Map<net.minecraft.core.BlockPos,net.neoforged.neoforge.client.model.data.ModelData> teModelData)
      Creates a list of tileentities located in the blueprint, placed inside that blueprints block access world.
      Parameters:
      blueprint - The blueprint whos tileentities need to be instantiated.
      beLevel - The blueprint world.
      Returns:
      A list of tileentities in the blueprint.
    • instantiateEntities

      public static List<net.minecraft.world.entity.Entity> instantiateEntities(Blueprint blueprint, net.minecraft.world.level.Level entityLevel)
      Creates a list of entities located in the blueprint, placed inside that blueprints block access world.
      Parameters:
      blueprint - The blueprint whos entities need to be instantiated.
      entityLevel - The blueprints world.
      Returns:
      A list of entities in the blueprint
    • constructTileEntity

      @Nullable public static @Nullable net.minecraft.world.level.block.entity.BlockEntity constructTileEntity(BlockInfo info, net.minecraft.world.level.Level beLevel, net.minecraft.core.HolderLookup.Provider provider)