Interface IPartModel


public interface IPartModel
A container to store a collection of ResourceLocation as models for a part as well as other properties.
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<net.minecraft.resources.ResourceLocation>
    A collection of ResourceLocation used as models for a part.
    default boolean
    A solid IPartModel indicates that the rendering requires a cable connection, which will also result in creating an intersection for the cable.
  • Method Details

    • requireCableConnection

      default boolean requireCableConnection()
      A solid IPartModel indicates that the rendering requires a cable connection, which will also result in creating an intersection for the cable. This should be true for pretty much all parts.
      Returns:
      true for a solid part.
    • getModels

      default List<net.minecraft.resources.ResourceLocation> getModels()
      A collection of ResourceLocation used as models for a part.
      Returns:
      a collection of models, never null.