49 lines
1.5 KiB
Java
49 lines
1.5 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* com.mojang.serialization.MapCodec
|
|
* org.joml.Vector3f
|
|
* org.jspecify.annotations.Nullable
|
|
*/
|
|
package net.minecraft.client.renderer.special;
|
|
|
|
import com.mojang.blaze3d.vertex.PoseStack;
|
|
import com.mojang.serialization.MapCodec;
|
|
import java.util.Set;
|
|
import net.minecraft.client.model.geom.EntityModelSet;
|
|
import net.minecraft.client.renderer.PlayerSkinRenderCache;
|
|
import net.minecraft.client.renderer.SubmitNodeCollector;
|
|
import net.minecraft.client.resources.model.MaterialSet;
|
|
import net.minecraft.world.item.ItemDisplayContext;
|
|
import net.minecraft.world.item.ItemStack;
|
|
import org.joml.Vector3f;
|
|
import org.jspecify.annotations.Nullable;
|
|
|
|
public interface SpecialModelRenderer<T> {
|
|
public void submit(@Nullable T var1, ItemDisplayContext var2, PoseStack var3, SubmitNodeCollector var4, int var5, int var6, boolean var7, int var8);
|
|
|
|
public void getExtents(Set<Vector3f> var1);
|
|
|
|
public @Nullable T extractArgument(ItemStack var1);
|
|
|
|
public static interface BakingContext {
|
|
public EntityModelSet entityModelSet();
|
|
|
|
public MaterialSet materials();
|
|
|
|
public PlayerSkinRenderCache playerSkinRenderCache();
|
|
|
|
public record Simple(EntityModelSet entityModelSet, MaterialSet materials, PlayerSkinRenderCache playerSkinRenderCache) implements BakingContext
|
|
{
|
|
}
|
|
}
|
|
|
|
public static interface Unbaked {
|
|
public @Nullable SpecialModelRenderer<?> bake(BakingContext var1);
|
|
|
|
public MapCodec<? extends Unbaked> type();
|
|
}
|
|
}
|
|
|