mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-08 13:26:39 +01:00
f6937ffb0c
- flywheel stuff only barely depends on create - start drafting what multiple backends could look like
30 lines
677 B
Java
30 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;
|
|
}
|
|
|
|
}
|