use of crazypants.enderio.base.render.property.EnumRenderPart in project EnderIO by SleepyTrousers.
the class MachineRenderMapper method mapItemRender.
@Override
@SideOnly(Side.CLIENT)
@Nullable
public List<Pair<IBlockState, ItemStack>> mapItemRender(@Nonnull Block block, @Nonnull ItemStack stack, @Nonnull ItemQuadCollector itemQuadCollector) {
List<Pair<IBlockState, ItemStack>> states = new ArrayList<Pair<IBlockState, ItemStack>>();
final EnumRenderPart body_nullchecked = body;
if (body_nullchecked != null) {
states.add(Pair.of(ModObject.block_machine_base.getBlockNN().getDefaultState().withProperty(EnumRenderPart.SUB, body_nullchecked), stack));
}
states.add(Pair.of(block.getStateFromMeta(stack.getMetadata()).withProperty(EnumRenderMode.RENDER, EnumRenderMode.FRONT), stack));
return states;
}
Aggregations