22 lines
663 B
Java
22 lines
663 B
Java
package net.minecraft.client.data.models.model;
|
|
|
|
import com.google.gson.JsonElement;
|
|
import com.google.gson.JsonObject;
|
|
import net.minecraft.resources.ResourceLocation;
|
|
import net.minecraftforge.api.distmarker.Dist;
|
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
public class DelegatedModel implements ModelInstance {
|
|
private final ResourceLocation parent;
|
|
|
|
public DelegatedModel(ResourceLocation p_377640_) {
|
|
this.parent = p_377640_;
|
|
}
|
|
|
|
public JsonElement get() {
|
|
JsonObject jsonobject = new JsonObject();
|
|
jsonobject.addProperty("parent", this.parent.toString());
|
|
return jsonobject;
|
|
}
|
|
} |