Package com.ldtteam.structurize.client
Class BlueprintEntityInfoTransformHandler
java.lang.Object
com.ldtteam.structurize.client.BlueprintEntityInfoTransformHandler
Registry and handler for modifying blueprint information with regards to entities.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAddTransformHandler(Predicate<net.minecraft.nbt.CompoundTag> transformPredicate, Function<net.minecraft.nbt.CompoundTag, net.minecraft.nbt.CompoundTag> transformHandler) Method to add a transformer.net.minecraft.nbt.CompoundTagTransform(net.minecraft.nbt.CompoundTag entityInfo) Process a entityinfo.
-
Method Details
-
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.
-