Class BlueprintEntityInfoTransformHandler

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

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

    • getInstance

      public static BlueprintEntityInfoTransformHandler getInstance()
    • AddTransformHandler

      public void AddTransformHandler(Predicate<net.minecraft.nbt.CompoundTag> transformPredicate, Function<net.minecraft.nbt.CompoundTag,net.minecraft.nbt.CompoundTag> 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 net.minecraft.nbt.CompoundTag Transform(net.minecraft.nbt.CompoundTag entityInfo)
      Process a entityinfo. Checks all known transformers and applies the first it finds.
      Parameters:
      entityInfo - The entity info to transform
      Returns:
      The transformed entityinfo.