Package com.ldtteam.structurize.client
Class BlueprintBlockInfoTransformHandler
java.lang.Object
com.ldtteam.structurize.client.BlueprintBlockInfoTransformHandler
Registry and handler for modifying blueprint information with regards to blocks.
-
Method Details
-
getInstance
-
AddTransformHandler
public void AddTransformHandler(Predicate<BlockInfo> transformPredicate, Function<BlockInfo, BlockInfo> transformHandler) Method to add a transformer.- Parameters:
transformPredicate- The predicate to check if this transform function needs to be applied.transformHandler- The tranformer.
-
Transform
Process a blockinfo. Checks all known transformers and applies the first it finds.- Parameters:
blockInfo- The block info to transform- Returns:
- The transformed blockinfo.
-