package com.jozufozu.flywheel.util; import net.minecraftforge.client.model.data.IModelData; import net.minecraftforge.client.model.data.ModelProperty; /** * This model data instance is passed whenever a model is rendered without * available in-world context. IBakedModel#getModelData can react accordingly * and avoid looking for model data itself **/ public enum VirtualEmptyModelData implements IModelData { INSTANCE; @Override public boolean hasProperty(ModelProperty prop) { return false; } @Override public T getData(ModelProperty prop) { return null; } @Override public T setData(ModelProperty prop, T data) { return null; } }