-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathModelOption.java
More file actions
34 lines (26 loc) · 1.02 KB
/
ModelOption.java
File metadata and controls
34 lines (26 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package dev.felnull.specialmodelloader.api.model;
import com.google.gson.JsonObject;
import dev.felnull.specialmodelloader.impl.model.ModelOptionImpl;
import net.minecraft.client.renderer.block.model.ItemTransforms;
import net.minecraft.client.resources.model.UnbakedModel;
import net.minecraft.resources.Identifier;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public interface ModelOption {
@NotNull
static ModelOption of(boolean useAmbientOcclusion, @Nullable UnbakedModel.GuiLight guiLight,
@Nullable Identifier particle, @NotNull ItemTransforms transforms) {
return new ModelOptionImpl(useAmbientOcclusion, guiLight, particle, transforms);
}
@NotNull
static ModelOption parse(@NotNull JsonObject modelJson) {
return ModelOptionImpl.parse(modelJson);
}
boolean isUseAmbientOcclusion();
@Nullable
UnbakedModel.GuiLight getGuiLight();
@Nullable
Identifier getParticle();
@NotNull
ItemTransforms getTransforms();
}