Interface IForgeModelState

All Known Subinterfaces:
ModelState
All Known Implementing Classes:
B3DLoader.B3DState, BlockModelRotation, CompositeModelState, SimpleModelState, Variant

public interface IForgeModelState
An IModelState is a function from model part to a transformation that should be applied when that part is baked, thus representing the current "state" of the model and its parts.
  • Method Details

    • getPartTransformation

      default Transformation getPartTransformation(Object part)
      Parameters:
      part - Part of the model we are wanting to transform. An empty optional means we want a transform for the entire model.
      Returns:
      A transformation to apply to the part, if any. The coordinate system of the transform is determined by the part type.