Search in sources :

Example 1 with PerspAwareModelBase

use of buildcraft.core.lib.client.model.PerspAwareModelBase in project BuildCraft by BuildCraft.

the class LensPluggableModel method create.

public static PerspAwareModelBase create(ItemLens lensItem, int meta) {
    LensPluggable lens = new LensPluggable(new ItemStack(lensItem, 1, meta));
    ImmutableList.Builder<BakedQuad> quads = ImmutableList.builder();
    VertexFormat format = DefaultVertexFormats.ITEM;
    quads.addAll(INSTANCE.bakeCutout(lens.isFilter, EnumFacing.EAST, format));
    quads.addAll(INSTANCE.bakeTransclucent(lens.dyeColor, lens.isFilter, EnumFacing.EAST, format));
    return new PerspAwareModelBase(format, quads.build(), spriteLensCutout, getBlockTransforms());
}
Also used : LensPluggable(buildcraft.transport.pluggable.LensPluggable) BakedQuad(net.minecraft.client.renderer.block.model.BakedQuad) ImmutableList(com.google.common.collect.ImmutableList) PerspAwareModelBase(buildcraft.core.lib.client.model.PerspAwareModelBase) ItemStack(net.minecraft.item.ItemStack) VertexFormat(net.minecraft.client.renderer.vertex.VertexFormat)

Example 2 with PerspAwareModelBase

use of buildcraft.core.lib.client.model.PerspAwareModelBase in project BuildCraft by BuildCraft.

the class ModelPowerAdapter method create.

public static PerspAwareModelBase create() {
    ImmutableList.Builder<BakedQuad> quads = ImmutableList.builder();
    VertexFormat format = DefaultVertexFormats.ITEM;
    quads.addAll(INSTANCE.bakeCutout(EnumFacing.EAST, format));
    return new PerspAwareModelBase(format, quads.build(), spritePowerAdapter, getBlockTransforms());
}
Also used : BakedQuad(net.minecraft.client.renderer.block.model.BakedQuad) ImmutableList(com.google.common.collect.ImmutableList) PerspAwareModelBase(buildcraft.core.lib.client.model.PerspAwareModelBase) VertexFormat(net.minecraft.client.renderer.vertex.VertexFormat)

Example 3 with PerspAwareModelBase

use of buildcraft.core.lib.client.model.PerspAwareModelBase in project BuildCraft by BuildCraft.

the class PlugPluggableModel method create.

public static PerspAwareModelBase create() {
    ImmutableList.Builder<BakedQuad> quads = ImmutableList.builder();
    VertexFormat format = DefaultVertexFormats.ITEM;
    quads.addAll(INSTANCE.bakeCutout(EnumFacing.SOUTH, format));
    return new PerspAwareModelBase(format, quads.build(), spritePlug, getPluggableTransforms());
}
Also used : BakedQuad(net.minecraft.client.renderer.block.model.BakedQuad) ImmutableList(com.google.common.collect.ImmutableList) PerspAwareModelBase(buildcraft.core.lib.client.model.PerspAwareModelBase) VertexFormat(net.minecraft.client.renderer.vertex.VertexFormat)

Example 4 with PerspAwareModelBase

use of buildcraft.core.lib.client.model.PerspAwareModelBase in project BuildCraft by BuildCraft.

the class RobotStationModel method createItemModel.

public PerspAwareModelBase createItemModel() {
    ImmutableList.Builder<BakedQuad> quads = ImmutableList.builder();
    VertexFormat format = DefaultVertexFormats.ITEM;
    quads.addAll(INSTANCE.bakeCutout(EnumRobotStationState.Available, EnumFacing.SOUTH, format));
    return new PerspAwareModelBase(format, quads.build(), baseSprite, getPluggableTransforms());
}
Also used : BakedQuad(net.minecraft.client.renderer.block.model.BakedQuad) ImmutableList(com.google.common.collect.ImmutableList) PerspAwareModelBase(buildcraft.core.lib.client.model.PerspAwareModelBase) VertexFormat(net.minecraft.client.renderer.vertex.VertexFormat)

Aggregations

PerspAwareModelBase (buildcraft.core.lib.client.model.PerspAwareModelBase)4 ImmutableList (com.google.common.collect.ImmutableList)4 BakedQuad (net.minecraft.client.renderer.block.model.BakedQuad)4 VertexFormat (net.minecraft.client.renderer.vertex.VertexFormat)4 LensPluggable (buildcraft.transport.pluggable.LensPluggable)1 ItemStack (net.minecraft.item.ItemStack)1