Class BlueprintBlockInfoTransformHandler

java.lang.Object
com.ldtteam.structurize.client.BlueprintBlockInfoTransformHandler

public class BlueprintBlockInfoTransformHandler extends Object
Registry and handler for modifying blueprint information with regards to blocks.
  • Method Details

    • getInstance

      public static BlueprintBlockInfoTransformHandler 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

      public BlockInfo Transform(BlockInfo blockInfo)
      Process a blockinfo. Checks all known transformers and applies the first it finds.
      Parameters:
      blockInfo - The block info to transform
      Returns:
      The transformed blockinfo.