-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathIModelCTM.java
More file actions
47 lines (33 loc) · 1.16 KB
/
IModelCTM.java
File metadata and controls
47 lines (33 loc) · 1.16 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
35
36
37
38
39
40
41
42
43
44
45
46
47
package team.chisel.ctm.api.model;
import java.util.Collection;
import javax.annotation.Nullable;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.client.model.IModel;
import team.chisel.ctm.api.texture.ICTMTexture;
import team.chisel.ctm.api.texture.IChiselFace;
public interface IModelCTM extends IModel {
IModel getVanillaParent();
void load();
@Deprecated
Collection<ICTMTexture<?>> getChiselTextures();
default Collection<ICTMTexture<?>> getCTMTextures() {
return getChiselTextures();
}
ICTMTexture<?> getTexture(String iconName);
@Deprecated
default IChiselFace getFace(EnumFacing facing) {
return null;
}
@Deprecated
default IChiselFace getDefaultFace() {
return null;
}
boolean canRenderInLayer(IBlockState state, BlockRenderLayer layer);
@Nullable
TextureAtlasSprite getOverrideSprite(int tintIndex);
@Nullable
ICTMTexture<?> getOverrideTexture(int tintIndex, String sprite);
}