mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-10 14:26:10 +01:00
31 lines
677 B
Java
31 lines
677 B
Java
|
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> T getData(ModelProperty<T> prop) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public <T> T setData(ModelProperty<T> prop, T data) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
}
|