summaryrefslogtreecommitdiff
path: root/src/main/java/jp/plusplus/fbs/pottery/BlockJar.java
blob: 6d25d6f3bde9adc950844fb6731501775693e0ca (plain)
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
package jp.plusplus.fbs.pottery;

import jp.plusplus.fbs.FBS;
import jp.plusplus.fbs.pottery.model.ModelJarLarge;
import net.minecraft.client.model.ModelBase;
import net.minecraft.util.ResourceLocation;

/**
 * Created by plusplus_F on 2015/08/26.
 */
public abstract class BlockJar extends BlockPotteryBase {
    public static final ResourceLocation rlSmall =new ResourceLocation(FBS.MODID+":textures/models/pot00.png");
    public static final ResourceLocation rlMedium =new ResourceLocation(FBS.MODID+":textures/models/pot00.png");
    public static final ResourceLocation rlLarge=new ResourceLocation(FBS.MODID+":textures/models/pot00.png");
    public static final ModelJarLarge mjLarge=new ModelJarLarge();

    public BlockJar(int value) {
        super("jar", value);
    }


    @Override
    public ResourceLocation getResourceLocation(int metadata) {
        metadata=((metadata>>12)&0xf);
        if(metadata==0) return rlSmall;
        else if(metadata==1) return rlMedium;
        else return rlLarge;
    }

    @Override
    public ModelBase getModel(int metadata) {
        metadata=((metadata>>8)&0xf);
        if(metadata==0) return mjLarge;
        else if(metadata==1) return mjLarge;
        else return mjLarge;
    }
}