2018-12-20 00:39:10 +00:00
|
|
|
package net.shadowfacts.simplemultipart.client;
|
|
|
|
|
2018-12-24 16:29:06 +00:00
|
|
|
import net.minecraft.block.BlockState;
|
|
|
|
import net.minecraft.client.render.model.BakedModel;
|
2018-12-20 00:39:10 +00:00
|
|
|
import net.minecraft.client.render.model.BakedQuad;
|
|
|
|
import net.minecraft.util.math.Direction;
|
|
|
|
import net.shadowfacts.simplemultipart.multipart.MultipartState;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Random;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author shadowfacts
|
|
|
|
*/
|
2018-12-24 16:29:06 +00:00
|
|
|
public interface MultipartBakedModel extends BakedModel {
|
2018-12-20 00:39:10 +00:00
|
|
|
|
2018-12-24 16:29:06 +00:00
|
|
|
List<BakedQuad> getMultipartQuads(MultipartState state, Direction side, Random random);
|
|
|
|
|
|
|
|
@Override
|
|
|
|
default List<BakedQuad> getQuads(BlockState state, Direction side, Random random) {
|
|
|
|
return getMultipartQuads(null, side, random);
|
|
|
|
}
|
2018-12-20 00:39:10 +00:00
|
|
|
|
|
|
|
}
|