Class ModelHolder<M extends net.minecraft.client.model.Model>

java.lang.Object
com.pixelmonmod.pixelmon.client.models.ModelHolder<M>
Direct Known Subclasses:
GenericModelHolder

public abstract class ModelHolder<M extends net.minecraft.client.model.Model> extends Object
Created by Jay113355 on 12/17/2017. The general idea behind model holding is you hold all the data necessary to load and or create the model and then at a future time do so. In practice its lazy loading. This class is also responsible for tracking the last access time of the model for use in unloading the model so we do not overload the ram with too many models especially in low memory environments.
  • Field Details

    • model

      protected M extends net.minecraft.client.model.Model model
  • Constructor Details

    • ModelHolder

      public ModelHolder()
  • Method Details

    • getModel

      public M getModel()
    • clear

      public void clear()
    • loadModel

      protected abstract M loadModel()