Package com.minecolonies.core.util
Class SchemAnalyzerUtil
java.lang.Object
com.minecolonies.core.util.SchemAnalyzerUtil
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalyzeSchematic(com.ldtteam.structurize.blueprints.v1.Blueprint blueprint, net.minecraft.core.HolderLookup.Provider provider) Analyzes the given blueprint, calculating statistics like block cost, included buildings etc.static intgetBlockTier(net.minecraft.world.level.block.Block block) Gets the tier for a given blockstatic doublegetScoreFor(net.minecraft.world.level.block.Block block) Block cost calculation
-
Constructor Details
-
SchemAnalyzerUtil
public SchemAnalyzerUtil()
-
-
Method Details
-
getBlockTier
public static int getBlockTier(net.minecraft.world.level.block.Block block) Gets the tier for a given block- Parameters:
block- the block to analyze.- Returns:
- true if is so.
-
getScoreFor
public static double getScoreFor(net.minecraft.world.level.block.Block block) Block cost calculation- Parameters:
block-- Returns:
-
analyzeSchematic
public static SchemAnalyzerUtil.SchematicAnalyzationResult analyzeSchematic(com.ldtteam.structurize.blueprints.v1.Blueprint blueprint, @NotNull net.minecraft.core.HolderLookup.Provider provider) Analyzes the given blueprint, calculating statistics like block cost, included buildings etc.- Parameters:
blueprint-- Returns:
-