Class BlueprintUtils
java.lang.Object
com.ldtteam.structurize.blueprints.v1.BlueprintUtils
Utility functions for blueprints.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable net.minecraft.world.level.block.entity.BlockEntityconstructTileEntity(BlockInfo info, net.minecraft.world.level.Level beLevel) 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.
-
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)
-